electron-quick-start icon indicating copy to clipboard operation
electron-quick-start copied to clipboard

Sample Hello World Electron app crashes when enabled with Hardened Runtime for Notarizing the MAC-App

Open shiv1m opened this issue 6 years ago • 3 comments
trafficstars

Create a Sample Hello World Electron App Downloaded from: github->electron/electron-quick-start

Package.json includes: “devDependencies”: { “electron”: “^5.0.8”, “electron-packager”: “^14.0.2”

Codesign the contents of the project

Include and enable the Hardened Runtime in the codesign command for App file with entitlement plist file.

com.apple.security.cs.allow-unsigned-executable-memory com.apple.security.network.client com.apple.security.files.user-selected.read-write com.apple.security.cs.allow-jit com.apple.security.cs.allow-dyld-environment-variables Try to launch the app file. **Observation: Electron app seen crashed** Crashed Thread Report:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ??? 0x00002d1a4a702040 0 + 49590941261888 1 com.github.Electron.framework 0x000000010b2e17f8 0x109a1f000 + 25962488 2 com.github.Electron.framework 0x000000010b2e03ee 0x109a1f000 + 25957358 3 com.github.Electron.framework 0x000000010b3765dd 0x109a1f000 + 26572253 4 com.github.Electron.framework 0x000000010b6b7d0b 0x109a1f000 + 29986059 5 com.github.Electron.framework 0x000000010b67ec00 0x109a1f000 + 29752320 6 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 7 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 8 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 9 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 10 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 11 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 12 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 13 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 14 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 15 com.github.Electron.framework 0x000000010b615660 0x109a1f000 + 29320800 16 com.github.Electron.framework 0x000000010b6153ed 0x109a1f000 + 29320173 17 com.github.Electron.framework 0x000000010b12253b 0x109a1f000 + 24130875 18 com.github.Electron.framework 0x000000010b12227b v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, int, v8::internal::Handlev8::internal::Object) + 203 19 com.github.Electron.framework 0x000000010ac8d65b v8::Function::Call(v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value) + 459 20 com.github.Electron.framework 0x000000010bc6ad9b 0x109a1f000 + 35962267 21 com.github.Electron.framework 0x000000010bc6bffd 0x109a1f000 + 35966973 22 com.github.Electron.framework 0x000000010ae3571f 0x109a1f000 + 21063455 23 com.github.Electron.framework 0x000000010adf3b7e 0x109a1f000 + 20794238 24 com.github.Electron.framework 0x000000010adf2ffa 0x109a1f000 + 20791290 25 com.github.Electron.framework 0x000000010b6b7d0b 0x109a1f000 + 29986059 26 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 27 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 28 com.github.Electron.framework 0x000000010b617db7 0x109a1f000 + 29330871 29 com.github.Electron.framework 0x000000010b615660 0x109a1f000 + 29320800 30 com.github.Electron.framework 0x000000010b6153ed 0x109a1f000 + 29320173 31 com.github.Electron.framework 0x000000010b12253b 0x109a1f000 + 24130875 32 com.github.Electron.framework 0x000000010b12227b v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, int, v8::internal::Handlev8::internal::Object) + 203 33 com.github.Electron.framework 0x000000010ac8d65b v8::Function::Call(v8::Localv8::Context, v8::Localv8::Value, int, v8::Localv8::Value) + 459 34 com.github.Electron.framework 0x000000010ef331c4 0x109a1f000 + 89211332 35 com.github.Electron.framework 0x000000010ef333f4 0x109a1f000 + 89211892 36 com.github.Electron.framework 0x000000010bc97898 0x109a1f000 + 36145304 37 com.github.Electron.framework 0x000000010bc09995 0x109a1f000 + 35563925 38 com.github.Electron.framework 0x000000010a5766f0 0x109a1f000 + 11892464 39 com.github.Electron.framework 0x000000010a57af00 0x109a1f000 + 11910912 40 com.github.Electron.framework 0x000000010a575eb4 0x109a1f000 + 11890356 41 com.github.Electron.framework 0x000000010b93a6de 0x109a1f000 + 32618206 42 com.github.Electron.framework 0x000000010b93a351 0x109a1f000 + 32617297 43 com.github.Electron.framework 0x000000010d4e6e2f 0x109a1f000 + 61636143 44 com.github.Electron.framework 0x000000010b9397a4 0x109a1f000 + 32614308 45 com.github.Electron.framework 0x0000000109a214d4 AtomMain + 84 46 com.github.Electron 0x00000001099ec9b0 0x1099eb000 + 6576 47 libdyld.dylib 0x00007fff7dcd83d5 start + 1

shiv1m avatar Nov 13 '19 10:11 shiv1m

Please drop your comments if you have seen the above issue and able to resolve

shiv1m avatar Nov 14 '19 06:11 shiv1m

Hey, I know how long this issue's been in limbo and was wondering if this is still happening for you when you test with an up-to-date version of the app?

ckerr avatar Oct 18 '21 16:10 ckerr

P

frzi00 avatar Jul 10 '22 20:07 frzi00