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

Exception in IL2CPP-to-Managed trampolin #2

Open
mifriis opened this issue Oct 20, 2024 · 0 comments
Open

Exception in IL2CPP-to-Managed trampolin #2

mifriis opened this issue Oct 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mifriis
Copy link

mifriis commented Oct 20, 2024

I am not quite sure how to trigger this, but it seems to happen after playing "a while".

This game session i have manged to call the taxi multiple times, but then suddenly it no longer works and throws a NullReferenceException:

[Error  :Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.NullReferenceException: Object reference not set to an instance of an object.
   at BATaxiMod.TaxiButtonChecker.OnTaxiCalled()
   at BATaxiMod.TaxiButtonChecker.<>c.<Start>b__2_0()
   at (il2cpp delegate trampoline) System.Void_System.Action(IntPtr , Il2CppMethodInfo* )

I have included the entire log, including the times it worked. There are two exceptions logged because i called for one twice.

From inspecting the code it could be https://github.com/ecaii/ba-taxi-mod/blob/main/TaxiButtonChecker.cs#L60 or L59 that is missing a null check if ´cars´ turns out to be empty.

[Message: Preloader] BepInEx 6.0.0-be.719 - Big Ambitions (18-10-2024 13:21:50)
[Message: Preloader] Built from commit d9b95a0ac76e53c4f0f2be93939adb02cfde16d4
[Info   :   BepInEx] System platform: Windows 10 64-bit
[Info   :   BepInEx] Process bitness: 64-bit (x64)
[Info   :   BepInEx] Running under Unity 2022.3.39f1
[Info   :   BepInEx] Runtime version: 6.0.7
[Info   :   BepInEx] Runtime information: .NET 6.0.7
[Info   :AssemblyPatcher] Loaded 0 patcher
[Info   : Preloader] 0 patcher plugins loaded
[Info   : Preloader] 0 assemblies discovered
[Message:AssemblyPatcher] Executing 0 patch(es)
[Message:   BepInEx] Chainloader initialized
[Warning:Il2CppInterop] Class::Init signatures have been exhausted, using a substitute!
[Info   :Il2CppInterop] Registered mono type Il2CppInterop.Runtime.DelegateSupport+Il2CppToMonoDelegateReference in il2cpp domain
[Info   :   BepInEx] 1 plugin provider to load
[Info   :   BepInEx] Loading [BepInExPluginProvider 1.0.0]
[Info   :   BepInEx] 1 plugin to load
[Info   :   BepInEx] Loading [Oren's Taxi Mod 1.0.0]
[Info   :Oren's Taxi Mod] Plugin BATaxiMod is loaded!
[Info   :Il2CppInterop] Registered mono type BATaxiMod.TaxiButtonChecker in il2cpp domain
[Message:   BepInEx] Chainloader startup complete
[Message:     Unity] Odin Serializer ArchitectureInfo initialization with defaults (all unaligned read/writes disabled).
[Message:     Unity] Odin Serializer detected whitelisted runtime platform WindowsPlayer and memory read test succeeded; enabling all unaligned memory read/writes.
[Message:     Unity] Init Steam with: 1331550
[Message:     Unity] Game Analytics data collection started
[Message:     Unity] Loaded EA 0.6 (Build 2699)
[Message:     Unity] Steam User Stats Recieved!
[Message:     Unity] Steam User Stats Recieved!
[Warning:     Unity] Failed to create agent because there is no valid NavMesh
[Info   :Oren's Taxi Mod] TaxiButtonChecker::Start
[Warning:     Unity] The character with Unicode value \uA7FB was not found in the [Rubik-Medium SDF] font asset or any potential fallbacks. It was replaced by Unicode character \u003F in text object [Title].
[Warning:     Unity] The character with Unicode value \uA7FB was not found in the [Rubik-Medium SDF] font asset or any potential fallbacks. It was replaced by Unicode character \u003F in text object [Title].
[Warning:     Unity] The character with Unicode value \uA7FB was not found in the [Rubik-Medium SDF] font asset or any potential fallbacks. It was replaced by Unicode character \u003F in text object [Title].
[Warning:     Unity] Couldn't find AI business logo (Noir HQ/SquareSign)
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] Couldn't find AI business logo (Noir HQ/SquareSign)
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Message:     Unity] User Stats Stored
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] NullReferenceException: Object reference not set to an instance of an object.
[Error  :     Unity] NullReferenceException: Object reference not set to an instance of an object.
[Error  :     Unity] NullReferenceException: Object reference not set to an instance of an object.
[Error  :     Unity] NullReferenceException: Object reference not set to an instance of an object.
[Warning:     Unity] Failed to create agent because it is not close enough to the NavMesh
[Message:     Unity] User Stats Stored
[Warning:     Unity] Failed to create agent because it is not close enough to the NavMesh
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Failed to create agent because it is not close enough to the NavMesh
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Warning:     Unity] A Line Renderer component should be on a RectTransform positioned at (0,0,0), do not use in child Objects.
For best results, create separate RectTransforms as children of the canvas positioned at (0,0) for a UILineRenderer and do not move.
[Message:     Unity] User Stats Stored
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.NullReferenceException: Object reference not set to an instance of an object.
   at BATaxiMod.TaxiButtonChecker.OnTaxiCalled()
   at BATaxiMod.TaxiButtonChecker.<>c.<Start>b__2_0()
   at (il2cpp delegate trampoline) System.Void_System.Action(IntPtr , Il2CppMethodInfo* )
[Warning:     Unity] Localization for key 'taxi service' not found
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :     Unity] Opening hours not found for
[Warning:     Unity] Localization for key 'taxi service' not found
[Error  :Il2CppInterop] Exception in IL2CPP-to-Managed trampoline, not passing it to il2cpp: System.NullReferenceException: Object reference not set to an instance of an object.
   at BATaxiMod.TaxiButtonChecker.OnTaxiCalled()
   at BATaxiMod.TaxiButtonChecker.<>c.<Start>b__2_0()
   at (il2cpp delegate trampoline) System.Void_System.Action(IntPtr , Il2CppMethodInfo* )
@ecaii ecaii added the bug Something isn't working label Oct 20, 2024
@ecaii ecaii self-assigned this Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants