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

"Abort trap: 6" on run.sh #9

Open
antoinefrancispierre opened this issue Aug 17, 2021 · 7 comments
Open

"Abort trap: 6" on run.sh #9

antoinefrancispierre opened this issue Aug 17, 2021 · 7 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@antoinefrancispierre
Copy link

Hey,

On MacBook Air M1 2020 running macOS Big Sur 11.5:

  • System Integrity Protection status: disabled
  • build.sh has been changed: python3 shockemu.py $1
  • Running the build gives a warning but is creating new iohid_wrap.dylib, iohid_wrap.m and mapKeys.h:
iohid_wrap.m:64:35: warning: cast to smaller integer type 'unsigned int' from 'IOHIDDeviceRef _Nonnull' (aka 'struct __IOHIDDevice *') [-Wpointer-to-int-cast]
        printf("IOHIDDeviceOpen %08x\n", (unsigned int) device);
                                         ^~~~~~~~~~~~~~~~~~~~~
1 warning generated.

However, when I execute the run script, I get:

./run.sh: line 3: 3172 Abort trap: 6 DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=iohid_wrap.dylib /Applications/RemotePlay.app/Contents/MacOS/RemotePlay > /dev/null 2>&1

For information, I can manually start RemotePlay using this command: /Applications/RemotePlay.app/Contents/MacOS/RemotePlay

PS: is this soft only working with RemotePlay? How can I make it to work with any other app using the PS4 DualShock?

Thanks for your help!

@backslash-f backslash-f added bug Something isn't working help wanted Extra attention is needed M1 labels Aug 17, 2021
@backslash-f backslash-f removed the M1 label Aug 17, 2021
@backslash-f backslash-f changed the title [M1] "Abort trap: 6" on run.sh "Abort trap: 6" on run.sh Aug 17, 2021
@backslash-f
Copy link
Owner

backslash-f commented Aug 17, 2021

I'm getting the exact same error on macOS 12 (not a M1 machine). It's not M1 related. I don't know how to fix it yet.

is this soft only working with RemotePlay?

Yes.

How can I make it to work with any other app using the PS4 DualShock?

It may be possible. I've never tried myself. Maybe start by adding the app you want to control in run.sh, instead of /Applications/RemotePlay.app/Contents/MacOS/RemotePlay. But I'm not sure that would work.

@backslash-f
Copy link
Owner

(BTW that warning was just fixed in master.)

backslash-f pushed a commit that referenced this issue Aug 17, 2021
 - ... which was causing the app to crash.
 - Relates to #9.
@backslash-f
Copy link
Owner

backslash-f commented Aug 17, 2021

Could you try again with latest master? I just pushed some changes. 👆🏻

@antoinefrancispierre
Copy link
Author

I just tried again. The first time SIP was enabled and I could build and run but my keyboard wasn't interacting as a DualShock on the RemotePlay app. So I disabled SIP again and now I'm facing the same error:

./run.sh: line 3: 2915 Abort trap: 6 DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=iohid_wrap.dylib /Applications/RemotePlay.app/Contents/MacOS/RemotePlay > /dev/null 2>&1

@backslash-f
Copy link
Owner

Thanks for checking. I'll try again later on when I'm at home.

@backslash-f
Copy link
Owner

Yeah, no dice. Still crashing on me too... Let's keep this one open so others can jump in. 🔨

@backslash-f
Copy link
Owner

Depends on #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants