GPU process crashing on MacOS 11+

Having problems with building or using the JCEF Java binding? Ask your questions here.

GPU process crashing on MacOS 11+

Postby FriwiDev » Thu Feb 24, 2022 7:34 pm

Hello,

we are currently experiencing an issue where the GPU process crashes on startup with error code 1003:

Code: Select all
initialize on Thread[AWT-EventQueue-0,6,main] with library path /Users/***/Downloads/jcef-bundle
[0224/164905.934573:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164905.978308:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 1 time(s)
[0224/164906.087681:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.087765:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 2 time(s)
[0224/164906.115407:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.115515:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 3 time(s)
[0224/164906.119778:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.119854:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 4 time(s)
[0224/164906.123676:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.123764:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 5 time(s)
[0224/164906.149316:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.149507:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 6 time(s)
[0224/164906.155466:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.155572:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 7 time(s)
[0224/164906.186688:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.186813:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 8 time(s)
[0224/164906.192241:ERROR:gpu_process_host.cc(973)] GPU process launch failed: error_code=1003
[0224/164906.192385:WARNING:gpu_process_host.cc(1292)] The GPU process has crashed 9 time(s)
[0224/164906.192460:FATAL:gpu_data_manager_impl_private.cc(417)] GPU process isn't usable. Goodbye.


This is the crash log: https://gist.github.com/FriwiDev/baf513 ... 918a4bed82


All binaries (dylibs and helper .app bundles) are signed and have a correct signature when being verified. Gatekeeper is disabled on top of that. Example:

Code: Select all
codesign -dv --verbose=4 jcef\ Helper\ \(GPU\).app
Executable=/Users/***/Downloads/jcef-bundle/jcef Helper (GPU).app/Contents/MacOS/jcef Helper (GPU)
Identifier=org.jcef.jcef.helper.gpu
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20500 size=8388 flags=0x10000(runtime) hashes=253+5 location=embedded
VersionPlatform=1
VersionMin=658176
VersionSDK=721152
Hash type=sha256 size=32
CandidateCDHash sha1=efafbc009e74519cd3451b1b2b0ed9525b9c6afe
CandidateCDHashFull sha1=efafbc009e74519cd3451b1b2b0ed9525b9c6afe
CandidateCDHash sha256=8269660396a82d8ac96445c7271e28c8298fbe89
CandidateCDHashFull sha256=8269660396a82d8ac96445c7271e28c8298fbe8970eb0c9fbab494c5310fb971
Hash choices=sha1,sha256
CMSDigest=2b9077294ae07861dbb86f35fa0c8a7f20a4799ed03c6740a27a9a81e8fa7efa
CMSDigestType=2
Page size=4096
CDHash=8269660396a82d8ac96445c7271e28c8298fbe89
Signature size=9170
Authority=3rd Party Mac Developer Application: Fritz Windisch (LJMR2TQRB5)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Timestamp=Feb 24, 2022 at 3:16:33 PM
Info.plist entries=13
TeamIdentifier=LJMR2TQRB5
Runtime Version=11.1.0
Sealed Resources version=2 rules=13 files=0
Internal requirements count=1 size=204


This error occurs on the 4638 branch with jcefmaven 95.7.14.8. Sadly I have no feedback if the default app structure works on newer macs. The setup does work on older macs (I personally test with v10.9).
Related jcefmaven issue: https://github.com/jcefmaven/jcefmaven/issues/36

The used entitlements can be found here: https://github.com/jcefmaven/jcefbuild/ ... titlements
Signing process: https://github.com/jcefmaven/jcefbuild/ ... odesign.sh

We tried flags from this electron issue, to no avail: https://github.com/electron/electron/issues/32074

Any help or hints would be greatly appreciated!
Last edited by FriwiDev on Thu Feb 24, 2022 7:50 pm, edited 2 times in total.
Maintainer of jcefmaven on GitHub.
FriwiDev
Techie
 
Posts: 41
Joined: Sun Jul 09, 2017 4:18 am

Re: GPU process crashing on MacOS 11+

Postby FriwiDev » Thu Feb 24, 2022 8:15 pm

Maybe this is related to the system integrity protection, as helper apps are not notarized yet: https://developer.apple.com/documentati ... protection

System Integrity Protection (SIP) in macOS protects the entire system by preventing the execution of unauthorized code. The system automatically authorizes apps that the user downloads from the App Store. The system also authorizes apps that a developer notarizes and distributes directly to users. The system prevents the launching of all other apps by default.

During development, it may be necessary for you to disable SIP temporarily to install and test your code. You don’t need to disable SIP to run and debug apps from Xcode, but you might need to disable it to install system extensions, such as DriverKit drivers.


We are still investigating this.
Maintainer of jcefmaven on GitHub.
FriwiDev
Techie
 
Posts: 41
Joined: Sun Jul 09, 2017 4:18 am

Re: GPU process crashing on MacOS 11+

Postby FriwiDev » Mon Mar 28, 2022 5:23 am

This is now resolved, the entitlements did not grant enough permissions. The new permissions can be found on the https://github.com/jcefmaven/jcefbuild repository
Maintainer of jcefmaven on GitHub.
FriwiDev
Techie
 
Posts: 41
Joined: Sun Jul 09, 2017 4:18 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 13 guests