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

Client Error on Every Tick combined with vMenu bug concerning camera natives? #2873

Closed
Legacy-TacticalGamingInteractive opened this issue Oct 22, 2024 · 1 comment · Fixed by #2875
Labels
bug ScRT: C# Issues/PRs related to either C# scripting runtimes

Comments

@Legacy-TacticalGamingInteractive

What happened?

Client being spammed with this every tick.
Reported issues for some clients where editing MP Ped gets stuck on the back camera view.

As of artifacts fx: b10488

[    162125] [b3258_GTAProce]             MainThrd/ Exception thrown by a task: System.AggregateException: One or more errors occurred. ---> System.BadImageFormatException: Error verifying vMenuClient.FunctionsController/<ManageCamera>d__69:MoveNext (): Cannot load method from token 0x0a000464 for callvirt at 0x0662

[    162125] [b3258_GTAProce]             MainThrd/   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at vMenuClient.FunctionsController.ManageCamera () [0x0001c] in <8ac338df6925494b9af250e9c1dc8407>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at CitizenFX.Core.BaseScript+<>c__DisplayClass40_1.<ScheduleTick>b__1 () [0x00049] in C:\gl\builds\cfx-fivem-0\code\client\clrcore\BaseScript.cs:176 

[    162125] [b3258_GTAProce]             MainThrd/   at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at System.Threading.Tasks.Task.Execute () [0x00010] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

[    162125] [b3258_GTAProce]             MainThrd/    --- End of inner exception stack trace ---

[    162125] [b3258_GTAProce]             MainThrd/ ---> (Inner Exception #0) System.BadImageFormatException: Error verifying vMenuClient.FunctionsController/<ManageCamera>d__69:MoveNext (): Cannot load method from token 0x0a000464 for callvirt at 0x0662

[    162125] [b3258_GTAProce]             MainThrd/   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at vMenuClient.FunctionsController.ManageCamera () [0x0001c] in <8ac338df6925494b9af250e9c1dc8407>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at CitizenFX.Core.BaseScript+<>c__DisplayClass40_1.<ScheduleTick>b__1 () [0x00049] in C:\gl\builds\cfx-fivem-0\code\client\clrcore\BaseScript.cs:176 

[    162125] [b3258_GTAProce]             MainThrd/   at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at System.Threading.Tasks.Task.Execute () [0x00010] in <b575c7ac070e41ffa0751333b6ac9f42>:0 <---

[    162125] [b3258_GTAProce]             MainThrd/ 
[    162125] [b3258_GTAProce]             MainThrd/ Failed to run a tick for FunctionsController: System.BadImageFormatException: Error verifying vMenuClient.FunctionsController/<ManageCamera>d__69:MoveNext (): Cannot load method from token 0x0a000464 for callvirt at 0x0662

[    162125] [b3258_GTAProce]             MainThrd/   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at vMenuClient.FunctionsController.ManageCamera () [0x0001c] in <8ac338df6925494b9af250e9c1dc8407>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at CitizenFX.Core.BaseScript+<>c__DisplayClass40_1.<ScheduleTick>b__1 () [0x00049] in C:\gl\builds\cfx-fivem-0\code\client\clrcore\BaseScript.cs:176 

[    162125] [b3258_GTAProce]             MainThrd/   at System.Threading.Tasks.Task`1[TResult].InnerInvoke () [0x0000f] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

[    162125] [b3258_GTAProce]             MainThrd/   at System.Threading.Tasks.Task.Execute () [0x00010] in <b575c7ac070e41ffa0751333b6ac9f42>:0 

Expected result

Proper camera functions while previewing ped clothing. Obviously not client spam on every tick with this error.

Reproduction steps

  1. Update server artifacts to b10488
  2. Run vMenu
  3. Error occurs soon as you load in

Importancy

Slight inconvenience

Area(s)

FiveM, Natives, ScRT: C#

Specific version(s)

FiveM - tx: v7.3.2 | fx: b10488

Additional information

No response

@Legacy-TacticalGamingInteractive Legacy-TacticalGamingInteractive added bug triage Needs a preliminary assessment to determine the urgency and required action labels Oct 22, 2024
@github-actions github-actions bot added the ScRT: C# Issues/PRs related to either C# scripting runtimes label Oct 22, 2024
@ook3D
Copy link
Contributor

ook3D commented Oct 22, 2024

I have the same issue, I've reported it to the cfx team as well, not sure what went wrong

@github-actions github-actions bot removed the triage Needs a preliminary assessment to determine the urgency and required action label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ScRT: C# Issues/PRs related to either C# scripting runtimes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants