Sysprogs forums › Forums › VisualGDB › Crash on Starting Debugging Raspberry
- This topic has 6 replies, 2 voices, and was last updated 5 years, 10 months ago by support.
-
AuthorPosts
-
February 22, 2019 at 16:41 #23934hfParticipant
Hi,
i wanted to test the tutorial with the cross-compiling and debugging a raspberry programm
Setup the GDB Process with SSH works.
But starting the Debug-Session with VIsual Studio ends in an exception:
VisualGDB version: 5.4.100.2753
—————— System.NullReferenceException ——————
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei re..ctor(GDBSessionLaunchOptions b, ih a)
bei ih..ctor(GDBSessionLaunchOptions a)
bei t21.a_2()
bei VisualGDB.GDBDebugEngine.b(lp1 a)
bei VisualGDB.GDBDebugEngine.Attach(IDebugProgram2[] b, IDebugProgramNode2[] a, UInt32 d, IDebugEventCallback2 c, enum_ATTACH_REASON e)Any ideas?
February 22, 2019 at 18:30 #23938supportKeymasterHi,
It looks like the floating license data has not been loaded properly. Please try restarting Visual Studio and check the Help->About VisualGDB window again.
Please also ensure that your antivirus is not blocking SessionServer.exe – the process responsible for sharing the floating session keys between multiple VisualGDB instances on the same machine. We had a similar issue reported by another user and it turned out their antivirus was silently preventing VisualGDB from reading the shared memory block from SessionServer, so it didn’t trigger any error immediately, but the loaded keys were zeroed, causing a NullReferenceException.
February 22, 2019 at 22:22 #23940hfParticipantHi,
sorry this didn’t help. We use dedicated VM with no AV.
The Help-About screen shows our 4 floating licences.
Could it be the version of VS? I tried it with VS2015 and VS2017.
We had a similar problem with the ESP32 toolchain some time ago. On a different machine it worked.
February 23, 2019 at 06:25 #23951supportKeymasterSorry for the inconvenience. The error is not related to the VS version and happens when the session key downloaded from the VisualGDB server is not valid. It is hard to say what could be interfering with the key loading mechanism without knowing the specifics of your setup, so the best way to diagnose this would be to compare this machine with another one where VisualGDB works and try eliminating the differences one-by-one.
February 23, 2019 at 14:25 #23952hfParticipanti got a temporaly success!
I removed our floating licence and used the trial version.
Now it works.
But currently i have no clue, where the SessionServer gets blocked!
The Content filter of the firewall is deactivated and windows firewall is also open. I also see no blocking inside the firewall.
On which ports is the SessionServer communicating?
best regards holger
February 23, 2019 at 21:13 #23953hfParticipanti checked everything.
allowed the firewall.
Deactivated Windows Defender.
ALso Installed Antivir to allow SessionServer.exe.
But nothing really helped. All changes were done with a restart of windows to have no artefacts in the running windows session. It’s really unclear, what blocks the Licencing. The revert to the Trial licence worked. But this is a temporaly workaround and no solution.
Hope to get it running soon.
February 25, 2019 at 19:04 #23979 -
AuthorPosts
- You must be logged in to reply to this topic.