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: Error invoking remote method 'listSessions' #2720

Closed
Freeddyyy opened this issue Feb 7, 2022 · 2 comments · Fixed by #2723
Closed

Error: Error invoking remote method 'listSessions' #2720

Freeddyyy opened this issue Feb 7, 2022 · 2 comments · Fixed by #2723
Labels
bug Something isn't working

Comments

@Freeddyyy
Copy link

When starting JBrowse 2 desktop, the following message appears on the top of the windows: "Error: Error invoking remote method 'listSessions': SyntaxError: Unexpected end of JSON input".

It seems possible to launch a new session from "Open Sequence file(s)", but after selecting files and pressing "Submit", the following message appears: "Error: Error invoking remote method 'createInitialAutosaveFile': SyntaxError: Unexpected end of JSON input".

It seems possible to launch a new session from "Quickstart list", but after selecting "hg19..." and pressing "Go", the following message appears: "Error: Error invoking remote method 'createInitialAutosaveFile': SyntaxError: Unexpected end of JSON input".

Version:

jbrowse-desktop-v1.6.4-win
Windows 10 Entreprise

Additional context

The only JSON file presents in the @jbrowsedesktop folder is "vk_swiftshader_icd.json".

JBrowse 2 desktop used to work on this same PC. Uninstall (using "Uninstall JBrowse 2") and re-install didn't improved the error message.
If the @jbrowsedesktop folder is on a USB memory stick, JBrowse 2 desktop seems to work well on other PCs, but on mine the same error messages appear.

@Freeddyyy Freeddyyy added the bug Something isn't working label Feb 7, 2022
@cmdcolin
Copy link
Collaborator

cmdcolin commented Feb 7, 2022

It looks like maybe our "recent_sessions.json" file was corrupted (parsing it as JSON is throwing errors)...the recent_sessions.json file would be stored at userData+'/recent_sessions.json' so it might be at a path like this

C:\Users\YourName\AppData\Roaming\@jbrowse\desktop\recent_sessions.json

If this file exists, you may want to remove this file, and retry

I would also be curious what is in the file if you can find it and report

@Freeddyyy
Copy link
Author

Deleting the file was the solution. Thanks a lot.
The file was present but empty, 0 byte.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants