Uncaught Error: getPath on missing remote object


#1

Our app is used by client as Kiosk on some Win10 tablets. They refuse to give us access to their devices, so we have a hard time degging errors. So we have implemented custom error handler that sends erros to our email. We are new to developing with Electron and since the stack trace does not contain any of our files, we don’t know what the issue is. I’m thinking that this error might occur when they turn off the app and they is some process running, is that possible?

Uncaught Error: Cannot call function ‘getPath’ on missing remote object 182 Error: Cannot call function ‘getPath’ on missing remote object 182 at throwRPCError (C:\Users\24-2\Documents\June8thTourApps\QuizApp\resources\electron.asar\browser\rpc-server.js:143:17) at EventEmitter.(C:\Users\24-2\Documents\June8thTourApps\QuizApp\resources\electron.asar\browser\rpc-server.js:339:7) at emitMany (events.js:127:13) at EventEmitter.emit (events.js:201:7) at WebContents. (C:\Users\24-2\Documents\June8thTourApps\QuizApp\resources\electron.asar\browser\api\web-contents.js:232:13) at emitTwo (events.js:106:13) at WebContents.emit (events.js:191:7)
C:\Users\24-2\Documents\June8thTourApps\QuizApp\resources\electron.asar\renderer\api\remote.js
217
7
Error: Cannot call function ‘getPath’ on missing remote object 182 Error: Cannot call function ‘getPath’ on missing remote object 182 at throwRPCError (C:\Users\24-2\Documents\June8thTourApps\QuizApp\resources\electron.asar\browser\rpc-server.


#2

Hello,

Which electron version do you have ?
If version < 1.4.2, maybe this issue. You must used last version if this possible.


#3

Tried with 1.5.0 and 1.6.11, both are win32-x64.

Is it possible that this piece of code is bad?

(electron.app || electron.remote.app).getPath ('userData')

And we also use nconf module, we think that it may be also involved with this issue.


#4

Yes, that’s ok. In main process, you can used only : electron.app.getPath(‘userData’)

If you app run on your windows10, maybe the problem is on architecture of Windows10 Tablets