nwjs/nw.js

Crashing while starting on latest version.

Opened this issue · 1 comments

Issue Type

Crashes while starting my app on latest version 0.93.0

Additional Info

  • Operating System: macos monterey
  • NW.js Version: 0.93.0
  • Crash report:
Operating system: Mac OS X
                  12.6.5 21G531
CPU: amd64
     family 6 model 61 stepping 4
     4 CPUs

GPU: UNKNOWN

Crash reason:  Simulated Exception
Crash address: 0x1252d933a
Process uptime: 1 seconds

Thread 0 (crashed)
 0  nwjs Framework + 0x846333a
    rax = 0x00007ff6f81ac9b0   rdx = 0x0000000000000000
    rcx = 0x00007ff6f81ac9b0   rbx = 0x00007ff7b93567a0
    rsi = 0x00007ff6f81ac930   rdi = 0x00007ff7b93567a0
    rbp = 0x00007ff7b9356860   rsp = 0x00007ff7b93567a0
     r8 = 0x0000000000000002    r9 = 0x0000000000000000
    r10 = 0x0000000000000037   r11 = 0xffffffff3ee560d7
    r12 = 0x000000012a5c2690   r13 = 0xaaaaaaaaaaaaaaaa
    r14 = 0x00007ff6f81ac920   r15 = 0x00007ff6f81ac9a0
    rip = 0x00000001252d933a
    Found by: given as instruction pointer in context

Here is whole crash file:
crashdata.txt

In case anyone looks into this.. here is some extra info:
As far as I could tell, I think the crashes were possibly occurring whenever a canvas element was being resized, or created, and then the context was trying to clearRect it, or do other operations.
If I did a setTimeout of 0 miliseconds, to delay the operations to next tick, the crash was avoided.
It seems strange though, because I tried making a minimum reproduction, but wasn't able to reproduce, so there's probably something else going on.