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 when switching from windowed to fullscreen #80

Closed
DorpsGek opened this issue Mar 20, 2006 · 6 comments
Closed

Crash when switching from windowed to fullscreen #80

DorpsGek opened this issue Mar 20, 2006 · 6 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Vorn opened the ticket and wrote:

When switching from windowed to fullscreen mode through the Game Options menu, OTTD crashes to desktop. I've tried it on r3941, r3974, r3985, and 3988. 0.4.5 does not crash like this.

Here's what gets dumped to console.log:

dbg: [Sl] Cannot open savegame for saving/loading.
Mar 20 02:47:21 Gardner crashdump: Started writing crash report to: /Users/vorn/Library/Logs/CrashReporter/openttd.crash.log
Mar 20 02:47:21 Gardner crashdump: Finished writing crash report to: /Users/vorn/Library/Logs/CrashReporter/openttd.crash.log

Attached is the log of the crash using r3985, downloaded from the nightlies page.

Attachments

Reported version: trunk
Operating system: Mac OS X


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

Vorn wrote:

It also crashes when I move from windowed to fullscreen using ctrl-enter.

Vorn


This comment was imported from FlySpray: https://bugs.openttd.org/task/80#comment140

@DorpsGek
Copy link
Member Author

Bjarni wrote:

let me guess: you are using an Intel based mac and you downloaded the nightly build binary, that is PPC only so it tries to run in Rosetta, right?
I know that there is an issue in fullscreen on non PPC computers, but since I have been unable to tell why, I wrote code for PPC and for Intel. Since the nightly build is for PPC, it looks like it fails on Intel


This comment was imported from FlySpray: https://bugs.openttd.org/task/80#comment141

@DorpsGek
Copy link
Member Author

Vorn wrote:

Nope. Dual G4 1GHz running Panther.

Note that the game can /start/ in full screen and in fact does so currently because that's where I left it last time I played. But I can't /switch/ to fullscreen.

Vorn


This comment was imported from FlySpray: https://bugs.openttd.org/task/80#comment142

@DorpsGek
Copy link
Member Author

Vorn wrote:

...agh, it's even worse than I thought. I can't even load a game using the current nightly, it crashes the same way as switching to fullscreen.

Vorn


This comment was imported from FlySpray: https://bugs.openttd.org/task/80#comment143

@DorpsGek
Copy link
Member Author

Bjarni wrote:

this is indeed a weird one. It crashes when going to fullscreen from 640x480 or 1024x768, but not the other resolutions
also it depend on the old resolution. If the window is 1024x768, it crashes, but if it is 1024x767, it can't find that resolution and decides to use 1024x768 (like it should) and it works. Switching from 800x600 to 480x640 in fullscreen crashed as well

this appears to be linked to the i386 fullscreen crash, since they crash in the same line, so fixing this might remove the need for PPC code and (much slower) i386 code


This comment was imported from FlySpray: https://bugs.openttd.org/task/80#comment144

@DorpsGek
Copy link
Member Author

Bjarni closed the ticket.

Reason for closing: Fixed

fixed in rev 4082


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

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

No branches or pull requests

1 participant