Skip to content

MacOS 15.6: app crash on "npm run start" #30

@bliep

Description

@bliep

adev@mac pywebview-react-boilerplate % npm run start

pywebview-react-boilerplate@1.0.0 start
npm run frontend:dev && run-script-os

pywebview-react-boilerplate@1.0.0 frontend:dev
vite build --outDir gui --emptyOutDir

The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
vite v5.0.0 building for production...

index.css doesn't exist at build time, it will remain unchanged to be resolved at runtime
✓ 35 modules transformed.
gui/index.html 0.40 kB │ gzip: 0.26 kB
gui/assets/open-sans-v17-latin_cyrillic-italic-kYnW_g2D.woff 23.84 kB
gui/assets/open-sans-v17-latin_cyrillic-regular-hNQI_Qim.woff 24.59 kB
gui/assets/roboto-condensed-v18-latin_cyrillic-regular-P51cY63d.woff 28.62 kB
gui/assets/logo-NrnRdui-.png 46.67 kB
gui/assets/index-0i39k_d9.css 1.96 kB │ gzip: 0.77 kB
gui/assets/index-whdTteYr.js 144.60 kB │ gzip: 46.65 kB
✓ built in 261ms

pywebview-react-boilerplate@1.0.0 start:default
python src/index.py

[pywebview] Using Cocoa
[pywebview] Comon path for local URLs: ../gui
[pywebview] HTTP server root path: /Users/adev/tmp/pywebview-react-boilerplate/gui
Bottle v0.13.4 server starting up (using ThreadedAdapter())...
Listening on http://127.0.0.1:47356/
Hit Ctrl-C to quit.

127.0.0.1 - - [13/Sep/2025 10:57:55] "GET /index.html HTTP/1.1" 200 399
127.0.0.1 - - [13/Sep/2025 10:57:55] "GET /assets/index-0i39k_d9.css HTTP/1.1" 200 1961
127.0.0.1 - - [13/Sep/2025 10:57:55] "GET /assets/index-whdTteYr.js HTTP/1.1" 200 144596
[pywebview] before_load event fired. injecting pywebview object
[pywebview] Loading JS files from /Users/adev/miniconda3/lib/python3.12/site-packages/webview/js
127.0.0.1 - - [13/Sep/2025 10:57:55] "GET /assets/logo-NrnRdui-.png HTTP/1.1" 200 46669
127.0.0.1 - - [13/Sep/2025 10:57:55] "GET /assets/open-sans-v17-latin_cyrillic-italic-kYnW_g2D.woff HTTP/1.1" 200 23836
127.0.0.1 - - [13/Sep/2025 10:57:55] "GET /assets/roboto-condensed-v18-latin_cyrillic-regular-P51cY63d.woff HTTP/1.1" 200 28616
127.0.0.1 - - [13/Sep/2025 10:57:55] "GET /assets/open-sans-v17-latin_cyrillic-regular-hNQI_Qim.woff HTTP/1.1" 200 24592
RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
[pywebview] _pywebviewready event fired
RemoteLayerTreeDrawingAreaProxyMac::scheduleDisplayLink(): page has no displayID
*** Terminating app due to uncaught exception 'OC_PythonException', reason: '<class 'KeyError'>: 'value''
*** First throw call stack:
(
0 CoreFoundation 0x0000000189fd3ae0 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000189a96b90 objc_exception_throw + 88
2 _objc.cpython-312-darwin.so 0x0000000104b39f28 PyObjCUtil_Strdup + 0
3 _objc.cpython-312-darwin.so 0x0000000104b1b958 method_stub + 5820
4 libffi.dylib 0x000000019c627f60 ffi_closure_SYSV_inner + 852
5 libffi.dylib 0x000000019c61f1e8 ffi_closure_SYSV + 56
6 WebKit 0x00000001b0700ff8 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyEONS0_13FrameInfoDataERN3API12ContentWorldERN7WebCore21SerializedScriptValueE + 308
7 WebKit 0x00000001b0cecde0 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageEN3WTF23ObjectIdentifierGenericINS_26WebPageProxyIdentifierTypeENS1_38ObjectIdentifierMainThreadAccessTraitsIyEEyEEONS_13FrameInfoDataENS2 8 WebKit 0x00000001b07032b8 _ZN6WebKit29WebUserContentControllerProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 648
9 WebKit 0x00000001b11e3a40 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 264
10 WebKit 0x00000001b0c1d708 _ZN6WebKit15WebProcessProxy15dispatchMessageERN3IPC10ConnectionERNS1_7DecoderE + 40
11 WebKit 0x00000001b06dd654 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 1588
12 WebKit 0x00000001b11dcaf4 _ZN3IPC10Connection15dispatchMessageEN3WTF9UniqueRefINS_7DecoderEEE + 268
13 WebKit 0x00000001b11dd050 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 660
14 JavaScriptCore 0x00000001a8b897f0 _ZN3WTF7RunLoop11performWorkEv + 524
15 JavaScriptCore 0x00000001a8b8a68c _ZN3WTF7RunLoop11performWorkEPv + 36
16 CoreFoundation 0x0000000189f62b14 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
17 CoreFoundation 0x0000000189f62aa8 __CFRunLoopDoSource0 + 172
18 CoreFoundation 0x0000000189f62814 __CFRunLoopDoSources0 + 232
19 CoreFoundation 0x0000000189f61468 __CFRunLoopRun + 840
20 CoreFoundation 0x0000000189f60a98 CFRunLoopRunSpecific + 572
21 HIToolbox 0x0000000195a0327c RunCurrentEventLoopInMode + 324
22 HIToolbox 0x0000000195a064e8 ReceiveNextEventCommon + 676
23 HIToolbox 0x0000000195b91484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
24 AppKit 0x000000018de85a34 _DPSNextEvent + 684
25 AppKit 0x000000018e824940 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
26 AppKit 0x000000018de78be4 -[NSApplication run] + 480
27 libffi.dylib 0x000000019c61f050 ffi_call_SYSV + 80
28 libffi.dylib 0x000000019c627af0 ffi_call_int + 1220
29 _objc.cpython-312-darwin.so 0x0000000104b20064 PyObjCFFI_Caller + 1332
30 _objc.cpython-312-darwin.so 0x0000000104b424e4 objcsel_vectorcall + 572
31 python3.12 0x0000000102e0ff1c PyObject_Vectorcall + 88
32 python3.12 0x0000000102f2998c _PyEval_EvalFrameDefault + 51644
33 python3.12 0x0000000102f1c05c PyEval_EvalCode + 300
34 python3.12 0x0000000102f942b8 run_mod + 228
35 python3.12 0x0000000102f93db0 _PyRun_SimpleFileObject + 1516
36 python3.12 0x0000000102f93020 _PyRun_AnyFileObject + 268
37 python3.12 0x0000000102fbfce8 Py_RunMain + 3144
38 python3.12 0x0000000102fc0940 pymain_main + 628
39 python3.12 0x0000000102da8d60 main + 56
40 dyld 0x0000000189ad6b98 start + 6076
)
libc++abi: terminating due to uncaught exception of type NSException
(base) adev@mac pywebview-react-boilerplate % >....
2 _objc.cpython-312-darwin.so 0x0000000104b39f28 PyObjCUtil_Strdup + 0
3 _objc.cpython-312-darwin.so 0x0000000104b1b958 method_stub + 5820
4 libffi.dylib 0x000000019c627f60 ffi_closure_SYSV_inner + 852
5 libffi.dylib 0x000000019c61f1e8 ffi_closure_SYSV + 56
6 WebKit 0x00000001b0700ff8 _ZN28ScriptMessageHandlerDelegate14didPostMessageERN6WebKit12WebPageProxyEONS0_13FrameInfoDataERN3API12ContentWorldERN7WebCore21SerializedScriptValueE + 308
7 WebKit 0x00000001b0cecde0 _ZN6WebKit29WebUserContentControllerProxy14didPostMessageEN3WTF23ObjectIdentifierGenericINS_26WebPageProxyIdentifierTypeENS1_38ObjectIdentifierMainThreadAccessTraitsIyEEyEEONS_13FrameInfoDataENS2 8 WebKit 0x00000001b07032b8 _ZN6WebKit29WebUserContentControllerProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 648
9 WebKit 0x00000001b11e3a40 _ZN3IPC18MessageReceiverMap15dispatchMessageERNS_10ConnectionERNS_7DecoderE + 264
10 WebKit 0x00000001b0c1d708 _ZN6WebKit15WebProcessProxy15dispatchMessageERN3IPC10ConnectionERNS1_7DecoderE + 40
11 WebKit 0x00000001b06dd654 _ZN6WebKit15WebProcessProxy17didReceiveMessageERN3IPC10ConnectionERNS1_7DecoderE + 1588
12 WebKit 0x00000001b11dcaf4 _ZN3IPC10Connection15dispatchMessageEN3WTF9UniqueRefINS_7DecoderEEE + 268
13 WebKit 0x00000001b11dd050 _ZN3IPC10Connection24dispatchIncomingMessagesEv + 660
14 JavaScriptCore 0x00000001a8b897f0 _ZN3WTF7RunLoop11performWorkEv + 524
15 JavaScriptCore 0x00000001a8b8a68c _ZN3WTF7RunLoop11performWorkEPv + 36
16 CoreFoundation 0x0000000189f62b14 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 28
17 CoreFoundation 0x0000000189f62aa8 __CFRunLoopDoSource0 + 172
18 CoreFoundation 0x0000000189f62814 __CFRunLoopDoSources0 + 232
19 CoreFoundation 0x0000000189f61468 __CFRunLoopRun + 840
20 CoreFoundation 0x0000000189f60a98 CFRunLoopRunSpecific + 572
21 HIToolbox 0x0000000195a0327c RunCurrentEventLoopInMode + 324
22 HIToolbox 0x0000000195a064e8 ReceiveNextEventCommon + 676
23 HIToolbox 0x0000000195b91484 _BlockUntilNextEventMatchingListInModeWithFilter + 76
24 AppKit 0x000000018de85a34 _DPSNextEvent + 684
25 AppKit 0x000000018e824940 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
26 AppKit 0x000000018de78be4 -[NSApplication run] + 480
27 libffi.dylib 0x000000019c61f050 ffi_call_SYSV + 80
28 libffi.dylib 0x000000019c627af0 ffi_call_int + 1220
29 _objc.cpython-312-darwin.so 0x0000000104b20064 PyObjCFFI_Caller + 1332
30 _objc.cpython-312-darwin.so 0x0000000104b424e4 objcsel_vectorcall + 572
31 python3.12 0x0000000102e0ff1c PyObject_Vectorcall + 88
32 python3.12 0x0000000102f2998c _PyEval_EvalFrameDefault + 51644
33 python3.12 0x0000000102f1c05c PyEval_EvalCode + 300
34 python3.12 0x0000000102f942b8 run_mod + 228
35 python3.12 0x0000000102f93db0 _PyRun_SimpleFileObject + 1516
36 python3.12 0x0000000102f93020 _PyRun_AnyFileObject + 268
37 python3.12 0x0000000102fbfce8 Py_RunMain + 3144
38 python3.12 0x0000000102fc0940 pymain_main + 628
39 python3.12 0x0000000102da8d60 main + 56
40 dyld 0x0000000189ad6b98 start + 6076
)
libc++abi: terminating due to uncaught exception of type NSException
(base) adev@mac pywebview-react-boilerplate % npm run start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions