Open harryi3t opened 6 years ago
I have exactly the same issue... The day after installed the desktop app it started throwing exceptions on startup.
Same issue here. On Mac. I generally have been using the app in macs 'full screen' mode where it fills an entire desktop if that gives any clue as to what's going on.
The work around above works. On Mac the file is located at /Applications/laverna.app/Contents/Resources/app/electron.js
Help! I'm not a programmer at all. I found Laverna and liked it so transferred all my notes into it, added a password and all was good for a few days. This morning when I fired up my workstation, Laverna threw an error that looks to be the same as above:
I am on Windows 7 x64. It looks like others were smart enough to do a workaround. However as a non-programmer I don't know what to do.
Can someone help? Or at least tell me how to extract my notes -- so I can move to another tool until this gets fixed?
THANKS
You just need to open the file electron.js in the location mentioned in the error, and comment out the text at line 187 (put // in front of the lines associated with this.state)
Then just copy and paste the code mentioned above, this.state = {x:0, y:0, width: 1000, height: 600}; then save and close the file. Laverna should now start.
Thank you very much for the help!
For any other non-programmers that chance upon this thread: You can open the electron.js file with any text editor. However life is easier if you have one like Notepad++ which shows you the line number, etc. It is free.
In case you make a mistake editing I recommend copying the file so you preserve the original.
Once in the file if you find multiple lines to do with the "Recover window state...", comment all of them out like this: // Recover window state (width, height, and x&y position) // this.state = windowStateKeeper('main', { // width : 1000, // height : 600 //}); Then add a new line like this: this.state = {x:0, y:0, width: 1000, height: 600};
Per the other contributor's comment I also went ahead and commented out the other line, like this: // win.on('close', function() { // this.state.saveState(win); //}.bind(appHelper));
I've got it running again now. Thanks so much!
I came across this error today and laverna wouldn't launch anymore, your trick worked for me on Linux 16.04 \o/
Had some hot stuff I couldn't get my hand on anymore, you just saved my life,
thank you very much
Hi there, if you use Arch Linux it's patched and published into the AUR package.
If you use other Linux Distribution (an no Ubuntu 16.04 is not Linux 16.04: read more) I published the patch which fix that at https://github.com/Laverna/laverna/issues/913#issuecomment-365572643 or at https://aur.archlinux.org/cgit/aur.git/tree/913.patch?h=laverna if you prefer.
Also, please report to https://github.com/Laverna/laverna/issues/971#issuecomment-411423965 for the state of this project.
I tried downloading the latest app. That also throws an exception.
Error message
App code that fails
For the time being I have updated the code to
Now atleast I can continue using the app. Please, could you fix the underlying issue, so that I don't need to use this hacky solution. Thanks, great work!