Single Player bugs and crashes v38 plus (SVN) - After the 20th of February 2018

Just started a new game with SVN 10476 and got a CTD about 3 turns in. Haven't even saved a game yet. I cleared the cache before starting the new game.
 
heres fix for partisans spawning on water just remove the .txt at the end also the global warming code is running. Is it active in game in any way?
 

Attachments

  • Partisan.py.txt
    23.6 KB · Views: 59
  • GlobalWarming.txt
    13.3 KB · Views: 70
heres fix for partisans spawning on water just remove the .txt at the end also the global warming code is running. Is it active in game in any way?
@Dancing Hoskuld and @Toffer90

Python powers go!

@MattCA : Are you considering joining us on the team? I need this project to be reviewed here but this is the second project you've been working on here and if you're looking to join us to help with some refinements I would like to consider adding you to the mod team. Clearly, you have skills and could be a very good SDK/Python dual operative which we don't have a lot of.
 
again above NEW game NO ppio. .

ok, another CTD, i tried upgrading an adventurer to chaser and POOF CTD ,,mini and saved in zip
Fixed.

As I said at some point earlier a while back, there are some tags that were made for this that haven't been tested until now. One of them did have an issue. Could find more to come but this fix was super easy and after done, your game played through the upgrade and 4 rounds afterwards at least.
 
ha I got u fooled eh? im just amateur trying to learn. I glanced at the last update. slim chance id figure that out before you
 
ha I got u fooled eh? im just amateur trying to learn. I glanced at the last update. slim chance id figure that out before you
I'm no trained nor educated programmer myself - I taught myself with the help of others here, everything I know. Just takes practice. I've always got more to learn too. Point is, this is a perfect self-training exercise if you're trying to learn and develop and none of us are professionals - well, a few of the elders that worked on this for a time were.


NOTE TO THE TEAM: I've found another crash spot and am actively hunting it down now.
 
There might be a rare CTD happening when units loose promotions.

A work mule lost the self heal 1 promotion because it no longer had a required combat class. But the ai choose the same promotion as replacement for the lost promotion. The unit lost the promotion again and the same promotion was taken again...............................................................

That became a infinite loop and caused an crash in the ntdll.dll.

I'am not 100% certain about the details because it happened in one of the saves i requested and since it's a big game running it with the debug dll takes forever.

Looks like the same issue as last time with the ntdll.dll where there's corrupt or missing art files...

Crashes happen without autorun too....
There is a lot of errors in resmgr...

Spoiler :

RESMGR: Texture Wheat_farm_base.dds failed to load
RESMGR: Texture shrine_Water_GLOSS.dds failed to load
RESMGR: Texture shrine_Water_GLOSS.dds failed to load
RESMGR: Texture Art/Interface/MainScreen/CityScreen/slave_sanitation.dds failed to load
RESMGR: Texture Art/Interface/MainScreen/CityScreen/slave_crime_prevention.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture AnimalTeeth.dds failed to load
RESMGR: Texture morningstar.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture AnimalTeeth.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture hatshepsut_diff_gloss.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture FlagDECAL.dds failed to load
RESMGR: Texture PlayerColor01.tga failed to load
RESMGR: Texture PlayerColor02.tga failed to load
RESMGR: Texture FlagDECAL.dds failed to load
RESMGR: Texture PlayerColor01.tga failed to load
RESMGR: Texture PlayerColor02.tga failed to load
RESMGR: Texture FlagDECAL.dds failed to load
RESMGR: Texture PlayerColor01.tga failed to load
RESMGR: Texture PlayerColor02.tga failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture Ibex_Beard.dds failed to load
RESMGR: Texture ele_blink03.dds failed to load
RESMGR: Texture BigCatRR_blink02.dds failed to load
RESMGR: Texture cow_blink.dds failed to load
RESMGR: Texture Mongol_Swordsman_128_GLOSS.dds failed to load
RESMGR: Texture Mongol_Swordsman_128.dds failed to load
RESMGR: Texture wcape.dds failed to load
RESMGR: Texture wcape_gloss.dds failed to load
RESMGR: Texture axeman_gloss.dds failed to load
RESMGR: Texture axeman_128.dds failed to load
RESMGR: Texture horns.dds failed to load
RESMGR: Texture horns_gloss.dds failed to load
RESMGR: Texture lotr_shield.dds failed to load
RESMGR: Texture lotr_shield_gloss.dds failed to load
RESMGR: Texture heavyaxe.dds failed to load
RESMGR: Texture heavyaxe_gloss.dds failed to load
RESMGR: Texture berseker.dds failed to load
RESMGR: Texture berseker_gloss.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture guanaco_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink_blank.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture AnimalTeeth.dds failed to load
RESMGR: Texture hutia_blink.dds failed to load
RESMGR: Texture Sloth_blink02.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink_blank.dds failed to load
RESMGR: Texture tiger_blink_blank.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture cuscus_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture Anteater_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture BigCatRR_blink02.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink_blank.dds failed to load
RESMGR: Texture Emu_Crest.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture plantation2a.dds failed to load
RESMGR: Texture Environmental_Gray2.dds failed to load
RESMGR: Texture bag.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture scout_fringe_128X16.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture WarElephant_Carthage_gloss.dds failed to load
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Failed loading file . Error message: A file I/O error occurred.
RESMGR: Texture tiger_blink.dds failed to load
RESMGR: Scene file failed to load. Reason: (code:1) Cannot open file. (X1000)


Sometimes not even dmp file is left.

I'm not sure if its fault of outdated debug DLL, but it keeps screaming: "Illegal use of Python on background thread"
Here is autosave.

This is a sampling of what I got when I started searching for the term ntdll because I was finding the crash I'm trying to figure out is a crash there after my last unit moves in a round. You cannot see the code lines in the ntdll section and usually it means an art problem or so it's been said, perhaps related to those 'harmless' error messages. I began to suspect that we might have a problem that goes a lot deeper than my recent traits addition. So I turned off my module and started a game without the option. In about the same amount of time I got the same crash.

Something is desperately wrong here and its been around for a while. I'm not sure what, exactly, to do about it. Perhaps it's the same crashes that Whisperr was facing a few months ago that I thought was memory based? Not sure but this has been a major problem for a while and it's beyond my ability to fix. At least for now. I have no idea what to do about this other than refer to the people in the previous conversations that seem to understand more what needs to be done. It didn't seem to be an issue with promotion assignments as Alberts2 found but it does appear to be an infinite loop through a bad reference in ntdll that doesn't take all that long to stack overflow and crash out. Can't fix this from the code because everything seems to run fine until a long period in the code darkness begins and this isn't even fully repeatable, which is REALLY weird!

Theories anyone?

@AIAndy? @alberts2? @Sparth?
 
Still CTD upon selecting Update DLL in the pop up box. And yes, just downloaded SVN 10479. This CTD has now happened 5 times at this spot.
My saved game loaded and worked great last evening - then this morning I went from SVN 10469 to 10476...

Just tried starting a new Custom Scenario game (after clearing the cache) and CTD upon loading...

Just start another new game (after clearing cache) and got 5 turns before CTD (7 times now).

Would someone point me to some directions on how to revert to SVN 10468?
 
Last edited:
your game played through the upgrade and 4 rounds afterwards at least.
correct then after the 5th turn POOF, CTD
mini and save in zip
 

Attachments

  • MiniDump_10471.zip
    474.5 KB · Views: 131
Still CTD upon selecting Update DLL in the pop up box. And yes, just downloaded SVN 10479. This CTD has now happened 5 times at this spot.
My saved game loaded and worked great last evening - then this morning I went from SVN 10469 to 10476...

Just tried starting a new Custom Scenario game (after clearing the cache) and CTD upon loading...

Just start another new game (after clearing cache) and got 5 turns before CTD (7 times now).

Would someone point me to some directions on how to revert to SVN 10468?

Actually 10469 is stable. It's the version I'm using for my Civics testing.

To Revert go to your Caveman2Cosmos SVN repository right click the SVN folder. Select Show Log, let it fill. Once you have the Log window filled, then scroll down to the version you want and highlight it. ( I suggest 10469 over 10468.) Then Right click that version. From the Pop up menu select Revert to this version. Follow the Prompts.
 
Actually 10469 is stable. It's the version I'm using for my Civics testing.
If that's true then the problems we're looking at have nothing to do with the xml changes and it's entirely in something happening in the display stuff, which is very strange since the pedia can display every line without a problem. By turning off my module and option and still having these crash problems, I've eliminated 99% of 10470 from the equation and the last 1% that's left has been proven stable.

Well, perhaps there are some other minor areas changed in the code - I'll have to do some compares to see if anything stands out.

Anyhow, that helps to know. I'll keep looking when I can. Might take a few years since it's basically flying completely blind and taking random guesses to try to figure out where the bug might be.

I really hate these ntdll crashes.

What I really want to know is back when we were experiencing an .ntdll crash previously, @alberts2 managed to figure out what was making it happen. I want to know how he did that because I'm seeing absolutely no clues here that I know how to look for.
 
maybe I missed something but module off and still same crash means dll problem no? my moneys on GameTextManager.cpp ive broke my dll with that b4. maybe its worth trying a game with previous versions dll.
 
To Revert go to your Caveman2Cosmos SVN repository right click the SVN folder. Select Show Log, let it fill. Once you have the Log window filled, then scroll down to the version you want and highlight it. ( I suggest 10469 over 10468.) Then Right click that version. From the Pop up menu select Revert to this version. Follow the Prompts.


Thx JosEPH !!! Very helpful
 
If that's true then the problems we're looking at have nothing to do with the xml changes and it's entirely in something happening in the display stuff, which is very strange since the pedia can display every line without a problem. By turning off my module and option and still having these crash problems, I've eliminated 99% of 10470 from the equation and the last 1% that's left has been proven stable.

Well, perhaps there are some other minor areas changed in the code - I'll have to do some compares to see if anything stands out.

Anyhow, that helps to know. I'll keep looking when I can. Might take a few years since it's basically flying completely blind and taking random guesses to try to figure out where the bug might be.

I really hate these ntdll crashes.

What I really want to know is back when we were experiencing an .ntdll crash previously, @alberts2 managed to figure out what was making it happen. I want to know how he did that because I'm seeing absolutely no clues here that I know how to look for.
I'm testing with debug dll (I removed PPIO for a time).

Code:
Traceback (most recent call last):

  File "CvScreensInterface", line 1376, in forceScreenRedraw

  File "CvMainInterface", line 1359, in redraw

  File "CvMainInterface", line 1870, in updatePlotListButtons

  File "CvMainInterface", line 1959, in updatePlotListButtons_Common

RuntimeError: unidentifiable C++ exception
ERR: Python function forceScreenRedraw failed, module CvScreensInterface
Got this error when I clicked on units as first thing on game start.

Got assert errors during AI autoplay, but it seems to be harmless:
Code:
Assert Failed

File:  CvPlayer.cpp
Line:  15981
SVN-Rev:  10471
Expression:  getAssets() >= 0
Message: 

----------------------------------------------------------

Assert Failed

File:  CvCityAI.cpp
Line:  4544
SVN-Rev:  10471
Expression:  false
Message:  

----------------------------------------------------------
 
Last edited:
The game seems to crash at random every 3 to 5 turns, added the latest autosave and minidump
 

Attachments

  • auto.zip
    453.3 KB · Views: 144
The game seems to crash at random every 3 to 5 turns, added the latest autosave and minidump
I guess he made random typo somewhere in code.

Game crashed when viewing city.
 

Attachments

  • MiniDump_10471.rar
    12.3 KB · Views: 133
Last edited:
maybe I missed something but module off and still same crash means dll problem no? my moneys on GameTextManager.cpp ive broke my dll with that b4. maybe its worth trying a game with previous versions dll.
Traceback (most recent call last): File "CvScreensInterface", line 1376, in forceScreenRedraw File "CvMainInterface", line 1359, in redraw File "CvMainInterface", line 1870, in updatePlotListButtons File "CvMainInterface", line 1959, in updatePlotListButtons_Common RuntimeError: unidentifiable C++ exception ERR: Python function forceScreenRedraw failed, module CvScreensInterface
That's interesting. I was looking at some things in CvScreensInterface but there were no changes made there in the end.
I guess he made random typo somewhere in code.
Do you have reason to believe this or just a hunch?
Got assert errors during AI autoplay, but it seems to be harmless:
Probably true. The first one has been around for a long time and had never been an issue. The second is not uncommon either and I don't think actually reflects a real problem but it's worth looking at further just to make sure.

As for when crashes are taking place, if it's the ntdll crashes I'm finding, they seem to be able to take place any time so the timing isn't helping there. It's not random when it happens but it's something to do with stuff happening outside the dll so I don't know what is leading to it. I tried to go from the last known things taking place in the DLL and everything is fine until it leaves the DLL entirely for a bit.
 
Do you have reason to believe this or just a hunch?
Just a hunch. When I try to load his save with debug DLL, it crashes when loading though - its repeatable crash on load.
With normal DLL it loaded just fine but crashed on city view.

This save suddenly has troubles loading on normal DLL too...
 
Last edited:
the "Wait till End of Turn" is not working, keeps going till either u need to build something that isnt there yet, or a unit needs to go to next spot to do something?? otherwise it just keeps going, on, and on, and on etc etc .. .

newest SVN at least now i am just past 50 turns, yeah , , lol
 

Attachments

  • wait.JPG
    wait.JPG
    199.9 KB · Views: 142
the "Wait till End of Turn" is not working, keeps going till either u need to build something that isnt there yet, or a unit needs to go to next spot to do something?? otherwise it just keeps going, on, and on, and on etc etc .. .

newest SVN at least now i am just past 50 turns, yeah , , lol
Was this reported before or is it new with this latest dll?
 
Top Bottom