question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GTA.Native.?A0xe506951e.NativeTask.Run() Crash

See original GitHub issue

On the script we’ve been developing we seem to be getting random crashes. Nothing shows specifically in the SHV or SHVDN logs but in the windows event viewer the error shows the following:

Application: GTA5.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at nativeCall() at GTA.Native.?A0xe506951e.NativeTask.Run() at GTA.ScriptDomain.DoTick() at GTA.ScriptDomain.DoTick() at <Module>.ManagedTick()

Looking over the crash dump it appears to be from some function called NtWaitForMultipleObjects.

Does anyone know what may be the cause of this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
crosirecommented, Sep 18, 2016

If a native script function is used in an unsafe way (direct memory pointers that may not stay valid and such), SHVDN cannot guarantee any crash safety. If you use features from the GTA.Native namespace directly, I suggest start looking there, as the SHVDN wrappers should be safe to use.

1reaction
njames93commented, Sep 17, 2016

Sounds like an issue with a native you were calling. can you post code from the script which caused the error

Read more comments on GitHub >

github_iconTop Results From Across the Web

GTA V Keeps Crashing With Mods Please Help
To elaborate, my GTA V keeps crashing on the Story Mode loading screen ... running the game with only Script Hook and the...
Read more >
Can I make an exception in Task.Run crash the program?
I'm not a big fan of quietly swallowed exceptions, but the following code does exactly that: Task.Run(() => { var obj = DoSomethingCpuIntensive ......
Read more >
Enhanced Native Trainer crashing randomly : r/GTAV_Mods
Enhanced Native Trainer crashing randomly. Hi,. So I recently reinstalled my GTA V because I had a bunch of old mods that were...
Read more >
GTA V CRASH: KERNELBASE.DLL ERROR · Issue #697
Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at nativeCall() at GTA.
Read more >
GTA 5 - How to Fix Crash on Startup - TUTORIAL | 2022
gta 5 crash on startup without error, gta 5 crash on startup, gta 5 crash on startup fix, gta 5 lspdfr crashes on...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found