google / agi

Android GPU Inspector
https://gpuinspector.dev
Apache License 2.0
953 stars 140 forks source link

Unhandled VkStructureType VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT #1155

Open GainLee opened 2 years ago

GainLee commented 2 years ago

Environment information:

Bug description The application encountered an error when opening a frame trace

Reproduction steps Steps to reproduce the behavior: Capture frame trace with "start at beginning" and open it

Stacktrace org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.reflect.UndeclaredThrowableException) at org.eclipse.swt.SWT.error(SWT.java:4893) at org.eclipse.swt.SWT.error(SWT.java:4808) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:188) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4262) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3885) at org.eclipse.jface.window.Window.runEventLoop(Window.java:823) at org.eclipse.jface.window.Window.open(Window.java:799) at com.google.gapid.Main$UI.show(Main.java:140) at com.google.gapid.Main.main(Main.java:80) Caused by: java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy9.onCommandsLoaded(Unknown Source) at com.google.gapid.models.CommandStream.fireLoadedEvent(CommandStream.java:181) at com.google.gapid.models.ModelBase.updateError(ModelBase.java:120) at com.google.gapid.models.ModelBase$1.onUiThreadError(ModelBase.java:85) at com.google.gapid.rpc.UiErrorCallback.onUiThread(UiErrorCallback.java:36) at com.google.gapid.rpc.UiErrorCallback.onUiThread(UiErrorCallback.java:25) at com.google.gapid.rpc.UiCallback.lambda$onFinish$0(UiCallback.java:46) at com.google.gapid.widgets.Widgets.ifNotDisposed(Widgets.java:141) at com.google.gapid.widgets.Widgets.lambda$scheduleIfNotDisposed$1(Widgets.java:169) at com.google.gapid.widgets.Widgets.lambda$schedule$0(Widgets.java:161) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) ... 6 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.google.gapid.util.Events$ListenerCollectionImpl.invoke(Events.java:167) ... 18 more Caused by: java.lang.NullPointerException at com.google.gapid.views.CommandTree$TreeState.expandChildren(CommandTree.java:1362) at com.google.gapid.views.CommandTree$TreeState.reset(CommandTree.java:1294) at com.google.gapid.views.CommandTree.onCommandsLoaded(CommandTree.java:542) ... 23 more

Screenshots

image

Additional debugging information

ttanatb commented 2 years ago

Thanks for reporting this -- quick questions:

It looks like we're missing the definition for VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT and VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT in the enums.api file

GainLee commented 2 years ago
  • VkDebugUtilsMessengerCreateInfoEXT

Yeah, I used VkDebugUtilsMessengerCreateInfoEXT.

I think this occurs not only when capturing with "start at beginning", but I'll also confirm that later.

GainLee commented 2 years ago

Thanks for reporting this -- quick questions:

  • Does this only occur when capturing with "start at beginning" or does it also happen when capturing from the middle of the game?
  • Does your game use the VkDebugUtilsMessengerCreateInfoEXT struct?

It looks like we're missing the definition for VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT and VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CALLBACK_DATA_EXT in the enums.api file

I have confirmed that it occurs only when capturing with "start at beginning" and I used VkDebugUtilsMessengerCreateInfoEXT.