question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not call remote function ``

See original GitHub issue

According to TrackJS, this error happened on Windows 8.1 when clicking “Burn” when a burn was already in process (around ~30%).

Could not call remote function ``. Check that the function signature is correct. Underlying error: Error processing argument -1.
Error: Could not call remote function ``. Check that the function signature is correct. Underlying error: Error processing argument -1.
    at callFunction (C:\Users\Alexandros\resin-etcher\node_modules\electron-prebuilt\dist\resources\atom.asar\browser\lib\rpc-server.js:203:11)
    at EventEmitter.<anonymous> (C:\Users\Alexandros\resin-etcher\node_modules\electron-prebuilt\dist\resources\atom.asar\browser\lib\rpc-server.js:293:12)
    at emitMany (events.js:108:13)
    at EventEmitter.emit (events.js:182:7)
    at EventEmitter.<anonymous> (C:\Users\Alexandros\resin-etcher\node_modules\electron-prebuilt\dist\resources\atom.asar\browser\api\lib\web-contents.js:129:25)
    at emitTwo (events.js:87:13)
    at EventEmitter.emit (events.js:172:7)

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jviotticommented, Jun 21, 2016

So after some investigation, turns out Electron throws this error when you call a native function of the main process from the renderer process with the wrong arguments.

According to your stack trace, you get an error during the flash process the gets passed to OSDialogService.showError() from lib/gui/app.js:

// See https://github.com/resin-io/etcher/blob/v1.0.0-beta.8/lib/gui/app.js#L291
.catch(function(error) {

      if (error.type === 'check') {
        AnalyticsService.logEvent('Validation error');
      } else {
        AnalyticsService.logEvent('Flash error');
      }

      self.writer.resetState();
      OSDialogService.showError(error);
    })

OSDialogService.showError() calls electron.remote.dialog.showErrorBox(), a native function from the main process. According to the error, there is a conversion issue with the first parameter, the error title, which is computed like this:

const title = error.message || error.code || 'An error ocurred';

The conversion hint makes me thing that either error.message or error.code (most probably this one) is a number, and not a string.

This issue is obscuring the real bug. I’ll submit a PR to make sure title is a string as a way to prevent these from happening in the future, but I’d be amazing if you can manage to reproduce the error, so we can hopefully get to the bottom it.

Please let me know if you do have a way to reliably trigger this error and I’ll send a custom build to you containing extra debugging information.

Thank you very much again and let me know how it goes!

1reaction
jviotticommented, Jun 21, 2016

Hi @Leshich ,

Thanks for reporting this.

In conclusion, it would be nice to have some kind of alert or info message, that NTFS USB won’t work and I have to make it FAT32 myself (using Disk Utility).

I don’t think this is the root cause of the problem. Etcher doesn’t care about the drive format since it access the raw disk and blindly writes bytes to it, so it must be something else.

In any case, I’ve tried flashing to an NTFS drive but as I expected I was not able to reproduce the issue.

Can you actively reproduce when formatting as NTFS?

What Etcher version are you running BTW?

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not call remote function 'capturePage' on electron app ...
my indexjs is for mainWindow. Uncaught Error: Could not call remote function 'capturePage'. Check that the function signature is correct.
Read more >
Error: Could not call remote method 'setPosition'. Check that ...
The following error is in the console: browser-main.js:1 Uncaught (in promise) Error: Could not call remote method 'setPosition'.
Read more >
Quixel Bridge Error: Could not call remote function 'getPath'
I'm currently having an issue with bridge where it opens to a blank screen, absolutely nothing on it except the top bar for...
Read more >
@electron/remote - npm
@electron/remote. @electron/remote is an Electron module that bridges JavaScript objects from the main process to the renderer process.
Read more >
Could not execute Remote Function Call RSAO_BICS_OPEN ...
The following error pops up in AO when you open an AO report from the BPC web via the BPF (Business Process Flow)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found