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

Releases from version 1.10.1 no longer work on mid-2007 iMac #8194

Open
erenes opened this issue Jun 6, 2020 · 3 comments
Open

Releases from version 1.10.1 no longer work on mid-2007 iMac #8194

erenes opened this issue Jun 6, 2020 · 3 comments

Comments

@erenes
Copy link

@erenes erenes commented Jun 6, 2020

Version of OpenTTD

1.10.1

Expected result

The game can be played.

Actual result

The game crashes on start.

Steps to reproduce

Try to run the game.

This issue is likely different from other crashes (#8066) that have been reported from 1.10.0 onwards, as this version (and all nightlies that I have tried between end of march and now) run fine on my machine.

After an extended debugging and reverse engineering session, I found that when crashing, the exception raised is: "EXC_BAD_INSTRUCTION".

The instruction being executed at that point is "PINSRQ", which is an SSE4 instruction and my processor only supports instructions up to SSE3.

Since it's such an old system (and I literally only took it off the shelf to investigate the other crash issue), I don't think this is a high priority issue. If other people also have this specific issue it could be worth looking into compiler flags to avoid SSE4.

@James103
Copy link
Contributor

@James103 James103 commented Jun 13, 2020

@erenes Have you ever tried other versions of OpenTTD (1.9.x, 1.10.0, and 1.10.2) to see if they run fine on your system (the same one you're trying to run OpenTTD 1.10.1 on)?

@nielsmh
Copy link
Contributor

@nielsmh nielsmh commented Jun 13, 2020

Have you tested 1.10.0-RC1? A potential cause might be #8028 which changed the compiler used to build Mac releases with.

Also try the nightly builds around the date that PR was merged:
March 6th
March 13th
March 14th

@erenes
Copy link
Author

@erenes erenes commented Jun 13, 2020

I have tested a lot of nightlies: 31 March, 7, 8, 10, 12, 26 April. They all worked.
The release versions however: 1.10.0 worked fine. 1.10.1 and 1.10.2 did not.

Also, if I build the source code on my mac for 1.10.1 or 1.10.2, it works fine. So it's probably something in the optimization done by the compiler on the build machine.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.