sclang timeout on electron build
See original GitHub issueSclang 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:
- Created 4 years ago
- Comments:19 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 thenapp.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
Sorry, it’s been the craziest week of the year. I’ll have a chance to peek at that over the holidays. Thanks!