Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several TypeInitializationExceptions with V2.10.4 #742

Closed
RainerHilmer opened this issue Dec 18, 2017 · 9 comments
Closed

Several TypeInitializationExceptions with V2.10.4 #742

RainerHilmer opened this issue Dec 18, 2017 · 9 comments
Labels

Comments

@RainerHilmer
Copy link

@RainerHilmer RainerHilmer commented Dec 18, 2017

[22:15:00] [ERROR] Caught fatal unhandled exception:
System.TypeInitializationException: Der Typeninitialisierer für "GTA.Native.MemoryAccess" hat eine Ausnahme verursacht. ---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei GTA.Native.MemoryAccess..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei GTA.Native.MemoryAccess.GetVehicleHandles()
bei GTA.World.GetAllVehicles()
bei JetBlast.ScriptMain.OnTick(Object sender, EventArgs e)
bei GTA.Script.raise_Tick(Object value0, EventArgs value1)
bei GTA.Script.MainLoop()
[22:15:00] [ERROR] Caught fatal unhandled exception:
System.TypeInitializationException: Der Typeninitialisierer für "GTA.Native.MemoryAccess" hat eine Ausnahme verursacht. ---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei GTA.Native.MemoryAccess..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei GTA.Native.MemoryAccess.GetPedHandles(Vector3 position, Single radius)
bei GTA.World.GetNearbyPeds(Ped ped, Single radius)
bei Main.OnTick(Object sender, EventArgs e)
bei GTA.Script.raise_Tick(Object value0, EventArgs value1)
bei GTA.Script.MainLoop()
[22:15:00] [ERROR] Caught fatal unhandled exception:
System.TypeInitializationException: Der Typeninitialisierer für "GTA.Native.MemoryAccess" hat eine Ausnahme verursacht. ---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei GTA.Native.MemoryAccess..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei GTA.Native.MemoryAccess.GetPropHandles(Vector3 position, Single radius)
bei GTA.World.GetNearbyProps(Vector3 position, Single radius)
bei SittingMod.Main.OnTick(Object sender, EventArgs e)
bei GTA.Script.raise_Tick(Object value0, EventArgs value1)
bei GTA.Script.MainLoop()
[22:15:00] [ERROR] Caught fatal unhandled exception:
System.TypeInitializationException: Der Typeninitialisierer für "GTA.Native.MemoryAccess" hat eine Ausnahme verursacht. ---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei GTA.Native.MemoryAccess..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei GTA.Native.MemoryAccess.GetPedHandles(Vector3 position, Single radius)
bei GTA.World.GetNearbyPeds(Ped ped, Single radius)
bei WorkingHotDogVendors.Main.OnTick(Object sender, EventArgs e)
bei GTA.Script.raise_Tick(Object value0, EventArgs value1)
bei GTA.Script.MainLoop()
[22:15:05] [ERROR] Script 'Main' is not responding! Aborting ...
[22:15:05] [DEBUG] Aborted script 'Main'.
[22:15:10] [ERROR] Script 'SittingMod.Main' is not responding! Aborting ...
[22:15:10] [DEBUG] Aborted script 'SittingMod.Main'.
[22:15:15] [ERROR] Script 'WorkingHotDogVendors.Main' is not responding! Aborting ...
[22:15:15] [DEBUG] Aborted script 'WorkingHotDogVendors.Main'.
[22:16:01] [ERROR] Caught fatal unhandled exception:
System.TypeInitializationException: Der Typeninitialisierer für "GTA.Native.MemoryAccess" hat eine Ausnahme verursacht. ---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei GTA.Native.MemoryAccess..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei GTA.Native.MemoryAccess.GetVehicleHandles(Int32 modelhash)
bei GTA.World.GetAllVehicles(Model model)
bei TheCharacterVehicleMod.VehicleTick(String characterFirstInitial, VehicleHash vehicleHash, Int32 blipColor, Vehicle firstPlayerCar, Vehicle secondPlayerCar)
bei TheCharacterVehicleMod.OnTick(Object sender, EventArgs e)
bei System.EventHandler.Invoke(Object sender, EventArgs e)
bei GTA.Script.raise_Tick(Object value0, EventArgs value1)
bei GTA.Script.MainLoop()
[22:16:06] [ERROR] Script 'TheCharacterVehicleMod' is not responding! Aborting ...
[22:16:06] [DEBUG] Aborted script 'TheCharacterVehicleMod'.
[22:16:07] [ERROR] Caught fatal unhandled exception:
System.TypeInitializationException: Der Typeninitialisierer für "GTA.Native.MemoryAccess" hat eine Ausnahme verursacht. ---> System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei GTA.Native.MemoryAccess..cctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei GTA.Native.MemoryAccess.IsModelAPed(Int32 modelHash)
bei GTA.World.CreatePed(Model model, Vector3 position, Single heading)
bei GTA.World.CreatePed(Model model, Vector3 position)
bei Hangars.PropManager.InitMechanic()
bei Hangars.HangarControl.OnTickEvent(Object sender, EventArgs e)
bei GTA.Script.raise_Tick(Object value0, EventArgs value1)
bei GTA.Script.MainLoop()
[22:16:12] [ERROR] Script 'Hangars.HangarControl' is not responding! Aborting ...
[22:16:12] [DEBUG] Aborted script 'Hangars.HangarControl'.

@Cuky88
Copy link

@Cuky88 Cuky88 commented Dec 18, 2017

I got the same type of error with "isBulletProof" and "GetNearbyVehicles".

@sollaholla
Copy link

@sollaholla sollaholla commented Dec 18, 2017

Well, most things related to entities is going to throw an exception, especially if it's accessing the ped pool, or checking handles. We just gotta wait now 😞

@kagikn
Copy link
Collaborator

@kagikn kagikn commented Dec 18, 2017

I changed the project settings to make a pdb, and I confirmed the pattern for GetAddressOfEntity is outdated. Not sure if no other patterns in NativeMemory.cpp are outdated, though.

@RainerHilmer
Copy link
Author

@RainerHilmer RainerHilmer commented Dec 18, 2017

Yeah I know the developer woes. I am patient but I am afraid all those crybabies will come and flood the GTA V forums now. Oh well...

crosire added a commit that referenced this issue Dec 18, 2017
Fix #742
@kagikn
Copy link
Collaborator

@kagikn kagikn commented Dec 18, 2017

@crosire Why don't you add a PDB? I didn't know this is possible until this issue was opened, but you can find where the line an exception is thrown, and PNWParksFan told me this is possible even if the assembly is obscured.

@kagikn
Copy link
Collaborator

@kagikn kagikn commented Dec 18, 2017

I confirmed GetEntityPos isn't working. I'm out now and I can't test the other patterns below it atm.

@tyzaizl
Copy link

@tyzaizl tyzaizl commented Dec 19, 2017

got the same problems:

[11:09:11] [ERROR] Caught unhandled exception:
System.TypeInitializationException: The type initializer for 'GTA.Native.MemoryAccess' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at GTA.Native.MemoryAccess..cctor()
--- End of inner exception stack trace ---
at GTA.Native.MemoryAccess.GetPedHandles(Vector3 position, Single radius)
at GTA.World.GetNearbyPeds(Ped ped, Single radius)
at GTAVisionUtils.GTAData.DumpData(String imageName, List`1 capturedWeathers)
at GTAVisionExport.VisionExport.OnKeyDown(Object o, KeyEventArgs k)
at GTA.Script.raise_KeyDown(Object value0, KeyEventArgs value1)
at GTA.Script.MainLoop()

[11:09:14] [ERROR] Caught unhandled exception:
System.TypeInitializationException: The type initializer for 'GTA.Native.MemoryAccess' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at GTA.Native.MemoryAccess..cctor()
--- End of inner exception stack trace ---
at GTA.Native.MemoryAccess.GetPedHandles(Vector3 position, Single radius)
at GTA.World.GetNearbyPeds(Ped ped, Single radius)
at GTAVisionUtils.GTAData.DumpData(String imageName, List`1 capturedWeathers)
at GTAVisionExport.VisionExport.OnKeyDown(Object o, KeyEventArgs k)
at GTA.Script.raise_KeyDown(Object value0, KeyEventArgs value1)
at GTA.Script.MainLoop()

[11:09:15] [ERROR] Caught unhandled exception:
System.TypeInitializationException: The type initializer for 'GTA.Native.MemoryAccess' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at GTA.Native.MemoryAccess..cctor()
--- End of inner exception stack trace ---
at GTA.Native.MemoryAccess.GetPedHandles(Vector3 position, Single radius)
at GTA.World.GetNearbyPeds(Ped ped, Single radius)
at GTAVisionUtils.GTAData.DumpData(String imageName, List`1 capturedWeathers)
at GTAVisionExport.VisionExport.OnKeyDown(Object o, KeyEventArgs k)
at GTA.Script.raise_KeyDown(Object value0, KeyEventArgs value1)
at GTA.Script.MainLoop()

@kagikn
Copy link
Collaborator

@kagikn kagikn commented Dec 19, 2017

I confirmed this issue is solved by #743 and #744, closing.

@RainerHilmer
Copy link
Author

@RainerHilmer RainerHilmer commented Dec 19, 2017

Will you guys release a hotfix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants