Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron Helper (Renderer) process will cause macOS system crash #27487

Closed
3 tasks done
wuzhiming opened this issue Jan 26, 2021 · 4 comments
Closed
3 tasks done

Electron Helper (Renderer) process will cause macOS system crash #27487

wuzhiming opened this issue Jan 26, 2021 · 4 comments

Comments

@wuzhiming
Copy link

@wuzhiming wuzhiming commented Jan 26, 2021

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:
    • 11.2.0
  • Operating System:
    • macOS Big Sur 11.1
  • Last Known Working Electron version:
    • 11.1.0

Open CocoCreator (made by Electron),put the app background and doing other works(maybe 2 hours or more),the app will cause system crash, when restart system, we can get this log below. and it works fine when we use Electron 11.1.0.

Expected Behavior

Actual Behavior

To Reproduce

Panic(CPU 3, time 33961014701214): NMIPI for spinlock acquisition timeout, spinlock: 0xffffff86c42114d0, spinlock owner: 0xffffff86c8311e30, current_thread: 0xffffff86c8311e30, spinlock_owner_cpu: 0x3
RAX: 0xffffff86c00939b0, RBX: 0xffffff9373f80d28, RCX: 0x00000000000003be, RDX: 0x00005fbb00000000
RSP: 0xffffffb09fb73aa0, RBP: 0xffffffb09fb73ae0, RSI: 0xffffff86c8311e30, RDI: 0xffffff9373f80d28
R8:  0xffffffb09fb73c60, R9:  0xffffff8016b0e0a0, R10: 0x0000000000ffffff, R11: 0x0000000000000000
R12: 0xffffff86c8311e30, R13: 0x0000000000000000, R14: 0x00005fbc42a82212, R15: 0xffffff86c00939b0
RFL: 0x0000000000000007, RIP: 0xffffff8016acbb07, CS:  0x0000000000000008, SS:  0x0000000000000010
Backtrace (CPU 3), Frame : Return Address
0xffffffa068cd0f80 : 0xffffff8016bec4bb 
0xffffffa068cd0fd0 : 0xffffff8016a5ebdd 
0xffffffb09fb73ae0 : 0xffffff8016acbca4 
0xffffffb09fb73b10 : 0xffffff8016b0c8c0 
0xffffffb09fb73b30 : 0xffffff8016b0e0d9 
0xffffffb09fb73be0 : 0xffffff8016b0e5d6 
0xffffffb09fb73c50 : 0xffffff8016b0d624 
0xffffffb09fb73d10 : 0xffffff8016b11578 
0xffffffb09fb73d50 : 0xffffff80170227f4 
0xffffffb09fb73d70 : 0xffffff80170228de 
0xffffffb09fb73db0 : 0xffffff801707b44d 
0xffffffb09fb73e30 : 0xffffff8017076945 
0xffffffb09fb73ee0 : 0xffffff8017076757 
0xffffffb09fb73f40 : 0xffffff8017168cdb 
0xffffffb09fb73fa0 : 0xffffff8016a5f1f6 

Process name corresponding to current thread: CocosCreator Helper (Renderer)

Mac OS version:
20C69

Kernel version:
Darwin Kernel Version 20.2.0: Wed Dec  2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64
Kernel UUID: 82E2050C-5936-3D24-AD3B-EC4EC5C09E11
KernelCache slide: 0x0000000016800000
KernelCache base:  0xffffff8016a00000
Kernel slide:      0x0000000016810000
Kernel text base:  0xffffff8016a10000
__HIB  text base: 0xffffff8016900000
System model name: MacBookPro14,2 (Mac-CAD6701F7CEA0921)
System shutdown begun: NO
Panic diags file available: YES (0x0)
Hibernation exit count: 0

System uptime in nanoseconds: 33961014735801
Last Sleep:           absolute           base_tsc          base_nano
  Uptime  : 0x00001ee32a3836f5
  Sleep   : 0x0000000000000000 0x0000000000000000 0x0000000000000000
  Wake    : 0x0000000000000000 0x0000001b513ff01c 0x0000000000000000
last started kext at 21752544066238: >!AMikeyHIDDriver	131 (addr 0xffffff7fb6e42000, size 4096)
loaded kexts:
com.techsmith.TACC	1.0.3
>!AMikeyHIDDriver	131
>AudioAUUC	1.70
>!APlatformEnabler	2.7.0d0
>AGPM	119
>X86PlatformShim	1.0.0
@filesystems.autofs	3.0
@fileutil	20.036.15
>!AHIDALSService	1
>!AHDAHardwareConfigDriver	283.15
>!AHDA	283.15
>!AUpstreamUserClient	3.6.8
>!AGraphicsDevicePolicy	6.2.2
>!A!IPCHPMC	2.0.1
>!AEmbeddedOSSupportHost	1
@AGDCPluginDisplayMetrics	6.2.2
>pmtelemetry	1
>LuaHardwareAccess	1.0.16
|IOUserEthernet	1.0.1
>eficheck	1
>usb.!UUserHCI	1
>!AThunderboltIP	4.0.3
>ACPI_SMC_PlatformPlugin	1.0.0
|IO!BSerialManager	8.0.2f9
>AGDCBacklightControl	6.2.2
>!AFIVRDriver	4.1.0
@Dont_Steal_Mac_OS_X	7.0.0
>!AHV	1
>!ABacklight	180.3
>!AMCCSControl	1.14
>!ADiskImages2	1
>!A!IKBLGraphics	16.0.1
>!AGFXHDA	100.1.431
>!A!ISlowAdaptiveClocking	4.0.0
>!A!IKBLGraphicsFramebuffer	16.0.1
>usb.!UHostBillboardDevice	1.0
@filesystems.apfs	1677.60.23
>!AFileSystemDriver	3.0.1
@filesystems.tmpfs	1
@filesystems.hfs.kext	556.60.1
@BootCache	40
@!AFSCompression.!AFSCompressionTypeZlib	1.0.0
@!AFSCompression.!AFSCompressionTypeDataless	1.0.0d1
>!ATopCaseHIDEventDriver	4020.6
>AirPort.BrcmNIC	1400.1.1
@private.KextAudit	1.0
>!ASmartBatteryManager	161.0.0
>!AACPIButtons	6.1
>!ARTC	2.0
>!ASMBIOS	2.1
>!AACPIEC	6.1
>!AAPIC	1.7
@!ASystemPolicy	2.0.0
@nke.applicationfirewall	310
|IOKitRegistryCompatibility	1
|EndpointSecurity	1
@kext.triggers	1.0
>DspFuncLib	283.15
@kext.OSvKernDSPLib	529
>!AGraphicsControl	6.2.2
>!ASMBusPCI	1.0.14d1
>usb.IOUSBHostHIDDevice	1.2
>!AHDA!C	283.15
|IOHDA!F	283.15
>!AThunderboltEDMSink	5.0.3
>!AThunderboltDPOutAdapter	8.1.4
>IOPlatformPluginLegacy	1.0.0
>X86PlatformPlugin	1.0.0
>IOPlatformPlugin!F	6.0.0d8
|IOAVB!F	900.12
|IO!BHost!CUARTTransport	8.0.2f9
|IO!BHost!CTransport	8.0.2f9
>!ABacklightExpert	1.1.0
>!ASMBus!C	1.0.18d1
>!A!ILpssUARTv1	3.0.60
>!A!ILpssUARTCommon	3.0.60
>!AOnboardSerial	1.0
|IOSerial!F	11
|IOAudio!F	300.6.1
@vecLib.kext	1.2.0
@plugin.IOgPTPPlugin	900.11
|IOEthernetAVB!C	1.1.0
|IONDRVSupport	585
@!AGPUWrangler	6.2.2
|IOSlowAdaptiveClocking!F	1.0.0
|IOAccelerator!F2	439.52
@!AGraphicsDeviceControl	6.2.2
|IOGraphics!F	585
>usb.cdc.ecm	5.0.0
>usb.cdc.ncm	5.0.0
>usb.!UiBridge	1.0
>usb.cdc	5.0.0
>usb.networking	5.0.0
>usb.!UHostCompositeDevice	1.2
>usb.!UHub	1.2
>!AThunderboltDPInAdapter	8.1.4
>!AThunderboltDPAdapter!F	8.1.4
>!AThunderboltPCIDownAdapter	4.1.1
>!AHPM	3.4.4
>!A!ILpssI2C!C	3.0.60
>!AXsanScheme	3
>!ABSDKextStarter	3
|IOSurface	289.3
@filesystems.hfs.encodings.kext	1
>!AActuatorDriver	4400.28
>!AHIDKeyboard	222
>!AMultitouchDriver	4400.28
>!AInputDeviceSupport	4400.35
>!AHS!BDriver	4020.6
>IO!BHIDDriver	8.0.2f9
>!AHSSPIHIDDriver	61
>!AHSSPISupport	61
>!AThunderboltNHI	7.2.8
|IOThunderbolt!F	9.3.2
>!A!ILpssSpi!C	3.0.60
>!A!ILpssDmac	3.0.60
|IO80211!F	1200.12.2b1
|IOSkywalk!F	1
>mDNSOffloadUserClient	1.0.1b8
>corecapture	1.0.4
|IONVMe!F	2.1.0
>!A!ILpssI2C	3.0.60
>!A!ILpssGspi	3.0.60
>usb.!UXHCIPCI	1.2
>usb.!UXHCI	1.2
>usb.!UHostPacketFilter	1.0
|IOUSB!F	900.4.2
>!AEFINVRAM	2.1
>!AEFIRuntime	2.1
|IOSMBus!F	1.1
|IOHID!F	2.0.0
$!AImage4	3.0.0
|IOTimeSync!F	900.11
|IONetworking!F	3.4
>DiskImages	493.0.0
|IO!B!F	8.0.2f9
|IOReport!F	47
|IO!BPacketLogger	8.0.2f9
$quarantine	4
$sandbox	300.0
@kext.!AMatch	1.0.0d1
|CoreAnalytics!F	1
>!ASSE	1.0
>!AKeyStore	2
>!UTDM	511.60.2
|IOUSBMass!SDriver	184.40.6
|IOSCSIBlockCommandsDevice	436.40.6
|IO!S!F	2.1
|IOSCSIArchitectureModel!F	436.40.6
>!AMobileFileIntegrity	1.0.5
@kext.CoreTrust	1
>!AFDEKeyStore	28.30
>!AEffaceable!S	1.0
>!ACredentialManager	1.0
>KernelRelayHost	1
|IOUSBHost!F	1.2
>!UHostMergeProperties	1.2
>usb.!UCommon	1.0
>!ABusPower!C	1.0
>!ASEPManager	1.0.1
>IOSlaveProcessor	1
>!AACPIPlatform	6.1
>!ASMC	3.1.9
|IOPCI!F	2.9
|IOACPI!F	1.4
>watchdog	1
@kec.pthread	1
@kec.corecrypto	11.1
@kec.Libm	1
panic(cpu 2 caller 0xffffff8016be1860): "Spinlock acquisition timed out: lock=0xffffff86c42114d0, lock owner thread=0xffffff86c8311e30, current_thread: 0xffffff86c00939b0, lock owner active on CPU 0x3, current owner: 0xffffff86c8311e30, time: 33961014761712"@/AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-7195.60.75/osfmk/i386/locks_i386.c:505
Backtrace (CPU 2), Frame : Return Address
0xffffffa0688c8af0 : 0xffffff8016ab9aed 
0xffffffa0688c8b40 : 0xffffff8016bfc6e3 
0xffffffa0688c8b80 : 0xffffff8016becd1a 
0xffffffa0688c8bd0 : 0xffffff8016a5ea2f 
0xffffffa0688c8bf0 : 0xffffff8016ab938d 
0xffffffa0688c8d10 : 0xffffff8016ab9678 
0xffffffa0688c8d80 : 0xffffff80172be3ca 
0xffffffa0688c8df0 : 0xffffff8016be1860 
0xffffffa0688c8e30 : 0xffffff8016ad9f96 
0xffffffa0688c8e60 : 0xffffff8016b07d0b 
0xffffffa0688c8f20 : 0xffffff8016bd87b3 
0xffffffa0688c8f60 : 0xffffff8016bf5daa 
0xffffffa0688c8f80 : 0xffffff8016bec4bb 
0xffffffa0688c8fd0 : 0xffffff8016a5ebdd 
0xffffffb09fb6bdb0 : 0xffffff8016b11361 
0xffffffb09fb6be10 : 0xffffff8017078a59 
0xffffffb09fb6bf00 : 0xffffff8017077b86 
0xffffffb09fb6bf40 : 0xffffff8017168cdb 
0xffffffb09fb6bfa0 : 0xffffff8016a5f1f6 

Process name corresponding to current thread: CocosCreator Helper (Renderer)



Screenshots

Additional Information

@ckerr
Copy link
Member

@ckerr ckerr commented Jan 26, 2021

Thanks for reporting this and helping to make Electron better!

Because of time constraints, triaging issues that have third-party dependencies is usually not feasible for a small team like Electron's. In the case of CocoCreator I'm not sure it would be possible at all since it is closed-source.

Would it be possible for you to make a standalone testcase Electron app with only the code necessary to reproduce the kernel panic? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

I'm adding the blocked/needs-repro label for this reason. After you make a test case, please link to it in a followup comment.

Thanks in advance! Your help is appreciated.

@electron-triage
Copy link
Collaborator

@electron-triage electron-triage commented Mar 9, 2021

Thank you for your issue!

We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue.

@aztack
Copy link

@aztack aztack commented Mar 14, 2021

Same problem here: NMIPI for spinlock acquisition timeout, ...

I made an app with Electron. It will crash in some conditions on Bigsur but not on Catalina 10.15.7.
Here are the process.versions

{
ares: "1.16.0"
brotli: "1.0.7"
chrome: "87.0.4280.141"
electron: "11.3.0"
http_parser: "2.9.3"
icu: "67.1"
llhttp: "2.0.4"
modules: "85"
napi: "6"
nghttp2: "1.41.0"
node: "12.18.3"
openssl: "1.1.1"
unicode: "13.0"
uv: "1.38.0"
v8: "8.7.220.31-electron.0"
zlib: "1.2.11"
}

image

@pisal-rath

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants