Rigs-of-rods: (1072) Game crash when trying to use the vehicle selection screen

Created on 11 Dec 2020  ·  4Comments  ·  Source: RigsOfRods/rigs-of-rods

Basically, whenever I try to open the vehicle selection menu thru the default mapping CTRL+G or thru the topbar GUI, the game instantly crashes.
Instant crash
I saw no specific errors in at the end of the log file. Sounds like an unhandled exception.
RoR.log
Even the RigSpawner is affected by this.

GUI bug crash

All 4 comments

I did some investigations and it turns out that a special character like ² and any letters with accents are the suspects.

"²²²²²²²²²²²²²Desperado" Rock Buggy²²²²²²²²²

RoR::ImTextFeeder::AddMultiline (this=this@entry=0x7fffffffe280, color=4293256677, wrap_width=wrap_width@entry=-1, 
    text_begin=text_begin@entry=0x55555eee6c00 "\"", '²' <repeats 13 times>, "Desperado\" Rock Buggy²²²²²²²²²", 
    text_end=text_end@entry=0x55555eee6c42 "") at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/gui/GUIUtils.cpp:75
75          unsigned int c = (unsigned int)*text_pos

```#0 RoR::ImTextFeeder::AddMultiline (this=this@entry=0x7fffffffe280, color=4293256677, wrap_width=wrap_width@entry=-1,
text_begin=text_begin@entry=0x55555eee6c00 """, '²' , "Desperado" Rock Buggy²²²²²²²²²",
text_end=text_end@entry=0x55555eee6c42 "") at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/gui/GUIUtils.cpp:75

1 0x00005555557176c1 in RoR::DrawColorMarkedText (drawlist=drawlist@entry=0x5555564389b0, text_cursor=..., default_color=...,

override_alpha=override_alpha@entry=1, wrap_width=wrap_width@entry=-1, 
line="\"", '²' <repeats 13 times>, "Desperado\" Rock Buggy²²²²²²²²²")
at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/gui/GUIUtils.cpp:238

2 0x00005555557d263d in RoR::GUI::MainSelector::Draw (this=0x5555575fb5c0)

at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/gui/panels/GUI_MainSelector.cpp:176

3 0x00005555557112cc in RoR::GUIManager::DrawCommonGui (this=this@entry=0x5555567e18f0)

at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/gui/GUIManager.cpp:486

4 0x0000555555711302 in RoR::GUIManager::DrawSimGuiBuffered (this=0x5555567e18f0, player_gfx_actor=0x0)

at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/gui/GUIManager.cpp:243

5 0x000055555566afe1 in RoR::GfxScene::UpdateScene (this=0x555555bad8c0 , dt_sec=dt_sec@entry=0.0166667141)

at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/gfx/GfxScene.cpp:241

6 0x00005555555eb5ef in main (argc=, argv=)

at /home/babis/Downloads/ror-dependencies/rigs-of-rods/source/main/main.cpp:765

````

@WillyB1337 Good spot, thanks!

Turned out to be one-line mishap, fixed in upcoming PR #2630.
image

The issue of specials characters is also happening with the chat system. Whenever I try to send a message containing a letter with accents, instant crash.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zacharylROR picture zacharylROR  ·  3Comments

Bob-Z picture Bob-Z  ·  11Comments

smo68 picture smo68  ·  4Comments

4x4convoy picture 4x4convoy  ·  6Comments

ghost picture ghost  ·  7Comments