Transport Fever 2

Transport Fever 2

View Stats:
Game crash on load
Hello, I am getting this error.

Exception Type: Fatal Error

Assertion Failure: Assertion 'Size 2>0' failed.

Does someone know how to fix this?? I am playing with mods, map size megalomaniac but the map will not load at all. This happens on the loading screen.
< >
Showing 1-4 of 4 comments
If the error does not occur with mods, and/or other saves with no or different mods, then it is a mod issue.

What does the last 10% or so of the stdout file say?

Do you have an older save of the same map? If so, does it work fine? Check what you added in between that save and the current one with this issue.
KiddBoston Jan 18 @ 12:51pm 
Originally posted by Tsubame ⭐:
If the error does not occur with mods, and/or other saves with no or different mods, then it is a mod issue.

What does the last 10% or so of the stdout file say?

Do you have an older save of the same map? If so, does it work fine? Check what you added in between that save and the current one with this issue.
I just recently reinstalled the game, and all my saves were wiped. I was starting an entirely fresh save in the map editor when this crash occured.

Last 10% or so of crash log:

Replacing vehicle/car/ford_fordor_1934.mdl with vehicle/car/ford_fordor_1934_v2.mdl
Replacing vehicle/car/ford_model_t.mdl with vehicle/car/ford_model_t_v2.mdl
Replacing vehicle/car/gaz_22_wolga.mdl with vehicle/car/gaz_22_wolga_v2.mdl
Replacing vehicle/car/haval_h6.mdl with vehicle/car/haval_h6_v2.mdl
Replacing vehicle/car/kim_10_50.mdl with vehicle/car/kim_10_50_v2.mdl
Replacing vehicle/car/lada_riva_2107.mdl with vehicle/car/lada_riva_v2.mdl
Replacing vehicle/car/lincoln_town_car.mdl with vehicle/car/lincoln_town_car_v2.mdl
Replacing vehicle/car/nissan_datsun_240z.mdl with vehicle/car/nissan_datsun_240z_v2.mdl
Replacing vehicle/car/opel_kadett_e_carevan.mdl with vehicle/car/opel_kadett_e_caravan_v2.mdl
Replacing vehicle/car/opel_limo.mdl with vehicle/car/opel_limo_v2.mdl
Replacing vehicle/car/pickup_1978.mdl with vehicle/car/pickup_1978_v2.mdl
Replacing vehicle/car/renault_4_f4_fourgonnette.mdl with vehicle/car/renault_4_f4_fourgonnette_v2.mdl
Replacing vehicle/car/subaru_legacy_kombi.mdl with vehicle/car/subaru_legacy_kombi_v2.mdl
Replacing vehicle/car/tatra_600.mdl with vehicle/car/tatra_600_v2.mdl
Replacing vehicle/car/toyota_mirai.mdl with vehicle/car/toyota_mirai_v2.mdl
Replacing vehicle/car/trabant.mdl with vehicle/car/trabant_v2.mdl
Replacing vehicle/car/vw_golf_1.mdl with vehicle/car/vw_golf_1_v2.mdl
Replacing vehicle/car/vw_santana.mdl with vehicle/car/vw_santana_1985_v2.mdl
Replacing vehicle/car/vw_touran.mdl with vehicle/car/vw_touran_v2.mdl
Replacing vehicle/car/vw_type_2_t1.mdl with vehicle/car/vw_type_2_t1_v2.mdl
Can't replace vehicle/bus/asia/limousine.mdl with vehicle/bus/asia/limousine_v2.mdl: replacement model not found
Can't replace vehicle/train/arrow.mdl with vehicle/waggon/arrow_v2.mdl: replacement model not found
Can't replace vehicle/train/asia/shinkansen_0s_back_dryellow.mdl with vehicle/train/asia/shinkansen_0s_back_dryellow_v2.mdl: replacement model not found
Can't replace vehicle/train/asia/shinkansen_0s_front_dryellow.mdl with vehicle/train/asia/shinkansen_0s_front_dryellow_v2.mdl: replacement model not found
Can't replace vehicle/train/asia/shinkansen_0s_middle1_dryellow.mdl with vehicle/train/asia/shinkansen_0s_middle1_dryellow_v2.mdl: replacement model not found
Can't replace vehicle/train/asia/shinkansen_0s_middle2_dryellow.mdl with vehicle/train/asia/shinkansen_0s_middle2_dryellow_v2.mdl: replacement model not found
Can't replace vehicle/waggon/sultan.mdl with vehicle/waggon/sultan_v2.mdl: replacement model not found
Town updated with cargo needs for land use type 1: 16, 66, 82
Town updated with cargo needs for land use type 1: 16, 106, 102
Town updated with cargo needs for land use type 1: 15, 84, 80
Town updated with cargo needs for land use type 1: 15, 112, 46
Town updated with cargo needs for land use type 1: 16, 83, 52
Town updated with cargo needs for land use type 1: 16, 113, 117
Town updated with cargo needs for land use type 1: 15, 110, 64
Town updated with cargo needs for land use type 1: 14, 60, 58
Town updated with cargo needs for land use type 1: 14, 115, 66
Town updated with cargo needs for land use type 1: 15, 96, 98
Town updated with cargo needs for land use type 1: 16, 46, 103
Town updated with cargo needs for land use type 1: 15, 104, 56
Town updated with cargo needs for land use type 1: 16, 102, 78
Town updated with cargo needs for land use type 1: 15, 103, 81
Town updated with cargo needs for land use type 1: 16, 79, 83
Town updated with cargo needs for land use type 1: 14, 88, 107
Town updated with cargo needs for land use type 1: 16, 52, 97
Town updated with cargo needs for land use type 1: 14, 117, 53
Town updated with cargo needs for land use type 1: 14, 116, 114
Town updated with cargo needs for land use type 1: 14, 90, 67
Town updated with cargo needs for land use type 1: 16, 56, 68
Town updated with cargo needs for land use type 1: 16, 67, 54
Town updated with cargo needs for land use type 1: 15, 53, 113
Town updated with cargo needs for land use type 1: 16, 78, 55
Town updated with cargo needs for land use type 1: 16, 70, 84
Town updated with cargo needs for land use type 1: 16, 99, 57
Town updated with cargo needs for land use type 1: 16, 86, 75
Town updated with cargo needs for land use type 1: 16, 55, 59
Town updated with cargo needs for land use type 1: 15, 97, 77
Town updated with cargo needs for land use type 1: 15, 120, 86
Town updated with cargo needs for land use type 1: 14, 114, 99
Town updated with cargo needs for land use type 1: 14, 80, 70
Town updated with cargo needs for land use type 1: 14, 81, 79
Town updated with cargo needs for land use type 1: 15, 76, 71
Town updated with cargo needs for land use type 1: 16, 82, 60
Town updated with cargo needs for land use type 1: 16, 95, 73
Town updated with cargo needs for land use type 1: 16, 98, 108
Town updated with cargo needs for land use type 1: 16, 77, 101
Town updated with cargo needs for land use type 1: 16, 54, 61
Town updated with cargo needs for land use type 1: 16, 57, 62
Town updated with cargo needs for land use type 1: 15, 58, 74
Town updated with cargo needs for land use type 1: 14, 101, 109
Town updated with cargo needs for land use type 1: 15, 59, 63
Town updated with cargo needs for land use type 1: 15, 105, 69
Town updated with cargo needs for land use type 1: 16, 71, 110
Town updated with cargo needs for land use type 1: 15, 111, 112
Town updated with cargo needs for land use type 1: 15, 107, 111
Town updated with cargo needs for land use type 1: 15, 61, 115
Town updated with cargo needs for land use type 1: 14, 108, 72
Town updated with cargo needs for land use type 1: 14, 62, 88
Town updated with cargo needs for land use type 1: 14, 68, 90
Town updated with cargo needs for land use type 1: 15, 64, 116
Town updated with cargo needs for land use type 1: 14, 109, 76
Town updated with cargo needs for land use type 1: 15, 63, 95
Town updated with cargo needs for land use type 1: 16, 65, 104
Town updated with cargo needs for land use type 1: 16, 69, 96
Town updated with cargo needs for land use type 1: 16, 72, 105
Town updated with cargo needs for land use type 1: 16, 73, 106
Town updated with cargo needs for land use type 1: 15, 74, 120
Town updated with cargo needs for land use type 1: 16, 75, 72
Town updated with cargo needs for land use type 1: 16, 65, 86
Town updated with cargo needs for land use type 2: 12, 124, 43
Town updated with cargo needs for land use type 2: 11, 43, 47
Town updated with cargo needs for land use type 2: 13, 44, 48
Town updated with cargo needs for land use type 2: 11, 45, 124
Town updated with cargo needs for land use type 2: 12, 47, 49
Town updated with cargo needs for land use type 2: 11, 48, 50
Town updated with cargo needs for land use type 2: 11, 51, 123
Town updated with cargo needs for land use type 2: 12, 49, 51
Town updated with cargo needs for land use type 2: 13, 50, 44
Town updated with cargo needs for land use type 2: 11, 123, 50
Town updated with cargo needs for land use type 2: 11, 124, 51
Town updated with cargo needs for land use type 2: 13, 51, 43
Town updated with cargo needs for land use type 2: 12, 43, 124
Town updated with cargo needs for land use type 2: 12, 50, 44
Town updated with cargo needs for land use type 2: 11, 123, 45
Town updated with cargo needs for land use type 2: 11, 44, 47
Town updated with cargo needs for land use type 2: 13, 45, 48
Town updated with cargo needs for land use type 2: 13, 47, 49
Town updated with cargo needs for land use type 2: 13, 48, 123
Town updated with cargo needs for land use type 2: 13, 49, 48
Town updated with cargo needs for land use type 2: 12, 124, 43
Town updated with cargo needs for land use type 2: 11, 43, 44
Town updated with cargo needs for land use type 2: 11, 49, 45
Town updated with cargo needs for land use type 2: 12, 44, 50
Town updated with cargo needs for land use type 2: 13, 48, 49
Town updated with cargo needs for land use type 2: 11, 45, 51
Town updated with cargo needs for land use type 2: 13, 47, 123
Town updated with cargo needs for land use type 2: 13, 123, 124
Town updated with cargo needs for land use type 2: 11, 50, 47
Town updated with cargo needs for land use type 2: 13, 51, 43
Town updated with cargo needs for land use type 2: 12, 51, 50
Town updated with cargo needs for land use type 2: 11, 43, 44
Town updated with cargo needs for land use type 2: 13, 123, 45
Town updated with cargo needs for land use type 2: 11, 44, 47
Town updated with cargo needs for land use type 2: 11, 45, 48
Town updated with cargo needs for land use type 2: 13, 47, 124
Town updated with cargo needs for land use type 2: 13, 48, 123
Town updated with cargo needs for land use type 2: 13, 49, 51
Town updated with cargo needs for land use type 2: 11, 50, 49
Town updated with cargo needs for land use type 2: 12, 124, 43
Town updated with cargo needs for land use type 2: 12, 50, 44
Town updated with cargo needs for land use type 2: 12, 43, 45
Town updated with cargo needs for land use type 2: 12, 123, 50
Town updated with cargo needs for land use type 2: 11, 45, 47
Town updated with cargo needs for land use type 2: 12, 44, 48
Town updated with cargo needs for land use type 2: 12, 48, 49
Town updated with cargo needs for land use type 2: 12, 47, 51
Town updated with cargo needs for land use type 2: 12, 49, 123
Town updated with cargo needs for land use type 2: 13, 51, 124
Town updated with cargo needs for land use type 2: 12, 124, 45
Town updated with cargo needs for land use type 2: 11, 124, 47
Town updated with cargo needs for land use type 2: 11, 43, 44
Town updated with cargo needs for land use type 2: 13, 44, 48
Town updated with cargo needs for land use type 2: 12, 51, 43
Town updated with cargo needs for land use type 2: 11, 45, 51
Town updated with cargo needs for land use type 2: 11, 123, 49
Town updated with cargo needs for land use type 2: 11, 47, 50
Town updated with cargo needs for land use type 2: 12, 48, 123
Town updated with cargo needs for land use type 2: 13, 49, 124
Town updated with cargo needs for land use type 2: 12, 50, 43
Town updated with cargo needs for land use type 2: 11, 45, 50
FillTownCargoTypes: 9.736 ms
No resources are missing!
[NaturalTownGrowth][2025-01-18 15:06:11][INFO] initializing mod...
SaveGame Complexity Info: estimatedMb=13845, area=570.95, population=7211, vehicleModels=0, vehicles=0, assetGroups=284725, assets=2075344, mil=295229, models=2483365, lines=0, cargoTransported=0, passengersTransported=0, cargoInStock=0
clearing font texture cache
Shader reload took : 189.621 ms
eatglobal: Initialization [....2093003328/res/scripts/eatglobal_v2_32013.lua] (Version 2.32013) successfully completed: 3 ms.
eatglobal: init [C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2423766470/res/scripts/eatglobal_v2_29.lua] (Version 2.29)
eatglobal: init [C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2018758199/res/scripts/eatglobal_v2_26.lua] (Version 2.26)
eatglobal: Initialization [....2320595181/res/scripts/eatglobal_v2_32016.lua] (Version 2.32016) successfully completed: 4 ms.
eatglobal: Initialization [....1977034859/res/scripts/eatglobal_v2_32011.lua] (Version 2.32011) successfully completed: 3 ms.
eatglobal: Initialization [....1920437817/res/scripts/eatglobal_v2_32014.lua] (Version 2.32014) successfully completed: 3 ms.
prepare material ubo's: 1535.29 ms
Using 232 UBOs, total 0 bytes
A texture ::res/textures/environment/tropical/shadow.dds with compressed format 143 does not have full mipmap chain (7 levels of 10) and is set with a mipmapping min filter. This is not supported. Skipping compression.
A texture ::res/textures/environment/tropical/sun.dds with compressed format 143 does not have full mipmap chain (7 levels of 10) and is set with a mipmapping min filter. This is not supported. Skipping compression.
A texture ::res/textures/environment/tropical/skybox.dds with compressed format 143 does not have full mipmap chain (7 levels of 12) and is set with a mipmapping min filter. This is not supported. Skipping compression.
Advanced_Statistics: Calc all data
eatglobal: Initialization [....2093003328/res/scripts/eatglobal_v2_32013.lua] (Version 2.32013) successfully completed: 3 ms.
eatglobal: init [C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2423766470/res/scripts/eatglobal_v2_29.lua] (Version 2.29)
eatglobal: init [C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2018758199/res/scripts/eatglobal_v2_26.lua] (Version 2.26)
eatglobal: Initialization [....2320595181/res/scripts/eatglobal_v2_32016.lua] (Version 2.32016) successfully completed: 5 ms.
eatglobal: Initialization [....1977034859/res/scripts/eatglobal_v2_32011.lua] (Version 2.32011) successfully completed: 2 ms.
eatglobal: Initialization [....1920437817/res/scripts/eatglobal_v2_32014.lua] (Version 2.32014) successfully completed: 4 ms.
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
urban_games/train_fever/src/Lib/renderer/opengl/tex_load.cpp:239: __int64 __cdecl opengl_util::UploadTexture(class std::unique_ptr<class gli::texture,struct std::default_delete<class gli::texture> >,unsigned int,int): Assertion `size2 > 0' failed.
__CRASHDB_DUMP__ 462002c7-7fb7-439a-bde5-6e2285e19af3
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
[Auto-Rename] Renamed 0 vehicles across 0 lines in 0 ms.
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
Thread did not respond to ping. Possible hang detected!
Exception type: Fatal error

Details:

Assertion Failure: Assertion `size2 > 0' failed.

Minidump: C:/Program Files (x86)/Steam/userdata/176499503/1066780/local/crash_dump/462002c7-7fb7-439a-bde5-6e2285e19af3.dmp

In file: urban_games/train_fever/src/Lib/renderer/opengl/tex_load.cpp:239

In function: __int64 __cdecl opengl_util::UploadTexture(class std::unique_ptr<class gli::texture,struct std::default_delete<class gli::texture> >,unsigned int,int)


__CRASHDB_CRASH__ struct AssertException: urban_games/train_fever/src/Lib/renderer/opengl/tex_load.cpp:239: __int64 __cdecl opengl_util::UploadTexture(class std::unique_ptr<class gli::texture,struct std::default_delete<class gli::texture> >,unsigned int,int): Assertion `size2 > 0' failed.
RadiKyle Jan 23 @ 11:10am 
Hi, use pastebin to upload your complete stdout, link it here.

The problem with internal errors like this one is they don't give much info why it's crashing. So the responsibility is on you to figure out which mod is causing the problem by disabling them in batches until it runs ok. Zero in on them by trail-and-error / process of elimination. It takes time but that's the cost of running gobs of mods. 99% of them are fine but there's always that one that causes a trainwreck.

There is a brief mention of "Auto-rename" so you might start with disabling any auto rename mods first.

Also if you haven't already, run Verify game files in Steam to make sure nothing is corrupted.

Edit: also it looks like you're using OpenGL, you can try switching to Vulkan to see if any better.
Last edited by RadiKyle; Jan 23 @ 11:25am
Originally posted by KiddBoston:
[q
A texture ::res/textures/environment/tropical/shadow.dds with compressed format 143 does not have full mipmap chain (7 levels of 10) and is set with a mipmapping min filter. This is not supported. Skipping compression.
A texture ::res/textures/environment/tropical/sun.dds with compressed format 143 does not have full mipmap chain (7 levels of 10) and is set with a mipmapping min filter. This is not supported. Skipping compression.
A texture ::res/textures/environment/tropical/skybox.dds with compressed format 143 does not have full mipmap chain (7 levels of 12) and is set with a mipmapping min filter. This is not supported. Skipping compression.

urban_games/train_fever/src/Lib/renderer/opengl/tex_load.cpp:239: __int64 __cdecl opengl_util::UploadTexture(class std::unique_ptr<class gli::texture,struct std::default_delete<class gli::texture> >,unsigned int,int): Assertion `size2 > 0' failed.
__CRASHDB_DUMP__ 462002c7-7fb7-439a-bde5-6e2285e19af3

Some possible hints to identify the mod responsible for your crash:

Size2 is almost certainly a local variable reading a size attribute of a texture from a mod the game is trying to load and that this variable must be greater than 0 (i.e. a texture must have a size, obviously). Above that we see that it has in fact tried to load three of these textures, named shadow, sun and skybox respectively, and that they are of an unsupported type (that's probably why their size2 = 0 -> crash).

So the culprit is possibly a mod that changes the sky, the sun and the shadows sunlight produces across the game world.

Other potential clues:

Originally posted by KiddBoston:
[NaturalTownGrowth][2025-01-18 15:06:11][INFO] initializing mod...

eatglobal: init [C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2423766470/res/scripts/eatglobal_v2_29.lua] (Version 2.29)

eatglobal: init [C:/Program Files (x86)/Steam/steamapps/workshop/content/1066780/2018758199/res/scripts/eatglobal_v2_26.lua] (Version 2.26)

The assertion fail seems on the face of it to part of the NaturalTownGrowth mod, although why a mod by that name should be messing with the skybox, sun and shadows is beyond me. But you could try disabling that as a first step.

Also you've got two lua script locations here under the <steam game folder>/res/scripts folder. These scripts should be in plain text and loading them into e.g. notepad may enable you to read some clues as to which mod (or mods) is responsible for this crash. They might have comments on them indicating what mod they are from and/or who wrote them for example.

Also as Radikyle points out you might find that just switching to Vulcan fixes the texture load problem.
Last edited by Gregorovitch; Jan 23 @ 2:12pm
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Jan 18 @ 12:09pm
Posts: 4