Hi!
I am attempting to profile the Godot TPS demo using Godot Engine 3.5 and the GLES 3 rendering backend. I made sure to enable external storage read/write in Godot's config and also ensured that the app is debuggable. My phone is an unrooted LG G8s which has Adreno 640 graphics.
Exact steps to reproduce:
- Open the demo project with Godot 3.5
- Configure the Editor to allow Android export (set up adb location, signinger, etc.)
- Run the app from the Godot Editor to make sure a sebuggable version is installed on the device.
- Quit the app, close the godot editor and open Snapdragon Profiler
- Connect to device and start the app again.
- Take a frame capture of the main menu.
- Wait for the Snapdragon profiler to process the data
- Click on any of the draw calls. Snapdragon profiler crashes to dekstop.
Looking at the Windows Event Viewer I have the foloowing two reports.
.NET Runtime:
Application: SnapdragonProfiler.exeFramework Version: v4.0.30319Description: The process was terminated due to an unhandled exception.Exception Info: System.AccessViolationExceptionat System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr, System.Object, Int32, Int32)at OpenGLPlugin.VertexDataAdapter+VertexDataGLAdapter.ProcessDrawElementsExtractData(UInt32, Int32, UInt32, PointerData, Byte[] ByRef, UInt32 ByRef, UInt32 ByRef)at OpenGLPlugin.VertexDataAdapter+VertexDataGLAdapter.Process_glDrawElements(UInt32, Int32, UInt32, PointerData)at GLAdapter.SwigDirectorProcess_glDrawElements(UInt32, Int32, UInt32, IntPtr)at libDCAPPINVOKE.CaptureFileReader_ProcessNextBlock(System.Runtime.InteropServices.HandleRef)at OpenGLPlugin.VertexDataAdapter..ctor(System.String, Int32)at OpenGLPlugin.VertexDataViewMgr+ProcessVertexDataClass.ProcessVertexData()at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)at System.Threading.ThreadHelper.ThreadStart()
Faulting application name: SnapdragonProfiler.exe, version: 1.0.8368.4043, time stamp: 0x6385db97Faulting module name: VCRUNTIME140_CLR0400.dll, version: 14.10.25028.0, time stamp: 0x5bac17e5Exception code: 0xc0000005Fault offset: 0x0000d687Faulting process id: 0x2b48Faulting application start time: 0x01d94ce01c0a9f0eFaulting application path: D:\Programs\Snapdragon Profiler\SnapdragonProfiler.exeFaulting module path: C:\Windows\SYSTEM32\VCRUNTIME140_CLR0400.dllReport Id: 9322fb6b-0470-46a2-9e21-eccebef7d650Faulting package full name:Faulting package-relative application ID: