OpenTTD

Tasklist

FS#1527 - Crash in editor when spawning too many viewports

Attached to Project: OpenTTD
Opened by Bilbo (bilbo) - Tuesday, 11 December 2007, 03:04 GMT
Last edited by Jean-Francois Claeys (Belugas) - Tuesday, 11 December 2007, 11:43 GMT
Type Bug
Category Interface
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In r11616, how to reproduce:

Go to scenario editor.
Start spawning extra viewports (map icon, "Extra viewport"). Once you spawn about 25, openttd asserts ( viewport.cpp, line 179, vp!=endof(_viewports) ) and crashes

When I tried the same in game, it does not crash (oldest viewport simply gets closed). Only in editor.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Thursday, 13 December 2007, 18:45 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r11629.
Comment by Jean-Francois Claeys (Belugas) - Tuesday, 11 December 2007, 11:46 GMT
The Hell if i can understand why, at this point.
The same function is used in both modes to open the viewports.
SO i suspect the scenario mode does not have the same status as game more, regarding windowing system.
I've noticed that in game mode, when at 22 viewports, when clicking on menu, the first viewport disaapear, as if a refresh was been made at that time.
Comment by Jean-Francois Claeys (Belugas) - Wednesday, 12 December 2007, 02:55 GMT
mmhh.. no... in fact, it was requiring a new window slot...
ok, not a good hint.
Comment by Bilbo (bilbo) - Wednesday, 12 December 2007, 11:30 GMT
Well, one difference between game and scenario editor is lack of the lower statusbar with date, company name and available money. Therefore scenario editor have one more usable window, so perhaps this causes the problem (too many usable windows)?

Loading...