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 in editor when spawning too many viewports #1527

Closed
DorpsGek opened this issue Dec 11, 2007 · 4 comments
Closed

Crash in editor when spawning too many viewports #1527

DorpsGek opened this issue Dec 11, 2007 · 4 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

bilbo opened the ticket and wrote:

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.

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/1527
@DorpsGek
Copy link
Member Author

Belugas wrote:

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.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1527#comment2937

@DorpsGek
Copy link
Member Author

Belugas wrote:

mmhh.. no... in fact, it was requiring a new window slot...
ok, not a good hint.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1527#comment2949

@DorpsGek
Copy link
Member Author

bilbo wrote:

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)?


This comment was imported from FlySpray: https://bugs.openttd.org/task/1527#comment2960

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r11629.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1527

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant