AGDE error LLDB command failed

I’m trying to use AGDE to debug my android game, but when launching on my device I get the error:

LLDB command failed: command script import “C:\UE_5.3\Engine\Extras\LLDBDataFormatters\UEDataFormatters_2ByteChars.py”

There’s no “LLDBDataFormatters” folder under “C:\UE_5.3\Engine\Extras”

The full log:

I0827 17:34:00.245 VsPackage.cs:107] ---------- AGDE STARTED ----------
I0827 17:34:00.246 VsPackage.cs:108] Android Game Development Extension version: 23.1.82
I0827 17:34:00.247 VsPackage.cs:109] Visual Studio version: 17.7.2
I0827 22:18:46.042 VsPackage.cs:107] ---------- AGDE STARTED ----------
I0827 22:18:46.042 VsPackage.cs:108] Android Game Development Extension version: 23.1.82
I0827 22:18:46.044 VsPackage.cs:109] Visual Studio version: 17.7.2
I0827 22:38:03.476 VsPackage.cs:107] ---------- AGDE STARTED ----------
I0827 22:38:03.476 VsPackage.cs:108] Android Game Development Extension version: 23.1.82
I0827 22:38:03.477 VsPackage.cs:109] Visual Studio version: 17.7.2
I0827 22:48:34.984 PeriodicFileDownloader.cs:69] Checking for update
I0827 22:48:34.986 PeriodicFileDownloader.cs:69] Checking for update
E0827 22:48:35.519 DeployServiceProcess.cs:95] java.io.EOFException
E0827 22:48:35.519 DeployServiceProcess.cs:95] 	at java.base/java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2915)
E0827 22:48:35.519 DeployServiceProcess.cs:95] 	at java.base/java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:3410)
E0827 22:48:35.519 DeployServiceProcess.cs:95] 	at java.base/java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:954)
E0827 22:48:35.519 DeployServiceProcess.cs:95] 	at java.base/java.io.ObjectInputStream.<init>(ObjectInputStream.java:392)
E0827 22:48:35.519 DeployServiceProcess.cs:95] 	at com.android.tools.deployer.DeploymentCacheDatabase.<init>(DeploymentCacheDatabase.java:93)
E0827 22:48:35.519 DeployServiceProcess.cs:95] 	at com.android.tools.deployer.DeploymentCacheDatabase.<init>(DeploymentCacheDatabase.java:82)
E0827 22:48:35.520 DeployServiceProcess.cs:95] 	at com.android.tools.deployer.DeployerRunner.<init>(DeployerRunner.java:102)
E0827 22:48:35.520 DeployServiceProcess.cs:95] 	at com.android.tools.deployer.DeployerRunner.<init>(DeployerRunner.java:93)
E0827 22:48:35.520 DeployServiceProcess.cs:95] 	at com.android.deploy.service.DeployServer.<init>(DeployServer.java:60)
E0827 22:48:35.520 DeployServiceProcess.cs:95] 	at com.android.deploy.service.DeployServiceMain.main(DeployServiceMain.java:43)
I0827 22:49:35.343 PeriodicFileDownloader.cs:69] Checking for update
W0827 22:49:53.882 DebugTargetEnumValuesProvider.cs:163] Connection to device lost: None, auto-selecting new device: M2012K11AG:919a235:arm64-v8a
I0827 22:50:35.643 PeriodicFileDownloader.cs:69] Checking for update
I0827 22:50:56.755 GoogleAndroidDebuggerLaunchProvider.cs:109] Launching process
I0827 22:50:56.846 GoogleAndroidDebuggerLaunchProvider.cs:154] Using APK at C:\Users\k23j\Documents\Unreal Projects\NZH\Binaries\Android\NZH-Android-DebugGame-arm64.apk.
I0827 22:50:57.411 GoogleAndroidDebuggerLaunchProvider.cs:233] Launching automatically detected app component 'com.k.NovoZeroHora/com.epicgames.unreal.GameActivity' from APK at C:\Users\k23j\Documents\Unreal Projects\NZH\Binaries\Android\NZH-Android-DebugGame-arm64.apk ...
I0827 22:51:10.432 DebugEngine.cs:79] Creating DebugEngine
I0827 22:51:10.436 NatvisLoader.cs:99] Loading Natvis files found in the project...
I0827 22:51:10.458 NatvisLoader.cs:163] Loading Natvis file C:\UE_5.3\Engine\Extras\VisualStudioDebugging\Unreal.natvis
W0827 22:51:10.541 NatvisValidator.cs:139] The <ArrayItems>/<Rank> tag is not supported. It was found 1 time(s).
W0827 22:51:10.542 NatvisValidator.cs:139] The 'Priority' attribute is not supported on the <Type> tag. It was found 5 time(s).
W0827 22:51:10.542 NatvisValidator.cs:139] The 'Inheritable' attribute is not supported on the <Type> tag. It was found 2 time(s).
W0827 22:51:10.542 NatvisValidator.cs:139] The <Intrinsic> tag is not supported. It was found 3 time(s).
I0827 22:51:10.542 NatvisLoader.cs:178] Loaded Natvis file C:\UE_5.3\Engine\Extras\VisualStudioDebugging\Unreal.natvis in 00:00:00.0836067.
I0827 22:51:10.542 NatvisLoader.cs:107] Loaded project Natvis files in 00:00:00.1059100.
I0827 22:51:10.545 NatvisLoader.cs:277] Loading Natvis files found in C:\Users\k23j\Documents\Visual Studio 2022\Visualizers...
E0827 22:51:10.545 NatvisLoader.cs:292] Failed to load Natvis files from C:\Users\k23j\Documents\Visual Studio 2022\Visualizers. Reason: Could not find a part of the path 'C:\Users\k23j\Documents\Visual Studio 2022\Visualizers'..
I0827 22:51:10.546 NatvisLoader.cs:277] Loading Natvis files found in C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers...
I0827 22:51:10.546 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\atlmfc.natvis
I0827 22:51:10.549 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\atlmfc.natvis in 00:00:00.0029301.
I0827 22:51:10.549 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\concurrency.natvis
W0827 22:51:10.551 NatvisValidator.cs:139] The 'Expression' attribute is not supported on the <Synthetic> tag. It was found 1 time(s).
W0827 22:51:10.551 NatvisValidator.cs:139] The <ArrayItems>/<Rank> tag is not supported. It was found 2 time(s).
I0827 22:51:10.551 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\concurrency.natvis in 00:00:00.0015917.
I0827 22:51:10.551 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\cpp_rest.natvis
I0827 22:51:10.552 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\cpp_rest.natvis in 00:00:00.0004000.
I0827 22:51:10.552 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\ObjectiveC.natvis
W0827 22:51:10.554 NatvisValidator.cs:139] The <Type>/<Version> tag is not supported. It was found 1 time(s).
W0827 22:51:10.554 NatvisValidator.cs:139] The <Version> tag is not supported. It was found 1 time(s).
I0827 22:51:10.554 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\ObjectiveC.natvis in 00:00:00.0014138.
I0827 22:51:10.554 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\stl.natvis
W0827 22:51:10.559 NatvisValidator.cs:139] The <CustomVisualizer> tag is not supported. It was found 1 time(s).
W0827 22:51:10.559 NatvisValidator.cs:139] The 'Name' attribute is not supported on the <LinkedListItems>/<ValueNode> tag. It was found 1 time(s).
W0827 22:51:10.559 NatvisValidator.cs:139] The 'Priority' attribute is not supported on the <Type> tag. It was found 13 time(s).
W0827 22:51:10.559 NatvisValidator.cs:139] The <Intrinsic> tag is not supported. It was found 55 time(s).
I0827 22:51:10.559 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\stl.natvis in 00:00:00.0053193.
I0827 22:51:10.559 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\Windows.Data.Json.natvis
W0827 22:51:10.560 NatvisValidator.cs:139] The <Version> tag is not supported. It was found 1 time(s).
I0827 22:51:10.560 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\Windows.Data.Json.natvis in 00:00:00.0005568.
I0827 22:51:10.560 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.devices.geolocation.natvis
W0827 22:51:10.562 NatvisValidator.cs:139] The <LocalizedStrings> tag is not supported. It was found 1 time(s).
I0827 22:51:10.562 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.devices.geolocation.natvis in 00:00:00.0014265.
I0827 22:51:10.562 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.devices.sensors.natvis
W0827 22:51:10.563 NatvisValidator.cs:139] The <LocalizedStrings> tag is not supported. It was found 1 time(s).
I0827 22:51:10.563 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.devices.sensors.natvis in 00:00:00.0008618.
I0827 22:51:10.563 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.media.natvis
W0827 22:51:10.564 NatvisValidator.cs:139] The <Type>/<Version> tag is not supported. It was found 9 time(s).
W0827 22:51:10.564 NatvisValidator.cs:139] The <Version> tag is not supported. It was found 9 time(s).
I0827 22:51:10.564 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.media.natvis in 00:00:00.0010458.
I0827 22:51:10.565 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.natvis
W0827 22:51:10.567 NatvisValidator.cs:139] The <ArrayItems>/<Direction> tag is not supported. It was found 1 time(s).
W0827 22:51:10.567 NatvisValidator.cs:139] The <ArrayItems>/<Rank> tag is not supported. It was found 1 time(s).
W0827 22:51:10.567 NatvisValidator.cs:139] The <ArrayItems>/<LowerBound> tag is not supported. It was found 1 time(s).
W0827 22:51:10.568 NatvisValidator.cs:139] The <HResult> tag is not supported. It was found 203 time(s).
I0827 22:51:10.568 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\windows.natvis in 00:00:00.0030366.
I0827 22:51:10.568 NatvisLoader.cs:163] Loading Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\winrt.natvis
W0827 22:51:10.570 NatvisValidator.cs:139] The <CustomVisualizer> tag is not supported. It was found 1 time(s).
W0827 22:51:10.570 NatvisValidator.cs:139] The <Type>/<Version> tag is not supported. It was found 97 time(s).
W0827 22:51:10.570 NatvisValidator.cs:139] The 'Inheritable' attribute is not supported on the <Type> tag. It was found 1 time(s).
W0827 22:51:10.570 NatvisValidator.cs:139] The <Version> tag is not supported. It was found 97 time(s).
I0827 22:51:10.570 NatvisLoader.cs:178] Loaded Natvis file C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers\winrt.natvis in 00:00:00.0023267.
I0827 22:51:10.572 NatvisLoader.cs:288] Loaded Natvis files from C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\Packages\Debugger\Visualizers in 00:00:00.0261559.
I0827 22:51:10.574 DebugEngine.cs:517] Launching process
I0827 22:51:10.685 DebugEngine.cs:535] Resuming process
I0827 22:51:11.397 LldbServerHelper.cs:53] Starting lldb-server using command:
run-as com.k.NovoZeroHora /data/data/com.k.NovoZeroHora/lldb/bin/start_lldb_server.sh /data/data/com.k.NovoZeroHora/lldb unix-abstract /com.k.NovoZeroHora-0 platform-169318745674.sock "lldb process:gdb-remote packets" > /dev/null 2> /dev/null &
I0827 22:51:11.425 LogInjectorHelper.cs:62] Copying log injector to target device
I0827 22:51:11.518 LogInjectorHelper.cs:104] Starting log injector using command:
/data/data/com.k.NovoZeroHora/lldb/bin/log_injector.sh Tracepoint d
I0827 22:51:11.524 ProcessManager.cs:28] Starting process: c:\program files\microsoft visual studio\2022\community\common7\ide\extensions\adiehfw2.s0x\DebuggerGrpcServer.exe -i 20716,10796,16220,13620 -o 23324,12632,2500,14568
I0827 22:51:18.637 DebugSessionLauncher.cs:60] Connecting to debugger
I0827 22:51:18.667 DebugSessionLauncher.cs:77] Running built-in LLDB startup commands
I0827 22:51:18.667 DebugSessionLauncher.cs:333] Executing LLDB command: settings set auto-confirm true
I0827 22:51:18.684 DebugSessionLauncher.cs:333] Executing LLDB command: settings set plugin.jit-loader.gdb.enable off
I0827 22:51:18.685 DebugSessionLauncher.cs:333] Executing LLDB command: type summary add -s "${var%s}" "signed char *"
I0827 22:51:18.685 DebugSessionLauncher.cs:333] Executing LLDB command: settings set use-source-cache false
I0827 22:51:18.778 DebugSessionLauncher.cs:107] Running LLDB startup commands
I0827 22:51:18.778 DebugSessionLauncher.cs:333] Executing LLDB command: command script import "C:\UE_5.3\Engine\Extras\LLDBDataFormatters\UEDataFormatters_2ByteChars.py"
E0827 22:51:19.067 DebugSessionLauncher.cs:341] LLDB command failed. Command: command script import "C:\UE_5.3\Engine\Extras\LLDBDataFormatters\UEDataFormatters_2ByteChars.py"
E0827 22:51:19.072 DebugSessionLauncher.cs:348] LLDB command standard error:
error: module importing failed: invalid pathname 'C:\UE_5.3\Engine\Extras\LLDBDataFormatters\UEDataFormatters_2ByteChars.py'
E0827 22:51:19.088 DebugEngine.cs:359] Attach failed: Google.VisualStudio.Android.Debugger.DebugEngine+AttachException: LLDB command failed: command script import "C:\UE_5.3\Engine\Extras\LLDBDataFormatters\UEDataFormatters_2ByteChars.py"
   at Google.VisualStudio.Android.Debugger.DebugSessionLauncher.ExecuteLldbCommand(SbCommandInterpreter commandInterpreter, String command)
   at Google.VisualStudio.Android.Debugger.DebugSessionLauncher.ExecuteLldbCommands(SbCommandInterpreter commandInterpreter, String[] commands)
   at Google.VisualStudio.Android.Debugger.DebugSessionLauncher.<LaunchAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.DebugEngine.<>c__DisplayClass25_0.<<Attach>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.CancelableTask.WithResult`1.<>c__DisplayClass5_0.<<-ctor>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.CancelableTask.<>c__DisplayClass19_0.<<JoinWithProgressDialog>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.Join(CancellationToken cancellationToken)
   at Google.VisualStudio.Android.Debugger.CancelableTask.JoinWithProgressDialog(JoinableTask joinableTask)
   at Google.VisualStudio.Android.Debugger.CancelableTask.Run()
   at Google.VisualStudio.Android.Debugger.DebugEngine.Attach(IDebugProgram2[] programs, IDebugProgramNode2[] programNodes, UInt32 numPrograms, IDebugEventCallback2 eventCallback, enum_ATTACH_REASON reason)
E0827 22:51:19.089 DebugEngine.cs:693] Exited with exception: Google.VisualStudio.Android.Debugger.DebugEngine+AttachException: LLDB command failed: command script import "C:\UE_5.3\Engine\Extras\LLDBDataFormatters\UEDataFormatters_2ByteChars.py"
   at Google.VisualStudio.Android.Debugger.DebugSessionLauncher.ExecuteLldbCommand(SbCommandInterpreter commandInterpreter, String command)
   at Google.VisualStudio.Android.Debugger.DebugSessionLauncher.ExecuteLldbCommands(SbCommandInterpreter commandInterpreter, String[] commands)
   at Google.VisualStudio.Android.Debugger.DebugSessionLauncher.<LaunchAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.DebugEngine.<>c__DisplayClass25_0.<<Attach>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.CancelableTask.WithResult`1.<>c__DisplayClass5_0.<<-ctor>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.ThreadingTools.<WithCancellationSlow>d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Google.VisualStudio.Android.Debugger.CancelableTask.<>c__DisplayClass19_0.<<JoinWithProgressDialog>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Threading.JoinableTask.Join(CancellationToken cancellationToken)
   at Google.VisualStudio.Android.Debugger.CancelableTask.JoinWithProgressDialog(JoinableTask joinableTask)
   at Google.VisualStudio.Android.Debugger.CancelableTask.Run()
   at Google.VisualStudio.Android.Debugger.DebugEngine.Attach(IDebugProgram2[] programs, IDebugProgramNode2[] programNodes, UInt32 numPrograms, IDebugEventCallback2 eventCallback, enum_ATTACH_REASON reason)

1 Like

I edited the .vcxproj.user

Deleting the line

<AndroidLldbStartupCommands>command script import "C:\UE_5.3\Engine\Extras\LLDBDataFormatters\UEDataFormatters_2ByteChars.py";$(AndroidLldbStartupCommands)

And now the AGDE launches normally, don’t know if the UEDataFormatters_2ByteChars.py is obsolete, or I’m losing something by deleting that line, but at least its working.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.