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

Mac Big Sur reports "GPU abnormal" #26686

Open
2 tasks done
jiangjianping opened this issue Nov 25, 2020 · 16 comments
Open
2 tasks done

Mac Big Sur reports "GPU abnormal" #26686

jiangjianping opened this issue Nov 25, 2020 · 16 comments

Comments

@jiangjianping
Copy link

@jiangjianping jiangjianping commented Nov 25, 2020

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • [x ] 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:
    8.5.x,11.0

  • Operating System:

    • macOS Big Sur
  • Last Known Working Electron version:

    • Before upgrade to Big Sur, everthing is ok. After upgrading, "GPU abnormal" even when the GPU hardware acceleration is disabled.

Expected Behavior

The electron application works

Actual Behavior

"GPU Abnormal" , then have to close the app.

To Reproduce

Open the electron application which is running before Big Sur, after a while, get the "GPU abnormal" alter window.

Screenshots

Additional Information

@nornagon
Copy link
Member

@nornagon nornagon commented Nov 25, 2020

Thanks for the report. I'm not sure what you're describing when you say "GPU Abnormal". Can you include a screenshot or log messages?

@jiangjianping
Copy link
Author

@jiangjianping jiangjianping commented Nov 25, 2020

@nornagon,

The GPU helper process crashed under mac big sur. Everything is ok before upgrading to big sur.

screenshot

WechatIMG8

@nornagon
Copy link
Member

@nornagon nornagon commented Nov 25, 2020

What specific version of Electron 11 are you observing this on?

Does it still occur in the Electron 12 nightly?

You are on an Intel machine, is that correct?

@jiangjianping
Copy link
Author

@jiangjianping jiangjianping commented Nov 26, 2020

@nornagon

Testing in all 11.0.x, 11.0.0-11.0.3. The MAC Pro based on Intel CPU. Do you mean the electron 12.x may resolve this problem? I will try.

@jiangjianping
Copy link
Author

@jiangjianping jiangjianping commented Nov 26, 2020

@nornagon

BTW, The same app running in Chrome 87, no gpu crash problem.

@jiangjianping
Copy link
Author

@jiangjianping jiangjianping commented Nov 26, 2020

the crash report:

Process: xxx Helper [27705]
Path: /Applications/xxx.app/Contents/Frameworks/xxx Helper (GPU).app/Contents/MacOS/xxx Helper (GPU)
Identifier: xxx Helper
Version: 2.4.133
Code Type: X86-64 (Native)
Parent Process: xxx [27703]
Responsible: xxx [27703]
User ID: 501

Date/Time: 2020-11-25 15:59:24.718 +0800
OS Version: macOS 11.0.1 (20B29)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: 5B6AD86C-57F1-9A4A-BD42-244127FCC139

Sleep/Wake UUID: 47E5D056-2AF6-4B91-8900-BC5749808DE1

Time Awake Since Boot: 64000 seconds
Time Since Wake: 3400 seconds

System Integrity Protection: enabled

Crashed Thread: 4 ThreadPoolForegroundWorker

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: in dlopen_preflight()
abort() called
xxx Helper (GPU)(27705,0x70000ea1a000) malloc: Incorrect checksum for freed object 0x7fac1b53a408: probably modified after being freed.
Corrupt value: 0x1000000000000020

Thread 0:: CrGpuMain Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff202f8e7e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff202f91f0 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff20425be7 _CFRunLoopServiceMachPort + 316
3 com.apple.CoreFoundation 0x00007fff204242ba CFRunLoopRun + 1315
4 com.apple.CoreFoundation 0x00007fff204236be CFRunLoopRunSpecific + 563
5 com.apple.Foundation 0x00007fff211adfa1 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
6 com.github.Electron.framework 0x0000000108e705b9 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6284553
7 com.github.Electron.framework 0x0000000108e6f662 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6280626
8 com.github.Electron.framework 0x0000000108e3eb11 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6081121
9 com.github.Electron.framework 0x0000000108e1d209 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5943641
10 com.github.Electron.framework 0x000000010a5a600a cv::LineIterator::LineIterator(cv::Rect
, cv::Point
, cv::Point
, int, bool) + 18544826
11 com.github.Electron.framework 0x0000000108a58dbd v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 1993997
12 com.github.Electron.framework 0x000000010829c3fe ElectronInitializeICUandStartNode + 6185582
13 com.github.Electron.framework 0x000000010829c902 ElectronInitializeICUandStartNode + 6186866
14 com.github.Electron.framework 0x0000000107cb6158 ElectronMain + 136
15 com.zjcloudmeeting.compclient.helper.GPU 0x0000000107c53d40 0x107c50000 + 15680
16 libdyld.dylib 0x00007fff20348631 start + 1

Thread 1:
0 libsystem_pthread.dylib 0x00007fff20329458 start_wqthread + 0

Thread 2:: GpuWatchdog
0 libsystem_kernel.dylib 0x00007fff202f8e7e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff202f91f0 mach_msg + 60
2 com.github.Electron.framework 0x0000000108e73744 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6297236
3 com.github.Electron.framework 0x0000000108e06b78 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5851848
4 com.github.Electron.framework 0x0000000108e3eb11 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6081121
5 com.github.Electron.framework 0x0000000108e1d209 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5943641
6 com.github.Electron.framework 0x0000000108e56b4f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6179487
7 com.github.Electron.framework 0x0000000108e6b973 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6265027
8 libsystem_pthread.dylib 0x00007fff2032d950 _pthread_start + 224
9 libsystem_pthread.dylib 0x00007fff2032947b thread_start + 15

Thread 3:: ThreadPoolServiceThread
0 libsystem_kernel.dylib 0x00007fff20301dde kevent64 + 10
1 com.github.Electron.framework 0x0000000108e7ed08 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6343768
2 com.github.Electron.framework 0x0000000108e7ebfb v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6343499
3 com.github.Electron.framework 0x0000000108e3eb11 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6081121
4 com.github.Electron.framework 0x0000000108e1d209 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5943641
5 com.github.Electron.framework 0x0000000108e477ed v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6117181
6 com.github.Electron.framework 0x0000000108e56b4f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6179487
7 com.github.Electron.framework 0x0000000108e6b973 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6265027
8 libsystem_pthread.dylib 0x00007fff2032d950 _pthread_start + 224
9 libsystem_pthread.dylib 0x00007fff2032947b thread_start + 15

Thread 4 Crashed:: ThreadPoolForegroundWorker
0 libsystem_kernel.dylib 0x00007fff202ff462 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff2032d610 pthread_kill + 263
2 libsystem_c.dylib 0x00007fff20280720 abort + 120
3 libsystem_malloc.dylib 0x00007fff20161430 malloc_vreport + 548
4 libsystem_malloc.dylib 0x00007fff20175702 malloc_zone_error + 183
5 libsystem_malloc.dylib 0x00007fff20156502 tiny_malloc_from_free_list + 1805
6 libsystem_malloc.dylib 0x00007fff20155876 tiny_malloc_should_clear + 233
7 libsystem_malloc.dylib 0x00007fff20154793 szone_malloc_should_clear + 66
8 com.github.Electron.framework 0x0000000108e758af v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6305791
9 com.github.Electron.framework 0x0000000108e758af v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6305791
10 libsystem_malloc.dylib 0x00007fff2016ddfe _malloc_zone_malloc + 118
11 libc++abi.dylib 0x00007fff202f3daa operator new(unsigned long) + 26
12 libc++.1.dylib 0x00007fff202c4023 std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__grow_by_and_replace(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, char const*) + 137
13 libc++.1.dylib 0x00007fff202c4c5f std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::append(char const*, unsigned long) + 93
14 com.apple.Metal 0x00007fff282ebc38 getCompilerTimeStampHash(int, MTLUINT256_t*) + 98
15 com.apple.Metal 0x00007fff2836f56e invocation function for block in getLibrariesCache(int) + 42
16 libdispatch.dylib 0x00007fff201827c7 _dispatch_client_callout + 8
17 libdispatch.dylib 0x00007fff2018396b _dispatch_once_callout + 20
18 com.apple.Metal 0x00007fff282ebbca getLibrariesCache(int) + 149
19 com.apple.Metal 0x00007fff2835ec52 MTLLibraryBuilder::initLibraryContainerWithRequestData(MTLLibraryContainer*, void*, unsigned long, MTLBuildRequestType, MTLCompileOptions const*, MTLCompilerFunctionRequest const*, unsigned int, bool, void () block_pointer) + 140
20 com.apple.Metal 0x00007fff283600d4 MTLLibraryBuilder::newLibraryWithRequestData(void*, unsigned long, MTLBuildRequestType, MTLCompileOptions const*, MTLCompilerFunctionRequest const*, unsigned int, bool, void (id, NSError*) block_pointer) + 254
21 com.apple.Metal 0x00007fff28361bbc MTLLibraryBuilder::newLibraryWithSource(id, NSString*, MTLCompileOptions*, bool, void (id, NSError*) block_pointer) + 5952
22 com.apple.Metal 0x00007fff28339121 -[_MTLDevice newLibraryWithSource:options:completionHandler:] + 75
23 com.github.Electron.framework 0x000000010cdfcd25 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 21804373
24 com.github.Electron.framework 0x000000010cdfd900 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 21807408
25 com.github.Electron.framework 0x0000000108e30e39 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6024585
26 com.github.Electron.framework 0x0000000108e49777 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6125255
27 com.github.Electron.framework 0x0000000108e490ff v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6123599
28 com.github.Electron.framework 0x0000000108e6b4bc v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6263820
29 com.github.Electron.framework 0x0000000108e48c46 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6122390
30 com.github.Electron.framework 0x0000000108e5009a v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6152170
31 com.github.Electron.framework 0x0000000108e4fe5d v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6151597
32 com.github.Electron.framework 0x0000000108e6b973 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6265027
33 libsystem_pthread.dylib 0x00007fff2032d950 _pthread_start + 224
34 libsystem_pthread.dylib 0x00007fff2032947b thread_start + 15

Thread 5:: ThreadPoolBackgroundWorker
0 libsystem_kernel.dylib 0x00007fff202f8e7e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff202f91f0 mach_msg + 60
2 com.github.Electron.framework 0x0000000108e73744 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6297236
3 com.github.Electron.framework 0x0000000108e4f95e v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6150318
4 com.github.Electron.framework 0x0000000108e5017c v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6152396
5 com.github.Electron.framework 0x0000000108e4fdfd v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6151501
6 com.github.Electron.framework 0x0000000108e6b973 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6265027
7 libsystem_pthread.dylib 0x00007fff2032d950 _pthread_start + 224
8 libsystem_pthread.dylib 0x00007fff2032947b thread_start + 15

Thread 6:: Chrome_ChildIOThread
0 libsystem_kernel.dylib 0x00007fff20301dde kevent64 + 10
1 com.github.Electron.framework 0x0000000108e7ed08 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6343768
2 com.github.Electron.framework 0x0000000108e7ebfb v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6343499
3 com.github.Electron.framework 0x0000000108e3eb11 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6081121
4 com.github.Electron.framework 0x0000000108e1d209 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5943641
5 com.github.Electron.framework 0x0000000108e56b4f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6179487
6 com.github.Electron.framework 0x0000000108e6b973 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6265027
7 libsystem_pthread.dylib 0x00007fff2032d950 _pthread_start + 224
8 libsystem_pthread.dylib 0x00007fff2032947b thread_start + 15

Thread 7:: VizCompositorThread
0 libsystem_kernel.dylib 0x00007fff202f8e7e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff202f91f0 mach_msg + 60
2 com.github.Electron.framework 0x0000000108e73744 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6297236
3 com.github.Electron.framework 0x0000000108e735ce v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6296862
4 com.github.Electron.framework 0x0000000108e06b2e v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5851774
5 com.github.Electron.framework 0x0000000108e3eb11 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6081121
6 com.github.Electron.framework 0x0000000108e1d209 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 5943641
7 com.github.Electron.framework 0x0000000108e56b4f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6179487
8 com.github.Electron.framework 0x0000000108e6b973 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6265027
9 libsystem_pthread.dylib 0x00007fff2032d950 _pthread_start + 224
10 libsystem_pthread.dylib 0x00007fff2032947b thread_start + 15

Thread 8:: ThreadPoolForegroundWorker
0 libsystem_kernel.dylib 0x00007fff202f8e7e mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff202f91f0 mach_msg + 60
2 com.github.Electron.framework 0x0000000108e73744 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6297236
3 com.github.Electron.framework 0x0000000108e4f95e v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6150318
4 com.github.Electron.framework 0x0000000108e4ff84 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6151892
5 com.github.Electron.framework 0x0000000108e4fe5d v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6151597
6 com.github.Electron.framework 0x0000000108e6b973 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6265027
7 libsystem_pthread.dylib 0x00007fff2032d950 _pthread_start + 224
8 libsystem_pthread.dylib 0x00007fff2032947b thread_start + 15

Thread 4 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000070000ea1a000 rcx: 0x000070000ea18868 rdx: 0x0000000000000000
rdi: 0x0000000000006c03 rsi: 0x0000000000000006 rbp: 0x000070000ea18890 rsp: 0x000070000ea18868
r8: 0x0000000000000000 r9: 0x0000000000000000 r10: 0x000070000ea1a000 r11: 0x0000000000000246
r12: 0x0000000000006c03 r13: 0x0000000000000043 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007fff202ff462 rfl: 0x0000000000000246 cr2: 0x00000001163bd000

@jiangjianping
Copy link
Author

@jiangjianping jiangjianping commented Nov 27, 2020

@nornagon

Is Electron 12.0 optimized for Big Sur? I am evaluating whether to upgrade our app to 12.x which is still under beta.

@jiangjianping
Copy link
Author

@jiangjianping jiangjianping commented Nov 27, 2020

@nornagon ,

This problem "solved": We just ignore the "gpu-process-crashed" and "child-process-gone", the app can keep work while the "helper sub process" crash report generated on DiagnosticReports. I wonder whether this action is reasonable ?

Application Specific Information:
abort() called
xxx Helper (GPU)(9607,0x70000a001000) malloc: Incorrect checksum for freed object 0x7fd594d51818: probably modified after being freed.
Corrupt value: 0xa00007fd594d5220

Thread 4 Crashed:: ThreadPoolForegroundWorker
0 libsystem_kernel.dylib 0x00007fff20310462 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff2033e610 pthread_kill + 263
2 libsystem_c.dylib 0x00007fff20291720 abort + 120
3 libsystem_malloc.dylib 0x00007fff20172430 malloc_vreport + 548
4 libsystem_malloc.dylib 0x00007fff20186702 malloc_zone_error + 183
5 libsystem_malloc.dylib 0x00007fff20167502 tiny_malloc_from_free_list + 1805
6 libsystem_malloc.dylib 0x00007fff20166876 tiny_malloc_should_clear + 233
7 libsystem_malloc.dylib 0x00007fff20165793 szone_malloc_should_clear + 66
8 com.github.Electron.framework 0x000000010b9d6134 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6310596
9 com.github.Electron.framework 0x000000010b9d6134 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6310596
10 libsystem_malloc.dylib 0x00007fff2017eeb7 _malloc_zone_calloc + 59
11 com.apple.Metal 0x00007fff282fd023 MTLCompilerFSCache::MTLCompilerFSCache(char const*, char const*, MTLUINT256_t const&) + 385
12 com.apple.Metal 0x00007fff282fce80 MTLCompilerCache::createFSCache(char const*, char const*, MTLUINT256_t const&) + 50
13 com.apple.Metal 0x00007fff282fce1c MTLLibraryCache::MTLLibraryCache(char const*, MTLUINT256_t const&) + 84
14 com.apple.Metal 0x00007fff2838058d invocation function for block in getLibrariesCache(int) + 73
15 libdispatch.dylib 0x00007fff201937c7 _dispatch_client_callout + 8
16 libdispatch.dylib 0x00007fff2019496b _dispatch_once_callout + 20
17 com.apple.Metal 0x00007fff282fcbca getLibrariesCache(int) + 149
18 com.apple.Metal 0x00007fff2836fc52 MTLLibraryBuilder::initLibraryContainerWithRequestData(MTLLibraryContainer*, void*, unsigned long, MTLBuildRequestType, MTLCompileOptions const*, MTLCompilerFunctionRequest const*, unsigned int, bool, void () block_pointer) + 140
19 com.apple.Metal 0x00007fff283710d4 MTLLibraryBuilder::newLibraryWithRequestData(void*, unsigned long, MTLBuildRequestType, MTLCompileOptions const*, MTLCompilerFunctionRequest const*, unsigned int, bool, void (id, NSError*) block_pointer) + 254
20 com.apple.Metal 0x00007fff28372bbc MTLLibraryBuilder::newLibraryWithSource(id, NSString*, MTLCompileOptions*, bool, void (id, NSError*) block_pointer) + 5952
21 com.apple.Metal 0x00007fff2834a121 -[_MTLDevice newLibraryWithSource:options:completionHandler:] + 75
22 com.github.Electron.framework 0x000000010f95c845 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 21796949
23 com.github.Electron.framework 0x000000010f95d420 v8::internal::compiler::ZoneStats::GetCurrentAllocatedBytes() const + 21799984
24 com.github.Electron.framework 0x000000010b991669 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6029305
25 com.github.Electron.framework 0x000000010b9a9fa7 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6129975
26 com.github.Electron.framework 0x000000010b9a992f v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6128319
27 com.github.Electron.framework 0x000000010b9cbcec v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6268540
28 com.github.Electron.framework 0x000000010b9a9476 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6127110
29 com.github.Electron.framework 0x000000010b9b08ca v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6156890
30 com.github.Electron.framework 0x000000010b9b068d v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6156317
31 com.github.Electron.framework 0x000000010b9cc1a3 v8::internal::SetupIsolateDelegate::SetupHeap(v8::internal::Heap*) + 6269747
32 libsystem_pthread.dylib 0x00007fff2033e950 _pthread_start + 224
33 libsystem_pthread.dylib 0x00007fff2033a47b thread_start + 15

@nornagon
Copy link
Member

@nornagon nornagon commented Nov 30, 2020

Thanks for the info. Can you please attach the complete crash report to this issue? In order to get the correct symbols, I need to have the full crash report.

@bxiaofei
Copy link

@bxiaofei bxiaofei commented Dec 10, 2020

Electron 9.3.5 is ok!

@tongdehui
Copy link

@tongdehui tongdehui commented Dec 13, 2020

@jiangjianping

I also encountered the same problem. Is there any conclusion?

@nornagon
Copy link
Member

@nornagon nornagon commented Dec 15, 2020

Here's the symbolized crash stack:

Thread 3 Crashed:: ThreadPoolForegroundWorker
__pthread_kill + 10
pthread_kill + 263
abort + 120
malloc_vreport + 548
malloc_zone_error + 183
tiny_malloc_from_free_list + 1805
tiny_malloc_should_clear + 233
szone_malloc_should_clear + 66
base::PartitionRoot<true>::ReallocFlags(int, void*, unsigned long, char const*) (in Electron Framework) (partition_alloc.cc:409)
base::PartitionRoot<true>::ReallocFlags(int, void*, unsigned long, char const*) (in Electron Framework) (partition_alloc.cc:409)
_malloc_zone_malloc + 118
ImageLoaderMachOCompressed::instantiateFromCache(macho_header const*, char const*, long, stat const&, unsigned int, unsigned int, ImageLoader::LinkContext const&) + 63
ImageLoaderMachO::instantiateFromCache(macho_header const*, char const*, long, stat const&, ImageLoader::LinkContext const&) + 123
dyld::loadPhase5(char const*, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 855
dyld::loadPhase4(char const*, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 185
dyld::loadPhase3(char const*, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 1434
dyld::loadPhase1(char const*, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 186
dyld::loadPhase0(char const*, char const*, dyld::LoadContext const&, unsigned int&, std::__1::vector<char const*, std::__1::allocator<char const*> >*) + 487
dyld::load(char const*, dyld::LoadContext const&, unsigned int&) + 185
dlopen_internal + 419
dlopen_internal(char const*, int, void*) + 177
dlopen + 28
getCompilerTimeStampHash(int, MTLUINT256_t*) + 160
invocation function for block in getLibrariesCache(int) + 42
_dispatch_client_callout + 8
_dispatch_once_callout + 20
getLibrariesCache(int) + 149
MTLLibraryBuilder::initLibraryContainerWithRequestData(MTLLibraryContainer*, void*, unsigned long, MTLBuildRequestType, MTLCompileOptions const*, MTLCompilerFunctionRequest const*, unsigned int, bool, void () block_pointer) + 140
MTLLibraryBuilder::newLibraryWithRequestData(void*, unsigned long, MTLBuildRequestType, MTLCompileOptions const*, MTLCompilerFunctionRequest const*, unsigned int, bool, void (id<MTLLibrary>, NSError*) block_pointer) + 254
MTLLibraryBuilder::newLibraryWithSource(id<MTLDevice>, NSString*, MTLCompileOptions*, bool, void (id<MTLLibrary>, NSError*) block_pointer) + 5952
-[_MTLDevice newLibraryWithSource:options:completionHandler:] + 75
leveldb::(anonymous namespace)::EmptyIterator::value() const (in Electron Framework) (iterator.cc:60)
leveldb::Env::NewAppendableFile(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, leveldb::WritableFile**) (in Electron Framework) (env.cc:22)
base::sequence_manager::internal::SequenceManagerImpl::~SequenceManagerImpl() (in Electron Framework) (sequence_manager_impl.cc:252)
base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::CleanupLockRequired(base::internal::ThreadGroupImpl::ScopedCommandsExecutor*, base::internal::WorkerThread*) (in Electron Framework) (thread_group_impl.cc:740)
base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::CanGetWorkLockRequired(base::internal::ThreadGroupImpl::ScopedCommandsExecutor*, base::internal::WorkerThread*) (in Electron Framework) (thread_group_impl.cc:891)
base::mac::WasLaunchedAsHiddenLoginItem() (in Electron Framework) (mac_util.mm:257)
base::internal::ThreadGroupImpl::WorkerThreadDelegateImpl::GetWork(base::internal::WorkerThread*) (in Electron Framework) (thread_group_impl.cc:621)
PR_ParseTimeString(char const*, int, long long*) (in Electron Framework) (prtime.cc:1186)
PR_ParseTimeString(char const*, int, long long*) (in Electron Framework) (prtime.cc:474)
base::MachPortRendezvousServer::MachPortRendezvousServer() (in Electron Framework) (mach_port_rendezvous.cc:136)
_pthread_start + 224
thread_start + 15

https://crbug.com/1135150 looks potentially related.

Does it work in Electron 12?

@tuxianchao
Copy link

@tuxianchao tuxianchao commented Dec 19, 2020

same issue. how to fix it ?

@jiangjianping
Copy link
Author

@jiangjianping jiangjianping commented Dec 30, 2020

his problem "solved": We just ignore the "gpu-process-crashed" and "child-process-gone", the electron version is 11.x

@luckman212
Copy link

@luckman212 luckman212 commented Mar 7, 2021

@jiangjianping did you do any testing yet on Electron 12.x ?

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
8 participants