Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when start app #470

Closed
pedroresende opened this issue Jun 29, 2018 · 20 comments
Closed

Error when start app #470

pedroresende opened this issue Jun 29, 2018 · 20 comments

Comments

@pedroresende
Copy link

I am on the latest Cerebro.app version
I have searched the issues of this repo and believe that this is not a duplicate
Debian 9:
0.3.2:
Can't change settings

I still can get access to Cerebro by a shortkey but there are no icon in tray menu so i cant open devtool
If i try enable Developer mode by typing cerebro Settings i receive another error
http://ipic.su/img/img7/fs/kiss_29kb.1520249230.png

If i can somehow help then let me know

@paulomanrique
Copy link

Same error for me, on Fedora 28.

@nonbeing
Copy link

nonbeing commented Jul 1, 2018

I'm getting two different startup exceptions. I installed cerebro_0.3.2_amd64.deb on Ubuntu 18.04.

Cerebro fails to launch on my system.

Exception 1

Uncaught Exception:
TypeError: Cannot read property 'webContents' of undefined
    at EventEmitter.module.exports._electron.ipcMain.on (/opt/Cerebro/resources/app.asar/main.js:687:47)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)
    at WebContents.<anonymous> (/opt/Cerebro/resources/electron.asar/browser/api/web-contents.js:247:37)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)

Exception 2

Uncaught Exception:
TypeError: visitor(...).screenview is not a function
    at module.exports.exports.screenView.screenName (/opt/Cerebro/resources/app.asar/main.js:251:15)
    at module.exports.exports.default (/opt/Cerebro/resources/app.asar/main.js:915:30)
    at App.module.exports._electron.app.on (/opt/Cerebro/resources/app.asar/main.js:653:43)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

Don't know if this helps, but other Electron apps such as Slack and Tusk are working fine for me.

@neederhow
Copy link

I start cerebro-0.3.2-x86_64.AppImage only one time success in Ubuntu 18.04 LTS, when I reboot the system I can't start it anymore.
System: Ubuntu 18.04 LTS
Cerebro version: cerebro-0.3.2-x86_64.AppImage
Exception message :

A JavaScript error occurred in the main process

Uncaught Exception:
TypeError: visitor(...).screenview is not a function
    at module.exports.exports.screenView.screenName (/tmp/.mount_SFD6Xr/usr/bin/resources/app.asar/main.js:251:15)
    at module.exports.exports.default (/tmp/.mount_SFD6Xr/usr/bin/resources/app.asar/main.js:915:30)
    at App.module.exports._electron.app.on (/tmp/.mount_SFD6Xr/usr/bin/resources/app.asar/main.js:653:43)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

@artyshko
Copy link

0.2.8 ver works great on my Ubuntu 18.04 while 0.3.2 don't

@geraltofrivia
Copy link

geraltofrivia commented Jul 19, 2018

I've had a similar error. I used 0.3.1 and recently deleted it (and stuff from .config/Cerebro before running the 0.3.2 Appimage. The trace goes like:

A JavaScript error occurred in the main process
Uncaught Exception:
Error: ENOENT: no such file or directory, open '/home/priyansh/.config/Cerebro/config.json'
    at Object.fs.openSync (fs.js:558:18)
    at Object.module.(anonymous function) [as openSync] (ELECTRON_ASAR.js:173:20)
    at Object.fs.writeFileSync (fs.js:1233:33)
    at Object.get (/tmp/.mount_XRVB5t/usr/bin/resources/app.asar/main.js:162:18)
    at Object.module.exports.Object.defineProperty.value (/tmp/.mount_XRVB5t/usr/bin/resources/app.asar/main.js:642:24)
    at __webpack_require__ (/tmp/.mount_XRVB5t/usr/bin/resources/app.asar/main.js:21:30)
    at /tmp/.mount_XRVB5t/usr/bin/resources/app.asar/main.js:64:18
    at Object.<anonymous> (/tmp/.mount_XRVB5t/usr/bin/resources/app.asar/main.js:67:10)
    at Object.<anonymous> (/tmp/.mount_XRVB5t/usr/bin/resources/app.asar/main.js:3738:3)
    at Module._compile (module.js:571:32)

I use Elementary OS 0.4 Loki.


Edit: I shifted to Manjaro today, running Deepin desktop.
In this installation, I haven't used 0.3.1 before, and directly tried running the latest version. I still can't get it working and encounter the same error.

@tioguda
Copy link

tioguda commented Jul 20, 2018

Hi, I can start the cerebro 0.3.2 after making the corrections below in my Manjaro Linux.

~/.config/Cerebro/config.json

Change the line
“trackingEnabled”: true,

for
“trackingEnabled”: false,

~/.config/Cerebro/config.json

Change the line

“positions”: {
      “1657191935228674”: [
          355,
          136
     ]
}

for

“positions”: {}

@geraltofrivia
Copy link

@tioguda thanks! This worked for me.

@zbin
Copy link

zbin commented Sep 15, 2018

In my Linux Mint, I have a similar error. by deb package installed Cerebro.
I used the method provided by @tioguda, It's worked for me.

@Indyandie
Copy link

Not sure if related but getting this on cerebro startup (macOS Mojave)

Uncaught Exception:
TypeError: visitor(...).screenview is not a function
    at module.exports.exports.screenView.screenName (/Applications/Cerebro.app/Contents/Resources/app.asar/webpack:/app/lib/trackEvent.js:31:15)
    at module.exports.exports.default (/Applications/Cerebro.app/Contents/Resources/app.asar/webpack:/app/main/createWindow.js:166:3)
    at App.module.exports._electron.app.on (/Applications/Cerebro.app/Contents/Resources/app.asar/webpack:/app/main.development.js:38:16)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

@alabotski
Copy link

I have some error on mac 0.3.2

image

@qfox
Copy link

qfox commented Oct 13, 2018

Why you using 0.3.2 (dec 17) when there is already 0.3.3 (may 18)?

I've just installed Cerebro via brew cask install cerebro and there are no 0.3.3, btw

@alabotski
Copy link

@zxqfox
Official size - https://cerebroapp.com/
Mac version - https://github.com/KELiON/cerebro/releases/download/v0.3.1/cerebro-0.3.1.dmg

GitHub release https://github.com/KELiON/cerebro/releases
Version 0.3.2

Where I can download 0.3.3?

@alabotski
Copy link

Is the project alive or dead?

@nogarcia
Copy link

nogarcia commented Jan 5, 2019

I have the same error.
Linux Distro: Ubuntu 18.04
Cerebro Version: 3.2
After "installing" the AppImage, I opened the app, and I got this error:

Uncaught Exception:
TypeError: visitor(...).screenview is not a function
    at module.exports.exports.screenView.screenName (/tmp/.mount_aZRaiX/usr/bin/resources/app.asar/main.js:251:15)
    at module.exports.exports.default (/tmp/.mount_aZRaiX/usr/bin/resources/app.asar/main.js:915:30)
    at App.module.exports._electron.app.on (/tmp/.mount_aZRaiX/usr/bin/resources/app.asar/main.js:653:43)
    at emitTwo (events.js:111:20)
    at App.emit (events.js:191:7)

I pressed OK on the error and the window closed and was replaced by another error:

Uncaught Exception:
TypeError: Cannot read property 'webContents' of undefined
    at EventEmitter.module.exports._electron.ipcMain.on (/tmp/.mount_aZRaiX/usr/bin/resources/app.asar/main.js:687:47)
    at emitTwo (events.js:106:13)
    at EventEmitter.emit (events.js:191:7)
    at WebContents.<anonymous> (/tmp/.mount_aZRaiX/usr/bin/resources/electron.asar/browser/api/web-contents.js:247:37)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)

I followed the instructions of @tioguda (albeit without the positions array, because I didn't have one) and was able to open the app, and went to the settings. I changed the theme to dark and then was faced with this error:

Uncaught Exception:
TypeError: Cannot read property 'settingsChanges' of undefined
    at EventEmitter.module.exports._electron.ipcMain.on (/tmp/.mount_KIlRaS/usr/bin/resources/app.asar/main.js:692:13)
    at emitThree (events.js:116:13)
    at EventEmitter.emit (events.js:194:7)
    at WebContents.<anonymous> (/tmp/.mount_KIlRaS/usr/bin/resources/electron.asar/browser/api/web-contents.js:247:37)
    at emitTwo (events.js:106:13)
    at WebContents.emit (events.js:191:7)

I uninstalled the AppImage, deleted .config/Cerebro, and installed the same version as a .deb (in my GUI), where I was able to open the app but encountered the same issues.

@Conquistador
Copy link

Same errors...
Cerebro Version: 3.2
System: Win10

@sajaddp
Copy link

sajaddp commented Aug 9, 2019

Cerebro Version: 3.2
System: Win10

@alabotski
Copy link

I think Cerebro is no longer developing.

Found for myself a new program on Mint
https://albertlauncher.github.io/docs/installing/

@hitallow
Copy link

Hi, I can start the cerebro 0.3.2 after making the corrections below in my Manjaro Linux.

~/.config/Cerebro/config.json

Change the line
“trackingEnabled”: true,

for
“trackingEnabled”: false,

~/.config/Cerebro/config.json

Change the line

“positions”: {
      “1657191935228674”: [
          355,
          136
     ]
}

for

“positions”: {}

thanks, this worked for me.

@ogustavo-pereira
Copy link
Member

ogustavo-pereira commented Feb 18, 2021

Hi

I will try to help you with that

Is the project alive or dead?

@alabotski is alive 😄

another issue was created with some solutions, you already tried to do that:

#486 (comment)

#486 (comment)

#467 (comment)

#467 #486

@dubisdev
Copy link
Contributor

This is an error related to tracking functionality. It was removed in v0.7.0 so we are closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests