Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

**Electron Version:10.1.2

**Operating System:Windows 10 Enterprise

Last Known Working Electron version:

Expected Behavior

I am trying to stop the second instance under special circumstances (which is not being over the registered protocol/scheme).

Actual Behavior

I identify the second instance and call app.quit() but the application window still appears. I tried app.exit() instead with no luck.

The application continues to open up (new windows). I also notice no calls made to these events after calling quit() or exit():

app.on('window-all-closed', () => {

console.log('window-all-closed ', process.platform);

});

app.on('before-quit', () => {

console.log('before-quit');

mainWindow.close();

});

app.on('activate', () => {

console.log('activate is called');

if (mainWindow === null) {

mainWindow = windowLauncher.createWindow();

}

});

as the console.log does not write anything in the output.

To Reproduce

call app.requestSingleInstanceLock() and try to quit the app if no lock could be gained from the call.

Screenshots

Additional Information

here is my code:

const gotTheLock: boolean = app.requestSingleInstanceLock(); if (!gotTheLock) { console.log('second instance identified, closing the app'); app.quit(); console.log('quit() was called'); }

Issue 2:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron Version: v11.2.0

Operating System: macOS Big Sur 11.1

Last Known Working Electron version:

Expected Behavior

Electron renderer process not to crash.

Actual Behavior

Electron renderer process crashes.

To Reproduce

Make sure to use the ARM version of node!

Download GAM file: http://mirror.ifarchive.org/if-archive/games/tads/worlds.zip

git clone https://github.com/Durafen/lectrote.git

cd lectrote

git submodule init

git submodule update

npm install

.\node_modules\.bin\electron .

And then extract the worlds.gam file to the same directory as lectrote and then load it from the interface.

Screenshots

Additional Information

This is the output from the run:

[43191: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
[43191:0x7100000000] 52 ms: Scavenge 4.1 (5.5) -> 3.7 (8.0) MB, 0.4 / 0.0 ms (average mu = 1.000, current mu = 1.000) allocation failure
[43191:0x7100000000] 96 ms: Scavenge 4.9 (8.5) -> 4.5 (9.3) MB, 0.4 / 0.0 ms (average mu = 1.000, current mu = 1.000) external memory pressure

<--- JS stacktrace --->

[43185:0118/164751.510962:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. 93:F0:C7:06:C4:41:42:D4:65:FB:D7:38:76:16:D2:F5
[43185:0118/164751.511256:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[43185:0118/164751.511282:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[43185:0118/164751.511299:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[43185:0118/164751.511313:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. C2:8E:5D:7C:46:DE:36:D8:DC:4A:AD:2F:D1:39:CC:EB
[43185:0118/164751.511330:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[43185:0118/164751.511345:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[43185:0118/164751.511358:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[43185:0118/164751.511372:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. A2:84:80:A8:A1:72:CE:4B:6D:0E:A6:B5:7A:F1:64:29
[43185:0118/164751.511386:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[43185:0118/164751.511398:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[43185:0118/164751.511414:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
[43185:0118/164751.511425:ERROR:shared_image_manager.cc(143)] SharedImageManager::ProduceGLTexture: Trying to produce a representation from a non-existent mailbox. CB:2A:78:10:69:E1:B9:C3:33:32:F8:EA:E8:4C:60:2F
[43185:0118/164751.511441:ERROR:gles2_cmd_decoder.cc(19029)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoCreateAndTexStorage2DSharedImageINTERNAL: invalid mailbox name
[43185:0118/164751.511454:ERROR:gles2_cmd_decoder.cc(19050)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoBeginSharedImageAccessCHROMIUM: bound texture is not a shared image
[43185:0118/164751.511472:ERROR:gles2_cmd_decoder.cc(13915)] [.DisplayCompositor]GL ERROR :GL_INVALID_VALUE : glScheduleCALayerCHROMIUM: unsupported texture format
Renderer process crashed - see https://www.electronjs.org/docs/tutorial/application-debugging for potential debugging information.
[43185:0118/164751.519830:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image
[43185:0118/164751.519861:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image
[43185:0118/164751.519875:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared image
[43185:0118/164751.519887:ERROR:gles2_cmd_decoder.cc(19079)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : DoEndSharedImageAccessCHROMIUM: bound texture is not a shared @image```