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.

sclang timeout on electron build

See original GitHub issue

Sclang booting reaches timeout on electron but only on the production build.

This is the log:

Loading config: /Users/lorenzo/Developer/Node/superorch/.supercollider.yaml
debug  : {
          "debug": true,
          "echo": true,
          "sclang": "/Applications/SuperCollider/SuperCollider.app/Contents/MacOS/sclang",
          "scsynth": "/Applications/SuperCollider/SuperCollider.app/Contents/Resources/scsynth",
          "stdin": false,
          "failIfSclangConfIsMissing": false,
          "conf": {
            "includePaths": [],
            "excludePaths": [],
            "postInlineWarnings": false
          },
          "sclang_conf": "/Users/lorenzo/Library/Application Support/SuperCollider/sclang_conf.yaml"
        }
debug  : {
          "errno": -2,
          "syscall": "open",
          "code": "ENOENT",
          "path": "/Users/lorenzo/Library/Application Support/SuperCollider/sclang_conf.yaml"
        }
[ 101, 'connection open' ]
debug  : compiling class library...
[Error: net::ERR_HTTP_RESPONSE_CODE_FAILURE]
error  : Timeout waiting for sclang to boot pid:28774
SCError {
  data: SclangCompileResult {
    version: '',
    stdout: '',
    errors: [],
    extensionErrors: [],
    duplicateClasses: [],
    dirs: []
  }
}

How to reproduce this issue:

  • Create React App + Electron setup
  • On App.js use an electron channel to boot sclang

Environment

  • MacOS: 10.15
  • electron: 7.1.2
  • electron-builder: 21.1.1
  • SuperColliderjs 1.0.0-beta.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
fibonacidcommented, Feb 19, 2020

Ok, I’ve found a solution.

Basically every module required by supercolliderjs must be unpacked, therefore being located inside MyApp/Contents/Resources/app.asar.unpacked.

Also all path statements that involve unpacked modules should be modified to point to app.asar.unpacked rather then app.asar. To do this I have found this library called hazardous that does that for you.

@crucialfelix I’ve created an example repo that you can use as a reference. https://github.com/lorenzorivosecchi/electron-with-supercollider-example

1reaction
crucialfelixcommented, Dec 19, 2019

Sorry, it’s been the craziest week of the year. I’ll have a chance to peek at that over the holidays. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build fails with TimeOut exception: proxy · Issue #585 - GitHub
I'm working on a PR, using either nugget or request for downloading the binaries, just like electron-download does.
Read more >
Publish - electron-builder
Every CI build will update the artifacts attached to this draft. ... timeout = 120000 Number | “undefined” - Request timeout in milliseconds....
Read more >
How to solve timeout problem with electron-html-to node.js
I'm experiencing this timeout when trying to use electron to convert an html file to pdf. I'm running this js app through node....
Read more >
Advanced Installation Instructions | Electron
The preferred method is to install Electron as a development dependency in ... If you are unable to access GitHub or you need...
Read more >
Emby Theater for Linux - Page 10 - Emby Theater - Emby Community
pi@raspberrypi:~/emby-theater-electron $ git checkout ... Do you have to delete mpv-build folder and start from step one.
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