Crash - ntdll.dll!RtlpWaitOnCriticalSection (0xb1)

Environment questions

GTA V version: 1.60 - released May 17, 2022.
Up to date: Yes
Legit or Pirate copy: Legit
Purchased where - Steam/Rockstar Launcher/Epic: Steam
Windows version: Windows 11 Home - OS build 22000.739
Did you try to delete content_index.xml and try again? Yes
System specifications: AMD Ryzen 7 2700X, 16.0 GB DDR4 Ram, 4095MB NVIDIA GeForce GTX 1050 Ti (Gigabyte)
CitizenFX crash zip file (‘Save information’ on a crash):
CfxCrashDump_2022_07_01_00_08_10.zip (1.6 MB)

logs/CitizenFX_log files:
CitizenFX_log_2022-06-30T225046.log (572.6 KB)

.dmp files/report IDs:
c2780739-e7e7-42a8-a67a-89873afb2be8.dmp (9.2 MB)
Report ID: si-f1797cf8099e495da4180deb738a0c60

Important parts

What is the issue you’re having?
Currently whilst playing the game i will get these random crashes. No warnings, no messages apart from the error message.

What are you trying to do?
Most of the time i would be sitting Idle in a vehicle when these occur.

What have you tried already to fix the issue?
I have reinstalled FiveM, deleted the content_index file on multiple occasions.

Error screenshot (if any):

What did you do to get this issue?
Nothing simply sitting idle in a vehicle for a couple of minutes.

What server did you get this issue on? Be specific and name some, ‘all of them’ by itself isn’t useful!
[PVE | Simulator][EU-1] Transport Tycoon Developed by Glitchdetector and CollinsAlexander.


Additional comments

Hope this information will help - Not a screenshot of the error window but the information from it.

ntdll.dll!RtlpWaitOnCriticalSection (0xb1)

[Content]
An error at ntdll.dll!RtlpWaitOnCriticalSection (0xb1) caused FiveM to stop working. A crash report is being uploaded to the FiveM developers.
Stack trace:
ntdll.dll!RtlpWaitOnCriticalSection (0xb1)
ntdll.dll!RtlpEnterCriticalSectionContended (0x18b)
ntdll.dll!RtlEnterCriticalSection (0x41)
GTA5_b2545.exe!sub_1417A7D6C (0x26)
GTA5_b2545.exe!sub_1417A2774 (0x83)
GTA5_b2545.exe!sub_1417A289C (0x12a)
GTA5_b2545.exe!sub_1416F3130 (0xd7)

[Expanded Information]
Crash signature: ntdll.dll+1D7D1
Report ID: si-f1797cf8099e495da4180deb738a0c60
No specific comments only that any help will be greatly appreciated.

Hello, this is a friendly reminder because this is your first time creating a topic (or it has been a while since your last topic) in this category.

Please note that most of the support is provided by the Cfx.re community on a voluntary basis. We ask you to be patient; there is no guarantee we have a solution to your problem(s). To avoid unnecessary/duplicate topics, please browse the forums before creating a topic.

To improve your chances of your issue(s) being solved, please provide as much information as possible about the issue(s) you are having. Also —whenever possible— please use the template given to you when creating a topic.

Thanks for keeping these forums tidy!
:mascot:

This is odd, as it matches another recent topic (Crashes in car selection (Mega's Games racing)), but these crashes are not too common going by statistics, and nothing recently changed at all (nor did they get more popular over time) regarding code involved here.

Did these servers end up growing some new code path, or what’s going on here? :confused:

For reference, the failure still occurs somewhere in text rendering:

 	ntdll.dll!RtlpWaitOnCriticalSection()	Unknown
 	ntdll.dll!RtlpEnterCriticalSectionContended()	Unknown
 	ntdll.dll!RtlEnterCriticalSection()	Unknown
>	FiveM_b2545_GTAProcess.exe!sub_1417A7D6C()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_1417A2774()	Unknown # GFxStyledText::GFxStyledText(GFxTextAllocator* pallocator)
 	FiveM_b2545_GTAProcess.exe!sub_1417A289C()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_1416F3130()	Unknown
 	FiveM_b2545_GTAProcess.exe!GFxDrawTextManager::CreateText()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_140D98E24()	Unknown
 	FiveM_b2545_GTAProcess.exe!_textDrawIm()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_140DA0B34()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_140A32FE4()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_140A33244()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_140A34410()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_141635970()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_14163586C()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_141610A54()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_141611438()	Unknown
 	FiveM_b2545_GTAProcess.exe!sub_141619DD8()	Unknown
 	FiveM_b2545_GTAProcess.exe!StartAddress()	Unknown

Without a reproduction sequence or a full memory dump this may be difficult to track down, however.

Notably, for this dump, a draw-text call in a script on the server failed beforehand:

[   4358672] [b2545_GTAProce]             MainThrd/ InvokeNative: execution failed: Error executing native 0x85f061da64ed2f67 at address 0x7ffcc24bd7d1.
[   4358672] [b2545_GTAProce]             MainThrd/ ^1SCRIPT ERROR: Execution of native 85f061da64ed2f67 in script host failed: Error executing native 0x85f061da64ed2f67 at address 0x7ffcc24bd7d1.^7
[   4358672] [b2545_GTAProce]             MainThrd/ ^3> DrawScreenTextCenter^7 (^5@metrics/cl_metrics.lua^7:131)
[   4358672] [b2545_GTAProce]             MainThrd/ ^3> fn^7 (^5@metrics/cl_metrics.lua^7:156)

(0x7ffcc24bd7d1 again being RtlpWaitOnCriticalSection, however, implying corruption somewhere in Scaleform GFx logic)

Of note is both servers register some custom GFx fonts:

[    104140] [b2545_GTAProce]             MainThrd/ font file barcode39 loaded - adding to GFxFontLib
[    104140] [b2545_GTAProce]             MainThrd/ font file bubble3d loaded - adding to GFxFontLib
[    104140] [b2545_GTAProce]             MainThrd/ font file captureit loaded - adding to GFxFontLib
[    104172] [b2545_GTAProce]             MainThrd/ font file chlub loaded - adding to GFxFontLib
[    104172] [b2545_GTAProce]             MainThrd/ font file colorbasic loaded - adding to GFxFontLib
[    104172] [b2545_GTAProce]             MainThrd/ font file crashedscoreboard loaded - adding to GFxFontLib
[    104172] [b2545_GTAProce]             MainThrd/ font file dirtybakersdozen loaded - adding to GFxFontLib
[    104172] [b2545_GTAProce]             MainThrd/ font file duedate loaded - adding to GFxFontLib
[    104187] [b2545_GTAProce]             MainThrd/ font file expresswayrg loaded - adding to GFxFontLib
[    104187] [b2545_GTAProce]             MainThrd/ font file fakereceipt loaded - adding to GFxFontLib
[    104218] [b2545_GTAProce]             MainThrd/ font file ferrorosso loaded - adding to GFxFontLib
[    104218] [b2545_GTAProce]             MainThrd/ font file joystix loaded - adding to GFxFontLib
[    104218] [b2545_GTAProce]             MainThrd/ font file komikahn loaded - adding to GFxFontLib
[    104234] [b2545_GTAProce]             MainThrd/ font file morse loaded - adding to GFxFontLib
[    104234] [b2545_GTAProce]             MainThrd/ font file morseraw loaded - adding to GFxFontLib
[    104234] [b2545_GTAProce]             MainThrd/ font file offshore loaded - adding to GFxFontLib
[    104234] [b2545_GTAProce]             MainThrd/ font file quadaptor loaded - adding to GFxFontLib
[    104234] [b2545_GTAProce]             MainThrd/ font file twofold loaded - adding to GFxFontLib
[    104234] [b2545_GTAProce]             MainThrd/ font file undeveloped loaded - adding to GFxFontLib
[    104281] [b2545_GTAProce]             MainThrd/ Returning device Speakers (Realtek High Definition Audio) for GUID {4EF384FC-FE06-4212-A8EF-756165785B33}
[    104406] [b2545_GTAProce]             MainThrd/ font file fa-brands-400 loaded - adding to GFxFontLib
[    104406] [b2545_GTAProce]             MainThrd/ font file fa-duotone-900 loaded - adding to GFxFontLib
[    104406] [b2545_GTAProce]             MainThrd/ font file undevelopedbook loaded - adding to GFxFontLib
[    104453] [b2545_GTAProce]             MainThrd/ font file fa-light-300 loaded - adding to GFxFontLib
[    104484] [b2545_GTAProce]             MainThrd/ font file fa-regular-400 loaded - adding to GFxFontLib
[    104515] [b2545_GTAProce]             MainThrd/ font file barcode loaded - adding to GFxFontLib
[    104515] [b2545_GTAProce]             MainThrd/ font file fa-solid-900 loaded - adding to GFxFontLib

… and in the other topic:

[     61063] [b2612_GTAProce]             MainThrd/ font file font_digi loaded - adding to GFxFontLib

Further analysis shows that somehow the GFxTextAllocator instance used here (via GFxDrawTextManager::GetTextAllocator()) got… broken. Odd, and oddly as well this code doesn’t directly match the GFx SDK we have available, implying behavior here changed at some point during GFx 3.x, but also odd since this isn’t any code we touched at all, and this is the same since GTA5 exists basically.

This’d have been a lot easier to investigate with a large memory dump or a repro. :confused:

If i understand what your saying, could this have been caused by a pop up message suggesting that you move before your kicked for being AFK??

I know on the TT server usually you would get a warning message stating if you dont move in such and such time you will be kicked for AFK.

I have had other crashes but with different codes, also at times when i have been idle in game. I have crash logs from that if you wish to see them, to see if there is any similarities.

1 Like

Hello,
Thank you for your input - In regards to my other message i may have been wrong - I received another crash today with the same error code. I’m not sure if this will help to confirm anything that you saw in the last crash dump but thought i would add it on.

CfxCrashDump_2022_07_01_21_33_51.zip (1.6 MB)

Well the crashes have become more frequent now - I’m experiencing them every 1 - 2 Hours.
Have done a fresh install of FiveM. I redeleted the content folder and nothing still constant crashes

Bumping with no additional info doesn’t make this any more reproducible.

Also, what is with this obsession with ‘fresh installs’? All this does is cause more load on backend services and it doesn’t really fix anything at all for anyone ever.

You mentioned about a full memory dump - and i have multiple crash logs just from yesterday that i can upload.

Is this full memory dump something that i can do on my PC so that it is able to help bring other details to light or is their nothing else i can do.

Literally in all the crashes in the last day i have been doing something, most of the time its whilst driving one of the various vehicles on the server.

If there is anything that i can do to assist you guys in getting to the bottom of this problem please let me know so that i can help as i am getting frustrated with the constant crashes and its getting to a point where i may have to stop playing a game that i enjoy playing very much

2 Likes

See Enabling and uploading full client dumps - Modding Tutorials - Cfx.re Community or so. Not sure if the flag still works reliably though.

Hi, as requested i have a full dump file - Hopefully this can give you some more insight into the problem. I was able to attach it here instead of uploading it to Gdrive

1e4d7bac-cf14-4d05-b1d5-50446398387a.zip (1.6 MB)

I have also included the crash log from that crash just in case you wanted it aswell.
I appreciate all the work you guys are putting into FiveM and trying to help us players fix these issues.

CfxCrashDump_2022_07_04_20_26_46.zip (1.7 MB)

Neither seem to be a full dump file (the one ending with -full.dmp).

Apologies - I must have clicked wrong one
Here is correct file which i did have to upload to Google Drive xD
https://drive.google.com/file/d/1NCGUqVXI6Wq0e0zSAP7EVpbe2141WMji/view?usp=sharing

image
… uh

Apologies, i thought i set that - You should be able to get it now

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

A repro was posted on GitHub for an issue that sounds like this: Client crash when drawing emojis · Issue #1572 · citizenfx/fivem · GitHub

Thank you for this reply.

However I’m not sure what happened.
A few days after my last reply my game stopped crashing entirely.

Now it’s working completely fine again