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

safeApp.authorise() causes uncaught exception in electron #162

Closed
happybeing opened this issue Sep 11, 2017 · 3 comments
Closed

safeApp.authorise() causes uncaught exception in electron #162

happybeing opened this issue Sep 11, 2017 · 3 comments

Comments

@happybeing
Copy link

Operation System: Debian 8/Jesse
Safe Browser Version: 0.5.1

I'm getting an intermittent problem calling safeApp.authorise() which looks like an error in the browser itself. This seems similar to another issue (which I can't find the number for right now, but as the error info is different I'm logging it separately).

The authorise() call seems to go through (because auth request is presented by the browser), but a modal dialog appears over the browser window with the following text:

Uncaught Exception:
TypeError: Cannot read property 'webContents' of null
	at EventEmitter.electron.ipcMain.on (/home/mrh/safe-releases/2017-09-07_Test_19_update/safe-browser-v0.5.1-linux-x64/resources/app/background-process.build.js:1821:6)
	at emitTwo (events.js:106:13)
	at EventEmitter.emit (events.js:194:7)
	at WebContents.<anonymous> (/home/mrh/safe-releases/2017-09-07_Test_19_update/safe-browser-v0.5.1-linux-x64/resources/electron.asar/browser/api/web-contents.js:247:13)
	at emitTwo (events.js:106:13)
	at WebContents.emit (events.js:194:7)

The code I'm using is pretty simple, but part of a larger codebase with lots of stuff going on. You can visit it on Test 19 at safe://myfd.rsports. Load the page and then click on the blue cube top right of the web page.

@happybeing
Copy link
Author

@happybeing
Copy link
Author

P.S. I say this is intermittent, but in fact I've only had it succeed once. Every time since (even after restarting my machine) I've had the above error.

@happybeing
Copy link
Author

Fixed in SAFE Browser 0.5.2 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant