cerebroapp / cerebro

🔵 Cerebro is an open-source launcher to improve your productivity and efficiency
https://www.cerebroapp.com/
MIT License
8.35k stars 456 forks source link

Error on opening cerebro #486

Closed anshuman73 closed 3 years ago

anshuman73 commented 5 years ago

Issue

I get this error when I installed the latest version (3.2) for Ubuntu Budgie. Happens when I open the app from my app menu. Also occurred when I pressed Ctrl + Space for the first time, howver was unable to reproduce afterwards.

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)
elvilio commented 5 years ago

I have a similar problem on opening Cerebro.app

Error shown on a default wondow: ` A JavaScript error occurred in the main process

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) `

icorbrey commented 5 years ago

Same issue as @elvilio:

novalex commented 5 years ago

Same error as @elvilio and @Anti-Antidote:

phcamargo23 commented 5 years ago

Same error:

CelsoSantos commented 5 years ago

I'm facing the same o MacOS 10.14.4 with Cerebro 0.3.2

Mr-Lima commented 5 years ago

Same

zeitan commented 5 years ago

Same Ubuntu 16.04 Cerebro 0.3.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)
robvankeilegom commented 5 years ago

Setting trackingEnabled to false fixed it for me in ~/.config/Cerebro/config.json

GabeDuarteM commented 5 years ago

Doing what @RoobieBoobieee suggested worked for me!

Also, I tried cloning the repo and running it locally, and then it works, even without setting trackingEnabled to false. Not sure what is causing the problem, I may take a look into it later, but it seems that this project, unfortunately, is pretty much abandoned, judging by the lack of response and the opened bugs :/

zeitan commented 5 years ago

trackingEnabled worked for me too!!

birobirobiro commented 5 years ago

Same error:

Windows 10 Home Single Language (18362) Cerebro 0.3.2

phanirithvij commented 5 years ago

Where is the config file located on windows anyone?

robvankeilegom commented 5 years ago

Windows: %APPDATA%/Cerebro/config.json

It's in https://github.com/KELiON/cerebro/blob/master/README.md on line 68

phanirithvij commented 5 years ago

Thanks I was able to fix it.

MycroftHolmes1989 commented 5 years ago

Had the same problem. Changing trackingEnabled flag works. However, the last release was 2 years, ago and the last commit was a year ago. Does anyone know if it is still being maintained?

icorbrey commented 5 years ago

@MycroftHolmes1989 The repo owner has been working on some Cerebro plugins this last month, so maybe eventually he'll get back around to it

shekcon commented 5 years ago

Install missing packages. sudo apt install libcanberra-gtk-module libcanberra-gtk3-module Change trackingEnable to false in config ~/.config/Cerebro/config.json Also kill all cerebro process to run normal. It works for me

ogustavo-pereira commented 3 years ago

@anshuman73 thanks for this issue

I suppose it is duplicated #470

I will close and move on to the other issue

thanks guys for the help

CelsoSantos commented 3 years ago

Does this mean there is new activity/development on Cerebro?

ogustavo-pereira commented 3 years ago

@CelsoSantos sure 😄

brkn commented 3 years ago

For MacOs, config file is at ~/Library/Application\ Support/Cerebro/config.json