Doing more debug, with my unprofessional perspective it looks like the problem is deeper (electron or node).
I’m going to open a bug issue in electron.
I’m attaching a bigger output of the starting process and errors, maybe you’ll get an idea what to check next.
> lectrote@1.3.12 start
> electron .
RL: load_prefs start
RL: load_prefs readFileSync done
[42924:0118/164018.915276:ERROR:node_bindings.cc(264)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
[42921:0118/164018.987389:INFO:CONSOLE(111)] "%cElectron Security Warning (Insecure Content-Security-Policy) font-weight: bold; This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.", source: electron/js2c/renderer_init.js (111)
RL: game_file_discriminate start
RL: game_file_discriminate openSync
RL: game_file_discriminate Buffer.alloc
RL: game_file_discriminate readSync
[42927:0118/164022.179058:ERROR:node_bindings.cc(264)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
RL: load_named_game start
RL: load_named_game readFileSync start
RL: load_named_game readFileSync done
[42921:0118/164022.237876:INFO:CONSOLE(225)] "GiLoad: trying pre-loaded load (array)...", source: /Users/duracula/Documents/GitHub/lectrote/quixe/lib/elkote.min.js (225)
[42921:0118/164022.247919:INFO:CONSOLE(111)] "%cElectron Security Warning (Insecure Content-Security-Policy) font-weight: bold; This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.", source: electron/js2c/renderer_init.js (111)
RL: game_file_discriminate start
RL: game_file_discriminate openSync
RL: game_file_discriminate Buffer.alloc
RL: game_file_discriminate readSync
[42935:0118/164026.267293:ERROR:node_bindings.cc(264)] Most NODE_OPTIONs are not supported in packaged apps. See documentation for more details.
RL: load_named_game start
RL: load_named_game readFileSync start
RL: load_named_game readFileSync done
RL: common_emglken_load start (loading tads)
RL: common_emglken_load created engine
RL: common_emglken_load data created
RL: common_emglken_load returning
[42921:0118/164026.351093:INFO:CONSOLE(225)] "GiLoad: trying pre-loaded load (array)...", source: /Users/duracula/Documents/GitHub/lectrote/quixe/lib/elkote.min.js (225)
[42921:0118/164026.356984:INFO:CONSOLE(40)] "Blorb is not inited after load_run()!", source: /Users/duracula/Documents/GitHub/lectrote/apphooks.js (40)
[42921:0118/164026.357699:INFO:CONSOLE(111)] "%cElectron Security Warning (Insecure Content-Security-Policy) font-weight: bold; This renderer process has either no Content Security
Policy set or a policy with "unsafe-eval" enabled. This exposes users of
this app to unnecessary security risks.
For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.", source: electron/js2c/renderer_init.js (111)
<--- Last few GCs --->
[42935:0x7100000000] 44 ms: Scavenge 3.0 (4.3) -> 2.9 (4.8) MB, 0.5 / 0.0 ms (average mu = 1.000, current mu = 1.000) allocation failure
[42935:0x7100000000] 52 ms: Scavenge 4.1 (5.5) -> 3.7 (8.3) MB, 0.4 / 0.0 ms (average mu = 1.000, current mu = 1.000) allocation failure
[42935:0x7100000000] 99 ms: Scavenge 4.8 (8.8) -> 4.4 (9.3) MB, 0.4 / 0.0 ms (average mu = 1.000, current mu = 1.000) external memory pressure
<--- JS stacktrace --->
[42922:0118/164026.363858:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. 2D:F7:47:72:BB:D7:45:F0:02:14:9C:1F:FB:23:98:53
[42922:0118/164026.364130:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[42922:0118/164026.364163:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[42922:0118/164026.364183:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[42922:0118/164026.364197:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. A2:95:DD:00:57:0D:3A:46:DF:E7:24:1A:FD:5D:E1:FF
[42922:0118/164026.364214:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[42922:0118/164026.364227:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[42922:0118/164026.364239:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[42922:0118/164026.364252:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. B1:C2:52:0E:1C:C2:B9:3B:E0:A5:5D:09:87:D5:BB:73
Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.
[42922:0118/164026.364274:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[42922:0118/164026.364298:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[42922:0118/164026.364316:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[42922:0118/164026.364330:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. 92:DA:A0:B6:19:71:8D:6D:5C:75:A2:50:C9:F2:10:59
[42922:0118/164026.364347:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[42922:0118/164026.364359:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[42922:0118/164026.364378:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[42922:0118/164026.372338:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image
[42922:0118/164026.372365:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image
[42922:0118/164026.372381:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image
[42922:0118/164026.372395:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image