Hello,
I'm trying to run specific version of Debian on iMX8MM board.
It was almost full success untils I tried to run Qt application with QML GPU support.
After some tries I ended with imx-gpu-viv version 6.4.11.p2.2.2 which is the most stable (test QML application runs on GPU without fail). Unfortunately target QML application crashes:
Thread 1 "app" received signal SIGSEGV, Segmentation fault.
__memcpy_generic () at ../sysdeps/aarch64/multiarch/../memcpy.S:131
131 ../sysdeps/aarch64/multiarch/../memcpy.S: No such file or directory.
(gdb) bt
#0 __memcpy_generic () at ../sysdeps/aarch64/multiarch/../memcpy.S:131
#1 0x0000ffffeaee11ac in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGAL.so
#2 0x0000ffffeaee2ce4 in gcoSTREAM_DynamicCacheAttributesEx () from /usr/lib/aarch64-linux-gnu/vivante/libGAL.so
#3 0x0000ffffeaee2fdc in gcoSTREAM_CacheAttributesEx () from /usr/lib/aarch64-linux-gnu/vivante/libGAL.so
#4 0x0000ffffeaee0884 in gcoVERTEXARRAY_StreamBind () from /usr/lib/aarch64-linux-gnu/vivante/libGAL.so
#5 0x0000ffffed09cfb8 in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so.1
#6 0x0000ffffecf6aad0 in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so.1
#7 0x0000fffff6907168 in ?? () from /lib/aarch64-linux-gnu/libQt5Gui.so.5
#8 0x0000fffff68901c4 in ?? () from /lib/aarch64-linux-gnu/libQt5Gui.so.5
#9 0x0000fffff6890b0c in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) () from /lib/aarch64-linux-gnu/libQt5Gui.so.5
#10 0x0000fffff6c99b18 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#11 0x0000fffff6c9b350 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#12 0x0000fffff6c9d394 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#13 0x0000fffff6c9dbc4 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#14 0x0000fffff6cee690 in ?? () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#15 0x0000fffff6c8c0a0 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/libQt5Widgets.so.5
#16 0x0000aaaaaace2f38 in Application::notify(QObject*, QEvent*) ()
#17 0x0000fffff561cd40 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#18 0x0000fffff6598800 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /lib/aarch64-linux-gnu/libQt5Gui.so.5
#19 0x0000fffff656db44 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/aarch64-linux-gnu/libQt5Gui.so.5
#20 0x0000ffffe73eba14 in ?? () from /lib/aarch64-linux-gnu/libQt5WaylandClient.so.5
#21 0x0000ffffec45774c in g_main_context_dispatch () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#22 0x0000ffffec4579e0 in ?? () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#23 0x0000ffffec457a84 in g_main_context_iteration () from /lib/aarch64-linux-gnu/libglib-2.0.so.0
#24 0x0000fffff567eaa8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#25 0x0000fffff561b258 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#26 0x0000fffff56242dc in QCoreApplication::exec() () from /lib/aarch64-linux-gnu/libQt5Core.so.5
#27 0x0000aaaaaac70b0c in main ()
In addition test 3d app also crashes:
Starting program: /usr/bin/glmark2-wayland --fullscreen
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0xffffedad2160 (LWP 1032)]
[New Thread 0xffffed299160 (LWP 1033)]
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Vivante Corporation
GL_RENDERER: Vivante GC7000NanoUltra
GL_VERSION: 4.0 V6.4.11.p2.745085
Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
Surface Size: 800x480 fullscreen
=======================================================
[build] use-vbo=false:
Thread 1 "glmark2-wayland" received signal SIGSEGV, Segmentation fault.
0x0000fffff5e5db00 in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so
(gdb) bt
#0 0x0000fffff5e5db00 in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so
#1 0x0000fffff5e5e128 in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so
#2 0x0000fffff5e08538 in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so
#3 0x0000fffff5e09118 in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so
#4 0x0000fffff5ccaabc in ?? () from /usr/lib/aarch64-linux-gnu/vivante/libGL.so
#5 0x0000aaaaaab37c4c in ?? ()
#6 0x0000aaaaaaacdf00 in ?? ()
#7 0x0000aaaaaaabff9c in ?? ()
#8 0x0000aaaaaaac05f8 in ?? ()
#9 0x0000aaaaaaab2400 in ?? ()
#10 0x0000aaaaaaaafd8c in ?? ()
#11 0x0000fffff79c7780 in __libc_start_call_main (main=main@entry=0xaaaaaaaaf680, argc=argc@entry=2, argv=argv@entry=0xfffffffff9b8) at ../sysdeps/nptl/libc_start_call_main.h:58
#12 0x0000fffff79c7858 in __libc_start_main_impl (main=0xaaaaaaaaf680, argc=2, argv=0xfffffffff9b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=<optimized out>) at ../csu/libc-start.c:381
#13 0x0000aaaaaaab21b0 in ?? ()
Is there newer version of imx-gpu-viv for 6.1 kernel, which will run on max GLIBC_2.36 ?
In advance: I can't use BSP distribution (it is client's requirement)
System info:
kernel: 6.1.36
galcore: 6.4.11.p2.684571
weston: 10.0.1
qt: 5.15.8
According to the latest release note, the latest version is imx-gpu-viv-6.4.11.p2.6.
https://www.nxp.com/docs/en/release-note/IMX_LINUX_RELEASE_NOTES.pdf
Here is the git.
imx-gpu-viv-core_6.4.11.p2.6 needs GLIBC_2.38 - as I wrote previously I can't use it!
Is it possible to recompile this library with max GLIBC_2.36 ?
Hello,
You mentions that gpu version used is 6.4.11.p2.684571 but glmark2 reports that 6.4.11.p2.745085 is used. Please make sure that GPU kernel version and GPU user lib version are aligned.
It seems that the Qt application and glmark2 have been linked with libGL library, can you please try to use libGLESv2 instead and see if the error is reproduced?
Could you reproduce the Qt crash on a sample Qt application? (I suppose you see the crash on your application that can not be shared) However, I may be not able to reproduce error from the Qt app, because you uses Qt5, whereas Qt6 is used in L6.1.36 official BSP.