The Scrubber is not rendering my captured frame and will sometimes crash.
When I open a Scrubber GL tab I get the following on the console:
Entering InitEGL() ..hInst: 0x2c06600, m_es30HInst: 0x2c09f70, m_es20HInst: (nil)
WARNING: Trying to load libGLESv2.so more than once.
Entering InitEGL() ..hInst: 0x2c06600, m_es30HInst: 0x2c09f70, m_es20HInst: (nil)
ERROR: Version string is NULL..
WARNING: OpenGL 4.3 not supported. Disabling extensions requiring OpenGL 4.3.
ERROR: Version string is NULL..
WARNING: OpenGL 4.3 not supported. Disabling extensions requiring OpenGL 4.3.
After a trace, if it does not crash, I will have a list of draw calls but a totally black preview window.
If it does crash it will display the list of draw calls for less than a second and the whole window will close leaving the following backtrace in the console:
System.NullReferenceException: Object reference not set to an instance of an object
at QXProfiler.Tokens.TokenGL2APIBindFramebuffer.ExecuteGLES20 () [0x00000] in <filename unknown>:0
at QXProfilerControls.ScrubberViewES20.PrivateRender (IContainerDataPlaybackGLES20 skipToken) [0x00000] in <filename unknown>:0
at QXProfilerControls.ScrubberViewES20.ScrubberViewES20_Paint (System.Object o, System.Windows.Forms.PaintEventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.OnPaint (System.Windows.Forms.PaintEventArgs e) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.UserControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0
Whether or not it will crash seems to be dependent on what I was trying to capture.
My system is running Ubuntu 14.04.1 LTS with:
GL_VENDOR = NVIDIA Corporation
GL_RENDERER = GeForce GT 610/PCIe/SSE2
GL_VERSION = 4.4.0 NVIDIA 331.113
GL_SHADING_LANGUAGE_VERSION = 4.40 NVIDIA via Cg compiler
This might be an issue that we've addressed in a forthcoming build (our hunch is that it's related to a texture format). Is it possible to get the app so we could check it?
thanks...
Hello there,
The same exact problem happens here (the same crash and output), except that I've noticed it doesn't happen when my cursor isn't on the profiler window. I can capture a frame perfectly, but as soon as I hover over one of the list items, it crashes with the same message up there.
Here's my setup:
Adreno Profiler 4.0.5511.694, Ubuntu 14.04 LTS, AMD Radeon HD 5800, OpenGL: 4.3.12798, GLSL: 4.30.
Can I please get some help? :) What extra info can I give you?
I forgot to mention, my kernel is 3.13.0-24-generic, and it's a 64 bit operating system. Here's the output of `LD_LIBRARY_PATH=. ldd ./libEGL.so` in the profiler bin dir:
$ LD_LIBRARY_PATH=. ldd libEGL.so
linux-vdso.so.1 => (0x00007ffffabfe000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fef14a36000)
libGL.so.1 => /usr/lib/fglrx/libGL.so.1 (0x00007fef14854000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fef1454f000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fef14339000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fef13f73000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fef13d53000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fef13b4f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fef13931000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fef1371e000)
libatiuki.so.1 => /usr/lib/fglrx/libatiuki.so.1 (0x00007fef13601000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fef132fb000)
/lib64/ld-linux-x86-64.so.2 (0x00007fef14fa7000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fef130f6000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fef12ef0000)
and
$ ldd libGLESv2.so
linux-vdso.so.1 => (0x00007fff83aef000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbf0fef9000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbf0fce3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbf0f91c000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbf0f616000)
/lib64/ld-linux-x86-64.so.2 (0x00007fbf104cf000)
Also, this could be helpful:
$ file libEGL.so
libEGL.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=da58ddc659518ea391ab4a44d7e8985e654cae82, not stripped
$ file libGLESv2.so
libGLESv2.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=073a2f25edebc51760053f22e9691a433fbf1cad, not stripped
Thanks for providing the details on the OS. Can you confirm that the crash happens with other apps as well (maybe try a sample app from the SDK). Also have you tried capturing with the profiler running on Windows with the same apk?
Hello,
Thank you for the quick response!
The crash does indeed happen with samples from the SDK (I've tried a few). For reference, here's what happens when I run Bloom:
$ ./Run_Samples.sh Bloom
ARCH is x64
Entering InitEGL() ..hInst: 0x8145848, m_es30HInst: 0xf7781918, m_es20HInst: (nil)
WARNING: Trying to load libGLESv2.so more than once.
Entering InitEGL() ..hInst: 0x8145848, m_es30HInst: 0xf7781918, m_es20HInst: (nil)
ERROR: Version string is NULL..
WARNING: OpenGL 4.4 not supported. Disabling extensions requiring OpenGL 4.4.
WARNING: OpenGL 4.3 not supported. Disabling extensions requiring OpenGL 4.3.
ERROR: CFrmFontGLES::Create( const CHAR* strFontFileName ) failed. - if( NULL == m_pTexture )Error Bloom: Application failed during scene initialization!
The same happens when I simply do $ LD_LIBRARY_PATH=. ./Bloom
Yes, we have run the profiler here on Windows, on the same device and same APK, and it works well.
Please let me know if there's any other information I can supply. Thank you!
just to update that we are investigating but don't have a solution yet. Hopefully using the Windows version might suffice until we can provide a fix.
Ok, great. Have you managed to reproduce the bug? Either way, we can continue to assist here in any way you see fit (inc. investigating certain use cases, and if needed, involve inspection of IL code or assembly), as it'd be extremely useful for us to get this to work on our Linux machines.