Forums - Snapshot + GPU Clocks = crash

1 post / 0 new
Snapshot + GPU Clocks = crash
milan
Join Date: 16 Apr 20
Posts: 2
Posted: Wed, 2020-05-20 07:09

Hi Qualcomm Team,

I have encountered a 100% reproducible crash (actually profiler stalls and never finishes loading DCAP capture file) when GPU Clock is selected and I click the "Take Snapshot" button.

SW/HW info:
Google Pixel 2, profiling an OpenGL app (actually app supports Vulkan backend, but profiler does not recognize it, and it fails to initalize Vulkan when started through the profiler, so it falls back to OpenGL)
Ubuntu 18.04.4 LTS
Android Debug Bridge version 1.0.41 (Version 29.0.6-6198805)

Snapshot without GPU Clock works fine.

Also, capturing other GPU metrics causes crashes, too. Let me know if you'd like more info.

Here is the profiler console output:

I: SDPCore: Metric 'Clocks' activated for PID 15254

I: SDPCore: Metric 'Clocks' deactivated for PID 15254
 
(SnapdragonProfiler:26667): Gtk-CRITICAL **: 15:57:49.565: gtk_list_store_get_column_type: assertion 'index < GTK_LIST_STORE (tree_model)->n_columns' failed
 
(SnapdragonProfiler:26667): Gtk-CRITICAL **: 15:57:49.565: IA__gtk_icon_view_set_model: assertion 'column_type == GDK_TYPE_PIXBUF' failed
I: SDPCore: Metric 'Clocks' activated for PID 18224
I: SDPCore: Metric 'OpenGL Snapshot' activated for PID 18224
I: SDPCore: Metric 'OpenGL Snapshot' deactivated for PID 18224
I: SDPCore: GLESPluginProcessor received a BUFFER_TYPE_GLES_CAPTURE_SCREENSHOT from GLESDataProvider that it doesn't know how to handle it yet
I: SDPCore: GLESPluginProcessor received a BUFFER_TYPE_GLES_FULL_DCAP from GLESDataProvider that it doesn't know how to handle it yet
I: SDPCore: GLESPluginProcessor received a BUFFER_TYPE_GLES_STRIPPED_DCAP from GLESDataProvider that it doesn't know how to handle it yet
DCAP opened correctly
DCAP opened correctly
Marshaling changed signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at (wrapper unknown) Sdp.GGPMCountable:PtrToStructure (intptr,object)
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:PtrToStructure (intptr,System.Type)
  at OpenGLPlugin.ApiAdapter.InitMetrics (System.String renderString, System.Collections.Generic.List`1[T] metrics) [0x00140] in <60ee44e99a0344f2894f90e56dae6c5b>:0 
  at OpenGLPlugin.ApiAdapter..ctor (System.String dcapFilename, System.String renderString, System.Collections.Generic.List`1[T] metrics) [0x0007e] in <60ee44e99a0344f2894f90e56dae6c5b>:0 
  at OpenGLPlugin.DataExplorerViewMgr.Invalidate () [0x00049] in <60ee44e99a0344f2894f90e56dae6c5b>:0 
  at OpenGLPlugin.DataExplorerViewMgr.dataExplorerViewEvents_SourceSelected (System.Object sender, Sdp.SourceEventArgs sourceArgs) [0x00055] in <60ee44e99a0344f2894f90e56dae6c5b>:0 
  at (wrapper delegate-invoke) System.EventHandler`1[Sdp.SourceEventArgs]:invoke_void_object_TEventArgs (object,Sdp.SourceEventArgs)
  at Sdp.EventsManager.Raise[T] (System.EventHandler`1[TEventArgs] e, System.Object sender, T args) [0x00003] in <707481fd54824fc192a5690884a4788e>:0 
  at Sdp.DataExplorerViewController.m_view_SourceSelectedChanged (System.Object sender, System.EventArgs e) [0x00057] in <707481fd54824fc192a5690884a4788e>:0 
  at Sdp.DataExplorerView.m_comboBoxSource_Changed (System.Object sender, System.EventArgs e) [0x00075] in <7f9d085604944a358a2228ba305d8d35>:0 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <8f2c484307284b51944a1a13a14c0266>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x0010d] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x0006d] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x0000c] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x0006c] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at GLib.ExceptionManager.RaiseUnhandledException (System.Exception e, System.Boolean is_terminal) [0x00000] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at GLib.SignalClosure.MarshalCallback (System.IntPtr raw_closure, System.IntPtr return_val, System.UInt32 n_param_vals, System.IntPtr param_values, System.IntPtr invocation_hint, System.IntPtr marshal_data) [0x00000] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at Gtk.ComboBox.gtk_combo_box_set_active_iter (System.IntPtr , System.IntPtr ) [0x00000] in <7a41aae9f05e45b7b5a8cedfab67f8ff>:0 
  at Gtk.ComboBox.SetActiveIter (Gtk.TreeIter iter) [0x00000] in <7a41aae9f05e45b7b5a8cedfab67f8ff>:0 
  at Sdp.DataExplorerView+<>c__DisplayClass35_0.<SetSelected>b__0 (System.Object <p0>, System.EventArgs <p1>) [0x00000] in <7f9d085604944a358a2228ba305d8d35>:0 
  at Gtk.Application+InvokeCB.Invoke () [0x00000] in <7a41aae9f05e45b7b5a8cedfab67f8ff>:0 
  at GLib.Timeout+TimeoutProxy.Handler (System.IntPtr data) [0x00000] in <5a439e0caae7469886e7119d9f6bc621>:0 
  at Gtk.Application.gtk_main () [0x00000] in <7a41aae9f05e45b7b5a8cedfab67f8ff>:0 
  at Gtk.Application.Run () [0x00000] in <7a41aae9f05e45b7b5a8cedfab67f8ff>:0 
  at Sdp.MainClass.Main (System.String[] args) [0x00000] in <7f9d085604944a358a2228ba305d8d35>:0 
BUFFER_TYPE_GLES_CAPTURE_SCREENSHOT
DCAP processed correctly
DCAP opened correctly
 
Unhandled Exception:
System.SystemException: Thread creation failed.
[ERROR] FATAL UNHANDLED EXCEPTION: System.SystemException: Thread creation failed.
DCAP processed correctly
DCAP processed correctly
 
Thanks,
Milan
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.