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

Principia DLL won't load on macOS Sequoia #4130

Open
rsparkyc opened this issue Nov 4, 2024 · 12 comments
Open

Principia DLL won't load on macOS Sequoia #4130

rsparkyc opened this issue Nov 4, 2024 · 12 comments

Comments

@rsparkyc
Copy link

rsparkyc commented Nov 4, 2024

image

Additional Context:
Running MacOS Sequoia, followed everything that was listed in discord beginning here:
https://discord.com/channels/319857228905447436/480397772248580098/1129098065563893781

Also started a conversation here about it:
https://discord.com/channels/319857228905447436/480397772248580098/1301195449968885760

note: the SO file never shows up as getting blocked in system settings, and yet I can see the file exists when I look at the path

And apologies, I know you hate mac support :(

@rsparkyc
Copy link
Author

rsparkyc commented Nov 4, 2024

KSP.log

@pleroy
Copy link
Member

pleroy commented Nov 4, 2024

Is there anything like ktrace or truss on macOS? A trace of the system calls that happen when it's trying to launch the game might help.

@rsparkyc
Copy link
Author

rsparkyc commented Nov 4, 2024

So I wrote this script:

#!/bin/bash

# Define the output file
OUTPUT_FILE="ksp_fs_usage.log"

# Start KSP
open -a /Applications/KSP_osx/KSP.app
echo "Launching KSP..."

# Start fs_usage and filter for "KSP", saving the output to a file
echo "Monitoring file and network activity with fs_usage and saving to $OUTPUT_FILE..."
sudo fs_usage | grep "KSP" > "$OUTPUT_FILE"

I've gzipped the output and attached it here: ksp_fs_usage.log.gz


I could also try dtrace, but need to disable system integrity protection for that one.

@rsparkyc
Copy link
Author

rsparkyc commented Nov 4, 2024

Interestingly, I saw these lines in that file:

318469:16:31:27  stat64            /Applications/KSP_osx/KSP.app/Contents/Frameworks/principia.so                   0.000008   KSP
318470:16:31:27  access            /Applications/KSP_osx/KSP.app/Contents/Frameworks/principia.so                   0.000002   KSP

I tried dropping the so file in there, and it seems to have loaded

@rsparkyc
Copy link
Author

rsparkyc commented Nov 4, 2024

image

Seems to work! The question is, why did I need to put in in there?

@rnlahaye
Copy link
Contributor

rnlahaye commented Nov 4, 2024

Oddly, I do see stat64 /Applications/KSP_osx/GameData/Principia/MacOS64/principia.so in the log also.

@rsparkyc
Copy link
Author

rsparkyc commented Nov 4, 2024

Yeah, and the error specifically stated that was what it couldn't find

@rnlahaye
Copy link
Contributor

rnlahaye commented Nov 5, 2024

Silly question: does the file have executable permissions? (What does ls -lh /Applications/KSP_osx/GameData/Principia/MacOS64/principia.so say?)

@rsparkyc
Copy link
Author

rsparkyc commented Nov 5, 2024

it does not:

-rw-rw-r--@ 1 ryancaskey  staff    25M Oct 29 19:11 ./principia.so

after a chmod +x principia.so we get this:

-rwxrwxr-x@ 1 ryancaskey  staff    25M Oct 29 19:11 ./principia.so

however, the problem persists (unless, of course, I drop the unadulterated file into KSP_osx/KSP.app/Contents/Frameworks)

@astro-angelfish

This comment was marked as off-topic.

@pleroy pleroy changed the title Principia DLL won't load Principia DLL won't load on macOS Sequoia Nov 6, 2024
@pleroy
Copy link
Member

pleroy commented Nov 6, 2024

That last comment is some kind of Linux (we are not told which distro), so unrelated to the rest of the issue. I updated the title to clarify that this issue is about macOS.

@astro-angelfish

This comment was marked as off-topic.

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

4 participants