Trying to serialize out-of-bounds array with key 'sector'

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Enjay
 
 
Posts: 26976
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Trying to serialize out-of-bounds array with key 'sector'

Post by Enjay »

Not sure if this is a mapping error, technical error or what. but I keep getting the following on a map that I have been messing around with.

Screenshot because for some reason a log file isn't capturing this error.


It is a map that is part of a hub and the error only happens when returning to the map. If you warp straight to the map it's fine, but if you leave by one of the exits and return, the above appears at the console (though gameplay seems to continue OK).

[edit: The hub thing is a red herring - it's loading the map from a save that is the issue (which is what returning from another map does of course). Simply warping to the map, saving and then loading will cause the errors. [/edit]

The map gets a clean bill of health from UDB.

Any ideas?
User avatar
Enjay
 
 
Posts: 26976
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Trying to serialize out-of-bounds array with key 'sector

Post by Enjay »

Well, I pruned and pruned until I found the problem area. It's something to do with some sectors that I have linked to move as one as part of a lift.

This tiny cutout from the map should show the problem. Start the map, save a game, load the save and check the console. You should get the message. If you don't, reload the game again and the message will probably appear.

No idea I what I have done wrong here, I've used linked sectors loads of times before, but I must have messed up with this particular setup.
Attachments
Serialized.zip
(3.75 KiB) Downloaded 26 times
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Trying to serialize out-of-bounds array with key 'sector

Post by Nash »

It's another case of dangling pointers. In other words, it's an engine bug and this thread should be moved to bugs. :)
User avatar
Enjay
 
 
Posts: 26976
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Trying to serialize out-of-bounds array with key 'sector

Post by Enjay »

Well, that would explain why I couldn't figure out what I'd done wrong. :) Last night I tried all sorts of mapping fixes but there is obviously something about this particular setup that triggers the problem. The only thing that could reliably stop the message appearing was not linking the sectors.

I suppose the good news is that it seems to be easily reproducible with this small example, so it might help in tracking things down. Like I said earlier, sometimes you have to load the save from the example map a couple of times before the issue is triggered but, sooner or later, it should happen.

Thanks for moving it _mental_.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

Re: Trying to serialize out-of-bounds array with key 'sector

Post by _mental_ »

Post Reply

Return to “Closed Bugs [GZDoom]”