Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash to desktop when placing a room. #1583

Open
willmcc opened this issue Feb 21, 2020 · 2 comments
Open

Crash to desktop when placing a room. #1583

willmcc opened this issue Feb 21, 2020 · 2 comments

Comments

@willmcc
Copy link

willmcc commented Feb 21, 2020

Describe the issue

Steps to Reproduce

  1. Load save game attached to this ticket
    You should see that I had just placed an operating theatre.

  2. Click the check icon to confirm placement of the room

  3. On my system, the game is crashing without any error message.

Save Game

It is often useful for us if you have a save game from shortly before the
issue occurs that can be used to recreate the problem. Sometimes a save that
shows the issue happening may be useful as well. As GitHub currently only
supports uploading of images, you will have to upload your your savegames to
an another source such as Google Drive,
Dropbox, or
SkyDrive/OneDrive. Add the link to the file to
your issue and make the file(s) public, so we can access your gamelog or
savegame. The most important thing is to not remove these files after you
uploaded them!

Expected Behavior

I should be able to complete placing the operating theatre and add furniture, etc.

System Information

CorsixTH Version: e.g. 0.50 or 7d886f3
0.63 (also seeing in 0.62)

Operating System: e.g. Windows 10
Windows 10
Theme Hospital Version: CD, GOG.com, Origin, or Demo
CD (re-release around late 1990s, early 2000s)

Gamelog.txt

For information about where to find gamelog.txt see:
https://github.com/CorsixTH/CorsixTH/wiki/Frequently-Asked-Questions#where-do-i-find-the-configuration-or-the-gamelog-file

Paste gamelog.txt output here
Created game with savegame version 127.
Warning: Trying to remove nonexistant room build callback (function: 000001BA6B65C8A0) from humanoid (table: 000001BA71FE5DD0).
Warning: Trying to remove nonexistant room remove callback (function: 000001BA72304E70) from humanoid (table: 000001BA71FE5DD0).
Warning: Trying to remove nonexistant room build callback (function: 000001BA04B51A90) from humanoid (table: 000001BA78F75BC0).
Warning: Trying to remove nonexistant room remove callback (function: 000001BA78031CC0) from humanoid (table: 000001BA78F75BC0).
Warning: Trying to remove nonexistant room build callback (function: 000001BA793ACF20) from humanoid (table: 000001BA7C03ABF0).
Warning: Trying to remove nonexistant room remove callback (function: 000001BA04D6FB20) from humanoid (table: 000001BA7C03ABF0).
Warning: Trying to remove nonexistant room build callback (function: 000001BA78EA8A90) from humanoid (table: 000001BA7BD51DF0).
Warning: Trying to remove nonexistant room remove callback (function: 000001BA044D5130) from humanoid (table: 000001BA7BD51DF0).
Warning: Trying to remove nonexistant room build callback (function: 000001BA79395160) from humanoid (table: 000001BA78F677C0).
Warning: Trying to remove nonexistant room remove callback (function: 000001BA723011E0) from humanoid (table: 000001BA78F677C0).
Savegame version is 127 (v0.62), originally it was 127 (v0.62)
Warning: Trying to remove nonexistant room build callback (function: 00000233F0B6DD70) from humanoid (table: 00000233E9F88980).
Warning: Trying to remove nonexistant room remove callback (function: 00000233F0311760) from humanoid (table: 00000233E9F88980).
Warning: Trying to remove nonexistant room build callback (function: 00000233F0B5ED70) from humanoid (table: 00000233EAAFF8B0).
Warning: Trying to remove nonexistant room remove callback (function: 00000233F0024270) from humanoid (table: 00000233EAAFF8B0).
Warning: Trying to remove nonexistant room build callback (function: 00000233EA01E640) from humanoid (table: 00000233F0155110).
Warning: Trying to remove nonexistant room remove callback (function: 00000233F0BF4CB0) from humanoid (table: 00000233F0155110).
Warning: Trying to remove nonexistant room build callback (function: 00000233F0B5E530) from humanoid (table: 00000233E4A99310).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DC858060) from humanoid (table: 00000233E4A99310).
Warning: Trying to remove nonexistant room build callback (function: 00000233F04A2F20) from humanoid (table: 00000233F062AC30).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DCC9AB10) from humanoid (table: 00000233F062AC30).
Savegame version is 127 (v0.62), originally it was 127 (v0.62)
Warning: Trying to remove nonexistant room build callback (function: 00000233DD074540) from humanoid (table: 00000233DC812950).
Warning: Trying to remove nonexistant room remove callback (function: 00000233847DECA0) from humanoid (table: 00000233DC812950).
Savegame version is 127 (v0.62), originally it was 127 (v0.62)
Warning: Trying to remove nonexistant room build callback (function: 0000023384BCF9F0) from humanoid (table: 000002339ABE8AB0).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DCF448E0) from humanoid (table: 000002339ABE8AB0).
Warning: Trying to remove nonexistant room build callback (function: 0000023384623880) from humanoid (table: 000002339ABED4F0).
Warning: Trying to remove nonexistant room remove callback (function: 000002339B4D1A10) from humanoid (table: 000002339ABED4F0).
Warning: Trying to remove nonexistant room build callback (function: 0000023384622B00) from humanoid (table: 000002339ABEFDF0).
Warning: Trying to remove nonexistant room remove callback (function: 000002339B4E0170) from humanoid (table: 000002339ABEFDF0).
Warning: Trying to remove nonexistant room build callback (function: 0000023384622D40) from humanoid (table: 000002339ABEECB0).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DC84AE20) from humanoid (table: 000002339ABEECB0).
Warning: Trying to remove nonexistant room build callback (function: 0000023384BD1310) from humanoid (table: 00000233F03FD670).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DCF44C10) from humanoid (table: 00000233F03FD670).
Warning: Trying to remove nonexistant room build callback (function: 0000023384BC7A70) from humanoid (table: 000002339ABF98F0).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DD4C2420) from humanoid (table: 000002339ABF98F0).
Warning: Trying to remove nonexistant room build callback (function: 0000023384BDC4D0) from humanoid (table: 000002339ABFA5F0).
Warning: Trying to remove nonexistant room remove callback (function: 00000233EAAABB90) from humanoid (table: 000002339ABFA5F0).
Warning: Trying to remove nonexistant room build callback (function: 0000023384631BC0) from humanoid (table: 00000233F03FDA70).
Warning: Trying to remove nonexistant room remove callback (function: 000002339B38BBC0) from humanoid (table: 00000233F03FDA70).
Warning: Trying to remove nonexistant room build callback (function: 00000233DD0606E0) from humanoid (table: 000002339B538770).
Warning: Trying to remove nonexistant room remove callback (function: 00000233EA034770) from humanoid (table: 000002339B538770).
Warning: Trying to remove nonexistant room build callback (function: 0000023384BC91B0) from humanoid (table: 0000023384AD0770).
Warning: Trying to remove nonexistant room remove callback (function: 00000233F0E41420) from humanoid (table: 0000023384AD0770).
Warning: Trying to remove nonexistant room build callback (function: 000002338461AB20) from humanoid (table: 00000233E496FE30).
Warning: Trying to remove nonexistant room remove callback (function: 00000233EA02B6E0) from humanoid (table: 00000233E496FE30).
Warning: Trying to remove nonexistant room build callback (function: 00000233DD05DCE0) from humanoid (table: 00000233E42C4F10).
Warning: Trying to remove nonexistant room remove callback (function: 00000233E460DA00) from humanoid (table: 00000233E42C4F10).
Warning: Trying to remove nonexistant room build callback (function: 0000023384BE5EF0) from humanoid (table: 00000233EA427830).
Warning: Trying to remove nonexistant room remove callback (function: 0000023383D39420) from humanoid (table: 00000233EA427830).
Warning: Trying to remove nonexistant room build callback (function: 0000023384BD8150) from humanoid (table: 000002339B7FC720).
Warning: Trying to remove nonexistant room remove callback (function: 00000233E47FF040) from humanoid (table: 000002339B7FC720).
Warning: Trying to remove nonexistant room build callback (function: 0000023384631E00) from humanoid (table: 00000233ABE15BA0).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DD245F80) from humanoid (table: 00000233ABE15BA0).
Warning: Trying to remove nonexistant room build callback (function: 00000233846332A0) from humanoid (table: 00000233E497A6B0).
Warning: Trying to remove nonexistant room remove callback (function: 00000233DD250E30) from humanoid (table: 00000233E497A6B0).
Savegame version is 127 (v0.62), originally it was 127 (v0.62)
Warning: Trying to remove nonexistant room build callback (function: 00000214BEB1F7A0) from humanoid (table: 00000214BBF16D70).
Warning: Trying to remove nonexistant room remove callback (function: 00000214AED0D490) from humanoid (table: 00000214BBF16D70).
Warning: Trying to remove nonexistant room build callback (function: 00000214B7EDFF70) from humanoid (table: 00000214BBC97B60).
Warning: Trying to remove nonexistant room remove callback (function: 00000214B7F3C300) from humanoid (table: 00000214BBC97B60).
Warning: Trying to remove nonexistant room build callback (function: 00000214BBA17520) from humanoid (table: 00000214B8010310).
Warning: Trying to remove nonexistant room remove callback (function: 00000214BF334B90) from humanoid (table: 00000214B8010310).
Warning: Trying to remove nonexistant room build callback (function: 00000214BBA172E0) from humanoid (table: 00000214AF7B5DB0).
Warning: Trying to remove nonexistant room remove callback (function: 00000214BC66EAF0) from humanoid (table: 00000214AF7B5DB0).
Warning: Trying to remove nonexistant room build callback (function: 00000214B7EECE70) from humanoid (table: 00000214B7946F70).
Warning: Trying to remove nonexistant room remove callback (function: 00000214BB9A7560) from humanoid (table: 00000214B7946F70).
A patient has a queue action, but is not in the corresponding queue
Warning: Trying to remove nonexistant room build callback (function: 00000214D153AFF0) from humanoid (table: 00000214BB8193D0).
Warning: Trying to remove nonexistant room remove callback (function: 00000214D17B6920) from humanoid (table: 00000214BB8193D0).
Warning: Trying to remove nonexistant room build callback (function: 00000214BEB2C8E0) from humanoid (table: 00000214D1C1EC70).
Warning: Trying to remove nonexistant room remove callback (function: 00000214B79BEF10) from humanoid (table: 00000214D1C1EC70).
Warning: Trying to remove nonexistant room build callback (function: 00000214BEB29DC0) from humanoid (table: 00000214D1C34430).
Warning: Trying to remove nonexistant room remove callback (function: 00000214B5F8E920) from humanoid (table: 00000214D1C34430).
Warning: Trying to remove nonexistant room build callback (function: 00000214D152B210) from humanoid (table: 00000214B800FB90).
Warning: Trying to remove nonexistant room remove callback (function: 000002148B0CEBE0) from humanoid (table: 00000214B800FB90).
Warning: Trying to remove nonexistant room build callback (function: 00000214D153A5D0) from humanoid (table: 00000214BC1FBE80).
Warning: Trying to remove nonexistant room remove callback (function: 00000214B5F9A530) from humanoid (table: 00000214BC1FBE80).
Warning: Trying to remove nonexistant room build callback (function: 00000214D1529F50) from humanoid (table: 00000214D1BED2B0).
Warning: Trying to remove nonexistant room remove callback (function: 000002148B0CE9A0) from humanoid (table: 00000214D1BED2B0).
Warning: Trying to remove nonexistant room build callback (function: 00000214BEB2E320) from humanoid (table: 00000214B845FD70).
Warning: Trying to remove nonexistant room remove callback (function: 00000214B6005040) from humanoid (table: 00000214B845FD70).
Warning: Trying to remove nonexistant room build callback (function: 00000214BEB22D40) from humanoid (table: 00000214D1B38170).
Warning: Trying to remove nonexistant room remove callback (function: 00000214BEB7D290) from humanoid (table: 00000214D1B38170).
Warning: Trying to remove nonexistant room build callback (function: 00000214BBA01A40) from humanoid (table: 00000214BC6FF770).
Warning: Trying to remove nonexistant room remove callback (function: 000002148B0BDE00) from humanoid (table: 00000214BC6FF770).
Warning: Trying to remove nonexistant room build callback (function: 00000214D1537390) from humanoid (table: 00000214B80C1E30).
Warning: Trying to remove nonexistant room remove callback (function: 00000214D117A730) from humanoid (table: 00000214B80C1E30).
Savegame version is 127 (v0.62), originally it was 127 (v0.62)
Warning: Trying to remove nonexistant room build callback (function: 000002393BC6D180) from humanoid (table: 0000023931564260).
Warning: Trying to remove nonexistant room remove callback (function: 0000023931CCE5B0) from humanoid (table: 0000023931564260).
Warning: goHome called when the patient is already going home
Error in timer handler: 
Lua\humanoid_actions\walk.lua:313: assertion failed!
stack traceback:
	[C]: in function 'assert'
	Lua\humanoid_actions\walk.lua:313: in function <Lua\humanoid_actions\walk.lua:251>
	(...tail calls...)
	Lua\humanoid_actions\walk.lua:229: in local 'timer_function'
	Lua\entity.lua:216: in method 'tick'
	Lua\world.lua:1036: in method 'onTick'
	Lua\app.lua:1014: in function <Lua\app.lua:1011>
	(...tail calls...)
	Lua\app.lua:915: in function <Lua\app.lua:910>

Additional Info

Paste any screen shots or other additional information that might help
illustrate the problem.

Theatre - pre crash.zip

@mugmuggy
Copy link
Contributor

On 0.62, the exception appears to be the same one I noticed as I mentioned in #1380 (comment) So at least it should be reproducible now, and its also falling over on 0.63 for me as well.

@mugmuggy
Copy link
Contributor

Got a debug build with

int l_anim_get_tile(lua_State* L) {
  animation* pAnimation = luaT_testuserdata<animation>(L);
  lua_settop(L, 1);
  lua_getfenv(L, 1);
  lua_getfield(L, 2, "map");
  lua_replace(L, 2);
  if (lua_isnil(L, 2)) {
    return 0;
  }
  level_map* pMap = (level_map*)lua_touserdata(L, 2);
  const link_list* pListNode = pAnimation->get_previous();
  while (pListNode->prev) {
    pListNode = pListNode->prev;
  }

with pListNode = null the cause of the exception.

Appears its maybe the wall animations that aren't displayed, pAnimation animation_index is 124.

image

And looks like its #345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants