Hello!
I’m working on achieving hardware accelerated graphics for our Electron front-end on the Verdin iMX8MP, for smoother animations and transitions for the GUI. So far I’ve structured the project after the VS Code Torizon Electron Template, and our Electron application simply creates a BrowserWindow accessing https://browserbench.org to be able to ascertain whether the applied changes have created better performance, as the UI itself is still in development. Unfortunately, the BrowserWindow crashes, whether actually running tests or not, with the --use-gl=egl option applied. It does however crash after some time has passed, leaving me enough time to start a benchmark test, and the difference is quite noticeable - until the crash of course.
First of, the output of tdx-info
:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 5.15.148-6.6.1+git.23a8e831749d #1-TorizonCore SMP PREEMPT Thu Feb 29 20:25:21 UTC 2024
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/911edfe9ee0d80deff5013f22805689ff18f1977e087a7824078275dbf5cdc51/0
Distro name: NAME="TorizonCore"
Distro version: VERSION_ID=6.6.1-build.14
Distro variant: VARIANT="Docker"
Hostname: verdin-imx8mp-15128291
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8MP WB on Verdin Development Board
Toradex version: 0064 V1.1A
Serial number: 15128291
Processor arch: aarch64
------------------------------------------------------------
Secondly, the logs provided by the Electron container:
[207:0618/104304.868905:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[207:0618/104304.870406:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[207:0618/104304.871896:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[207:0618/104304.872943:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Warning: vkCreateInstance: Found no drivers!
Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:101)
at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:493)
at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:379)
at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:301)
at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:556)
Segmentation fault (core dumped)
The Dockerfile build instructions are the same, as the ones provided in the VS Code Torizon Electron Template. As such, the application is also launched with the same commandline options (--no-sandbox --ozone-platform=wayland --use-gl=egl --in-process-gpu
). Any help would be much appreciated, as front-end processes really aren’t my field of expertise, thanks!
Best regards,
Sophus