Cerebro: Error when start app

Created on 29 Jun 2018  ·  19Comments  ·  Source: cerebroapp/cerebro

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

help wanted

Most helpful comment

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”: {}

All 19 comments

Same error for me, on Fedora 28.

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.

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)

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

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.

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”: {}

@tioguda thanks! This worked for me.

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.

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)

I have some error on mac 0.3.2

image

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

@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?

Is the project alive or dead?

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.

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

Cerebro Version: 3.2
System: Win10

I think Cerebro is no longer developing.

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

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.

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:

https://github.com/cerebroapp/cerebro/issues/486#issuecomment-542516312

https://github.com/cerebroapp/cerebro/issues/486#issuecomment-492564242

https://github.com/cerebroapp/cerebro/issues/467#issue-329289836

#467 #486

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mycraftmw picture mycraftmw  ·  5Comments

wonzbak picture wonzbak  ·  6Comments

lubien picture lubien  ·  5Comments

mijoharas picture mijoharas  ·  3Comments

AlexSHoffman picture AlexSHoffman  ·  4Comments