TankExporter icon indicating copy to clipboard operation
TankExporter copied to clipboard

Crashing when loading models

Open 1stSavagerY opened this issue 2 years ago • 43 comments
trafficstars

Thank you for helping me with my last issue, but a new one has arisen. When loading models from the right side, the program crashes without loading the model. I have made sure that the file paths are set correctly and I have cleared the temp folder, as well as doing fiddling with some of the settings. I have also tried versions 127, 130, 135, and 138 and all have crashed when I try to load the model.

1stSavagerY avatar Aug 15 '23 04:08 1stSavagerY

the same thing was happening to me before aswell and i fully reset my pc and drivers and it still is broken, i dont know if its because im using amd integrated cpu graphics

Mistromy avatar Aug 15 '23 11:08 Mistromy

I will look in to this. All models or just some?

mikeoverbay avatar Aug 16 '23 11:08 mikeoverbay

Can you post what errors are thrown if any?

mikeoverbay avatar Aug 16 '23 11:08 mikeoverbay

I will look in to this. All models or just some?

It occurs with any model, and I am also unable to import any FBX models to view either. I get no errors, the program just says "Working" on the top right then shuts down.

1stSavagerY avatar Aug 16 '23 15:08 1stSavagerY

I am having the same problem. I also tried using the "export all tanks to fbx" button but the 3d models and texture files were empty.

NatetheGreaterest avatar Aug 16 '23 18:08 NatetheGreaterest

oh my.. OK guys. I will do my best to get this fixed . I will need to find what is causing the root issue but if I can't duplicate the crash, It's going to be a MOFO to find it.

I'll update after some testing.

OK... I just ran this in release mode and there are no errors. I will download and install it from here and test to see if there is something about the install thats broken. I'll be back.

Well.. I deleted the wot_temp folder, uninstalled tank exporter and reinstalled. It loads all the models I tried. It exports FBX with the textures in the folder named after the tank's name, It imports the fbx I just exported perfectly, I asked to extract the data and it did. ALL OF THIS WORKS. :( SO... Lets try a few things.

WOT is installed here : C:\Games\World_of_Tanks_NA

The region is set to NA (This setting is about 1/2 down on the file tab) My video board is a NVIDIA 660 Ti. It is old but I don't game anymore (sucks being 67 and slow) plus its paid for.

Check the log file. There is a button under file to show it. Do this.. Start up TE and try loading a tank. If it crashes, find this file using search Startup_log.txt It is stored in the wot_temp folder my app creates. It may have some info on a possible cause.. If not.. I will add more checks until we find it, OK?

mikeoverbay avatar Aug 20 '23 02:08 mikeoverbay

I cant find the wottemp file. I can send a recording of the program crashing if you want.

NatetheGreaterest avatar Aug 20 '23 05:08 NatetheGreaterest

I started up TE and followed your instructions but unfortunately no files named Startup_log.txt popped up in that folder

1stSavagerY avatar Aug 20 '23 06:08 1stSavagerY

Ok.. Let me make some changes.

mikeoverbay avatar Aug 20 '23 20:08 mikeoverbay

OK... This is where the log_text.txt is.. I changed the name. C:\Users\YOURUSERNAME\AppData\Local\Temp\wot_temp\log_text.txt Download and run the Tank_Exporter_BUGs.msi. After it crashes, find that file and go to the bottom. I need to know how far we got when trying to load the tank.. Thanks for the understanding and help! https://github.com/mikeoverbay/TankExporter/blob/master/Tank_Exporter_BUGs.msi

mikeoverbay avatar Aug 20 '23 22:08 mikeoverbay

This is what I found in the log_text:

----- Startup Complete ----- ======== Model Load Start =========

File name = C:\Games\World_of_Tanks_NA/res/packages/vehicles_level_01-part3.pkg:vehicles/british/GB03_Cruiser_Mk_I

XML path = vehicles\british\GB03_Cruiser_Mk_I.xml

Got XML data for tank

Path of component = vehicles\british\GB03_Cruiser_Mk_I\normal\lod0\Gun_01.model

Path of component = vehicles\british\GB03_Cruiser_Mk_I\normal\lod0\Gun_02.model

Path of component = vehicles\british\GB03_Cruiser_Mk_I\normal\lod0\Turret_01.model

Path of component = vehicles\british\GB03_Cruiser_Mk_I\normal\lod0\Hull.model

Path of component = vehicles\british\GB03_Cruiser_Mk_I\normal\lod0\Chassis.model

After frmComponents.ShowDialog

The whole window then closes by itself

NatetheGreaterest avatar Aug 20 '23 23:08 NatetheGreaterest

OK.. This helps narrow it down. I am adding more traps to drill down deeper in the loading. Please install the BUGs and let me know.. Thanks!

mikeoverbay avatar Aug 21 '23 15:08 mikeoverbay

This is what I see n the log file when TE crashes in the bug version:

----- Startup Complete ----- ======== Model Load Start =========

File name = C:\Games\World_of_Tanks_NA/res/packages/vehicles_level_01-part3.pkg:vehicles/czech/Cz06_Kolohousenka

XML path = vehicles\czech\Cz06_Kolohousenka.xml

Got XML data for tank

Path of component = vehicles\czech\Cz06_Kolohousenka\normal\lod0\Gun_02.model

Path of component = vehicles\czech\Cz06_Kolohousenka\normal\lod0\Gun_03.model

Path of component = vehicles\czech\Cz06_Kolohousenka\normal\lod0\Turret_02.model

Path of component = vehicles\czech\Cz06_Kolohousenka\normal\lod0\Hull.model

Path of component = vehicles\czech\Cz06_Kolohousenka\normal\lod0\Chassis.model

After frmComponents.ShowDialog

started_loading_primitive tank component name: vehicles/czech/Cz06_Kolohousenka/normal/lod0/Chassis.primitives_processed got ordered names Buf filled Section table read .indi_name using table index 3 .vert_name using table index 3 .indi_name using table index 2 .vert_name using table index 2 .indi_name using table index 1 .vert_name using table index 1 .uv2_name using table index 1 .indi_name using table index 0 .vert_name using table index 0 .uv2_name using table index 0

List indi size 2 location data startIndex_ 0 nPrimitives_ 1746 startVertex_ 0 nVertices_ 1565

vh_header BPVTxyznuviiiwwtb read geo data Display list created 1

The window then closes itself

NatetheGreaterest avatar Aug 21 '23 18:08 NatetheGreaterest

im getting the exact same text with the window closing as well

1stSavagerY avatar Aug 21 '23 19:08 1stSavagerY

OK.. Let me do some hunting

mikeoverbay avatar Aug 21 '23 22:08 mikeoverbay

OK.. do it again. Install BUGs and let me know what the log says.

mikeoverbay avatar Aug 21 '23 22:08 mikeoverbay

Btw, up to this point, I have only been copying the tank load up part of the log and not the startup, just thought I would say that.

----- Startup Complete ----- ======== Model Load Start =========

File name = C:\Games\World_of_Tanks_NA/res/packages/vehicles_level_01-part3.pkg:vehicles/sweden/S05_Strv_M21_29

XML path = vehicles\sweden\S05_Strv_M21_29.xml

Got XML data for tank

Path of component = vehicles\sweden\S05_Strv_M21_29\normal\lod0\Gun_01.model

Path of component = vehicles\sweden\S05_Strv_M21_29\normal\lod0\Gun_02.model

Path of component = vehicles\sweden\S05_Strv_M21_29\normal\lod0\Turret_01.model

Path of component = vehicles\sweden\S05_Strv_M21_29\normal\lod0\Hull.model

Path of component = vehicles\sweden\S05_Strv_M21_29\normal\lod0\Chassis.model

After frmComponents.ShowDialog

started_loading_primitive tank component name: vehicles/sweden/S05_Strv_M21_29/normal/lod0/Chassis.primitives_processed got ordered names Buf filled Section table read .indi_name using table index 3 .vert_name using table index 3 .uv2_name using table index 3 .indi_name using table index 2 .vert_name using table index 2 .uv2_name using table index 2 .indi_name using table index 1 .vert_name using table index 1 .indi_name using table index 0 .vert_name using table index 0

List indi size 2 location data startIndex_ 0 nPrimitives_ 4054 startVertex_ 0 nVertices_ 4542

vh_header BPVTxyznuviiiwwtb read geo data Display list created 1

Once again the window crashes

NatetheGreaterest avatar Aug 21 '23 23:08 NatetheGreaterest

Weird, im not sure if the result was supposed to be the same, but the download for the bug version I downloaded is from 5 hours ago when we tested earlier, so did I just test an old version of the bug tester?

NatetheGreaterest avatar Aug 21 '23 23:08 NatetheGreaterest

What I changed was when it draws the the tank parts. Before, It would draw each part and load the next. I did this to see if it was a rendering issue but, it does not look like this is the issue. The bug is somewhere else but it is being narrowed down.

This is the code in that section.

              make_lists(jj)
              frmMain.update_log("Display list created " + jj.ToString)
              _object(jj).find_center() 'must be after pre transform!

              _object(jj).modified = False
              GC.Collect()
              _group(jj).table_entry_name = ordered_names(sg - sub_groups).indi_name

              frmMain.update_log("object created " + jj.ToString)

          Next jj

Each loop should write info to the log_text each time it loads a part of the chassis. It is not and is crashing before it does. Let me add some more writes to the log_text. I'll add a write between each statement and will see where it crashes. It never makes it to the "object created" so it has to be in one of these function calls.

mikeoverbay avatar Aug 22 '23 01:08 mikeoverbay

Try it again.. Sorry :(

mikeoverbay avatar Aug 22 '23 01:08 mikeoverbay

The bugtest.msi download is the same as it was before, but the file at the top of the download page is different, what do I do to update it?

NatetheGreaterest avatar Aug 22 '23 02:08 NatetheGreaterest

uninstall and install the msi. I am not changing versions until we get this fixed, OK?

mikeoverbay avatar Aug 22 '23 03:08 mikeoverbay

Log shows this:

----- Startup Complete ----- ======== Model Load Start =========

File name = C:\Games\World_of_Tanks_NA/res/packages/vehicles_level_01-part3.pkg:vehicles/poland/Pl14_4TP

XML path = vehicles\poland\Pl14_4TP.xml

Got XML data for tank

Path of component = vehicles\poland\Pl14_4TP\normal\lod0\Gun_01.model

Path of component = vehicles\poland\Pl14_4TP\normal\lod0\Gun_02.model

Path of component = vehicles\poland\Pl14_4TP\normal\lod0\Turret_01.model

Path of component = vehicles\poland\Pl14_4TP\normal\lod0\Hull.model

Path of component = vehicles\poland\Pl14_4TP\normal\lod0\Chassis.model

After frmComponents.ShowDialog

started_loading_primitive tank component name: vehicles/poland/Pl14_4TP/normal/lod0/Chassis.primitives_processed got ordered names Buf filled Section table read .indi_name using table index 3 .vert_name using table index 3 .uv2_name using table index 3 .indi_name using table index 2 .vert_name using table index 2 .uv2_name using table index 2 .indi_name using table index 1 .vert_name using table index 1 .indi_name using table index 0 .vert_name using table index 0

List indi size 2 location data startIndex_ 0 nPrimitives_ 4634 startVertex_ 0 nVertices_ 5071

vh_header BPVTxyznuviiiwwtb read geo data Display list created 1

The window then closes

NatetheGreaterest avatar Aug 22 '23 03:08 NatetheGreaterest

I am trying. What video board/chip are you using. Model and memory?

mikeoverbay avatar Aug 22 '23 13:08 mikeoverbay

is the terrain rendering OK?

Ok, I tried Uninstall Tank Exporter, delete WOT temp folder, then again install Tank Exporter, I set paths and load tank...and it crashed. Did you find the log_text.txt file? If so, can you post what the last line is in it?

mikeoverbay avatar Aug 22 '23 14:08 mikeoverbay

This is the one you installed? https://github.com/mikeoverbay/TankExporter/blob/master/Tank_Exporter_BUGs.msi

mikeoverbay avatar Aug 22 '23 14:08 mikeoverbay

I am trying. What video board/chip are you using. Model and memory?

I have an AMD Ryzen 7 3700 3.6 GHz 8-core processor MSI Radeon TX 5700 XT 8 GB Mech OC Video Card

1stSavagerY avatar Aug 22 '23 17:08 1stSavagerY

I also have an rx 570 gpu, with an ryzen 5 5500. I just bought a new laptop, ill try tank exporter on there and see if it works.

NatetheGreaterest avatar Aug 22 '23 18:08 NatetheGreaterest

Well.. If it displays the terrain, it supports display lists. So.. It has to be something with the way the display list is created for the tank models as its crashing immediately after. Tomorrow, I'll look at this and we'll try a few things. Hang in there :)

mikeoverbay avatar Aug 23 '23 00:08 mikeoverbay

Sorry guys.. I got out my crap AMD AIO computer and tried bugs on it. I loads everything but it is throwing a 1281 gl error. In valid value. I am investigating.

mikeoverbay avatar Aug 24 '23 17:08 mikeoverbay