cerebroapp / cerebro

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

Cerebro crashes after update to 0.3.2. #434

Closed scmanjarrez closed 2 years ago

scmanjarrez commented 6 years ago

I have cerebro in start up applications, so these box came up after log in.

screenshot from 2017-12-08 03-44-48

screenshot from 2017-12-08 03-45-37

Starting from command line throws this error:

/opt/Cerebro/resources/electron.asar/common/reset-search-paths.js:0

Error: Cannot find module '../dialog' at Module._resolveFilename (module.js:470:15) at Function.Module._resolveFilename (/opt/Cerebro/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (module.js:418:25) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.get [as dialog] (/opt/Cerebro/resources/electron.asar/browser/api/exports/electron.js:11:16) at process. (/opt/Cerebro/resources/electron.asar/browser/init.js:54:31) at emitOne (events.js:96:13) at process.emit (events.js:188:7) at process._fatalException (bootstrap_node.js:300:26)

Issue

Cerebro crashes on start. I have reinstalled 2 times without success.

lawgsy commented 6 years ago

Hello, the current release version is broken for some. See https://github.com/KELiON/cerebro/issues/423. It was fixed here, but somehow managed to get into the release.

In other words, if you're feeling adventurous you should be able to compile from source. If not, please install an older version (and don't update until this is fixed) or wait until the next (re)release. I'm guessing that shouldn't take too long. 1.3.1 should work fine. See https://github.com/KELiON/cerebro/releases for older versions

From what I've gathered so far, the binary release of 1.3.2 only works for OSX.

FreaKzero commented 6 years ago

The "easy fix" for me was to disable tracking in the config.json file (trackingEnabled: false) and remove the contents of the "positions" property (on MacOS to find here: ~/Library/Application Support/Cerebro). And nope ... im on OSX (sw_vers -productVersion = 10.11.6) and have the exact same Problem.

This error occured on my machine the first time as i booted my Macbook without my external Monitor plugged in. I think this line is the Problem (var screenName) since it looks like that in this positions property in the config JSON the screenNames are saved and not "retrieveable" anymore once a user unplugs a monitor. (didnt look deep into the code - this is just a suspicion)

https://github.com/KELiON/cerebro/blob/16c40246a1f950f0d549d98aa5c81c90e4944343/app/lib/trackEvent.js#L31

yusunglee2074 commented 6 years ago

Freakzero //

Can I know where that file(trackEvent.js) is? on Ubuntu 16.04

I'm noobie.

evrohachik commented 6 years ago

same for me donwgraded for previous version win10

FreaKzero commented 6 years ago

@yusunglee2074 The config on linux should be there (as described in the README of Cerebro) $XDG_CONFIG_HOME/Cerebro/config.json or ~/.config/Cerebro/config.json

And there set trackingEnabled to false and remove every in the positions property (like this:positions: {})

or downgrade until this bug is fixed

yusunglee2074 commented 6 years ago

@FreaKzero thank you very much. Now I'm in Cerebro. It awesome.

lawgsy commented 6 years ago

Just for completion, on Windows the path would be %appdata%\Cerebro\config.json

s0kil commented 6 years ago

Same Issue.

Haarolean commented 6 years ago

@KELiON Currently your master branch is broken for at least one month. This extends to stable builds from your website, I get the same exceptions out of the box. You gonna fix this? https://github.com/KELiON/cerebro/issues/423 https://github.com/KELiON/cerebro/issues/434

clankur commented 6 years ago

Similar issue, but now it doesn't even display that error and crashes.

pocheche commented 6 years ago

Same issue on Gnome Manjaro Linux going back to previous.

raice commented 6 years ago

Same issue on Ubuntu 17.10. Workaround with disable tracking works

luisdavim commented 6 years ago

Same issue on MacOS

luisdavim commented 6 years ago

As @FreaKzero mentioned setting trackingEnabled to false and emptying the positions object clears the issue.

petrkotas commented 6 years ago

I can confirm that disabling the trackingEnabled and deleting the Cache and GPUCache fixes the issue.

ajithkumar-natarajan commented 6 years ago

I can confirm that setting trackingEnabled: false in ~/.config/Cerebro/config.json fixes the issue in Ubuntu 18.04.

First impression of Cerebro is amazing ! Thank you @KELiON

mybluevan commented 6 years ago

Confirming the trackingEnabled: false and positions: {} fix for OSX 10.13.4. Any word on a timeline? Looks like the code hasn't been touched since February. If it's a matter of manpower I'd be willing to help out, it's a nice app.

rogusdev commented 6 years ago

Still experiencing this (windows 10). Cerebro is a great concept and I really want this to succeed, but it won't if it takes more than 6 months to fix a bug that prevents every single new user from using the latest version!

http403 commented 6 years ago

Same here. I tried to compile (master and tags/v0.3.0), no luck. I even downgraded to 0.3.0 official build and it still throwing errors to me. Running in Ubuntu 18.04.

http403 commented 6 years ago

Successfully build an AppImage version from master branch and confirmed it run flawlessly. Cerebro v0.3.3+56c5ccb AppImage Download

EDIT: Download link won't work as the file expired.

ajithkumar-natarajan commented 6 years ago

@http403 AppImage is not available in the link you have provided.

karolis-sh commented 5 years ago

On macOS 10.14.1

Editing in ~/Library/Application\ Support/Cerebro/config.json value trackingEnabled: false fixed the issues.

FabioAleluia commented 5 years ago

I'm using google translator.

Here I had this error in my Linux Mint 19.1, solve this problem by removing version 0.3.2, after removing version 0.3.2 I removed the brain folder that is in the home / .config. Then I installed version 0.3.0


Original text

Aqui tive esse erro no meu Linux Mint 19.1, resolve esse problema removendo a versão 0.3.2, depois de remover a versão 0.3.2 eu removi a pasta cerebro que fica na home/.config. Depois instalei a versão 0.3.

alxrodriguez commented 5 years ago

I can confirm that setting trackingEnabled: false in ~/.config/Cerebro/config.json fixes the issue in SO Deepin 15.9

I love Cerebro is amazing ! Thank you @KELiON

phanirithvij commented 5 years ago

On Windows, the path for config.json was C:\Users\USERNAME\AppData\Roaming\Cerebro\config.json

weijing24 commented 5 years ago

On macOS 10.14.1

Editing in ~/Library/Application\ Support/Cerebro/config.json value trackingEnabled: false fixed the issues.

it works

moeabdol commented 4 years ago

Editing ~/.config/Cerebero/config.json fixed in on Ubuntu 18.04. Note that it sometimes doesn't show the menu bar icon, so try to press ctrl+space to check it out.

PankajPrakashh commented 4 years ago

Works like charm in Ubuntu 19.10 just set trackingEnabled: false in ~/.config/Cerebro/config.json.

Kudos.

ajithkumar-natarajan commented 4 years ago

Works like charm in Ubuntu 19.10 just set trackingEnabled: false in ~/.config/Cerebro/config.json.

Kudos.

I am using it on Ubuntu 19.10 too. What was the need for you to set that parameter? Also, none of the plugins I install are being recognized. Any solutions?

PankajPrakashh commented 4 years ago

Works like charm in Ubuntu 19.10 just set trackingEnabled: false in ~/.config/Cerebro/config.json. Kudos.

I am using it on Ubuntu 19.10 too. What was the need for you to set that parameter? Also, none of the plugins I install are being recognized. Any solutions?

On every login it was throwing errors.

FakerSenpai commented 3 years ago

really pathetic project broken master branch

dubisdev commented 2 years ago

The issue with screenview has been solved as we have removed the tracking analytics.

You can test with the new release v0.7.1 and if this problem persists we will open another issue as this is too outdated.