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

Process hangs on Mac OS Catalina with no output #113

Closed
ghost opened this issue Oct 26, 2019 · 13 comments
Closed

Process hangs on Mac OS Catalina with no output #113

ghost opened this issue Oct 26, 2019 · 13 comments

Comments

@ghost
Copy link

ghost commented Oct 26, 2019

Version of OpenTTD

(jgr) 0.32.1

Expected result

OpenTTD opens

Actual result

OpenTTD's icon bounces in the dock indefinitely and spins up the laptop's fans. When run from the Terminal, the process hangs with no output until I quit it with ctrl-c

Steps to reproduce

Compile OpenTTD-jgr from source on MacOS 10.15, and try to run either the app bundle or the terminal executable.

https://youtu.be/7n6_V3lkErM video of the problem

Official (unpatched) OpenTTD works fine.

@ghost
Copy link
Author

ghost commented Oct 27, 2019

iTerm2Sample.txt

Not sure if it helps, but I did a CPU usage profile with iTerm and got this output.

@JGRennison
Copy link
Owner

It may be worth doing a clean rebuild (make clean) and checking that all the libraries/dependencies are up to date if you haven't already.

The usage profile looks to be that of iTerm2 itself.

I don't have access to any machines which run MacOS 10.15 at present, but if one becomes available I'll look into it.

This issue may be relevant OpenTTD/OpenTTD#7623

@ghost
Copy link
Author

ghost commented Oct 29, 2019

This is a clean install of Catalina, with clean installs of all libraries. The issue you linked appears to be due to new security requirements which don't apply to apps compiled from source. Vanilla OpenTTD works fine.

@flow23
Copy link

flow23 commented Nov 4, 2019

Hi, I'm having the same issues since 0.32.1. If you guys need help let me know.
Also did a make clean before running make bundle.

@JGRennison
Copy link
Owner

Would you mind trying with the most recent commit?

@flow23
Copy link

flow23 commented Nov 4, 2019

Hi, sure.
Please find attached the output of running configure and make bundle.
Used the following commit:
47629d6ed9 (HEAD -> jgrpp, origin/jgrpp, origin/HEAD)

configure.txt
make_bundle.txt
warnings.txt

Best regards,
Florian

@JGRennison
Copy link
Owner

JGRennison commented Nov 4, 2019

I don't see anything obviously wrong with the build.

Does this still not work in the same way as previously?
Are there any error logs in the system/event logs or the Mac equivalents?

Edit: Could you run it via lldb and see if that gives any useful information?

@flow23
Copy link

flow23 commented Nov 5, 2019

I don't see anything obviously wrong with the build.

Does this still not work in the same way as previously?
Are there any error logs in the system/event logs or the Mac equivalents?

Edit: Could you run it via lldb and see if that gives any useful information?

Yes, icon is present in the dock and cpu load is 100%.

@flow23
Copy link

flow23 commented Nov 5, 2019

Nothing specific in the logs. Is there a chance to start openttd in debug mode? /bin/openttd -d 1 doesn't work.

openttd_2019-11-05-090119_mac-004.cpu_resource.txt
openttd_used_libs.txt

@JGRennison
Copy link
Owner

JGRennison commented Nov 5, 2019

stack_not_16_byte_aligned_error

This looks like the problem.

It seems that this problem has affected several projects on MacOS Catalina, going by bug reports I've found.
I will add some mitigations to get round this.

@JGRennison
Copy link
Owner

Could you try again with the most recent commit?

@flow23
Copy link

flow23 commented Nov 5, 2019

Could you try again with the most recent commit?

Problem solved, game starts again.
Thank you very much.

Best regards,
Florian

@ghost
Copy link
Author

ghost commented Nov 13, 2019

Fixed for me too. Thanks a lot!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants