SteelSeries / gamesense-sdk

472 stars 146 forks source link

Multiple read and write permission errors on Standard user account on macOS 12.4 (Monterey) prevent usage of Steelseries GG and Gamesense SDK #126

Open techygrrrl opened 2 years ago

techygrrrl commented 2 years ago

Using Steelseries GG and implementing Gamesense SDK is not possible on a user with standard permissions on macOS. More about user accounts on macOS here. These permission issues impact the ability to implement the Gamesense SDK.

Is there something I can do to be able to use the Steelseries GG app and Gamesense SDK from my standard user account? As an administrator I've tried overriding the permissions of the /Library/Application Support/SteelSeries GG and /Applications/Steelseries GG directory recursively to allow read/write from all users.

When running Steelseries GG

Steelseries GG is in an infinite loading state.

image

In electron-log.txt:

2022-06-10T03:52:31.871Z: Electron Bootstrap Exited
2022-06-10T03:52:36.255Z: Starting Electron Bootstrap
2022-06-10T03:52:36.898Z: Error: ENOENT: no such file or directory, open '/Library/Application Support/SteelSeries GG/coreProps.json'
    at Object.openSync (node:fs:585:3)
    at Object.func [as openSync] (node:electron/js2c/asar_bundle:5:1800)
    at Object.readFileSync (node:fs:453:35)
    at Object.e.readFileSync (node:electron/js2c/asar_bundle:5:9148)
    at _ (/Applications/SteelSeries GG/SteelSeries GG.app/Contents/Helpers/SteelSeries GG Client.app/Contents/Resources/app.asar/index.js:1:270)
    at /Applications/SteelSeries GG/SteelSeries GG.app/Contents/Helpers/SteelSeries GG Client.app/Contents/Resources/app.asar/index.js:1:12001
    at /Applications/SteelSeries GG/SteelSeries GG.app/Contents/Helpers/SteelSeries GG Client.app/Contents/Resources/app.asar/index.js:1:13879
    at ChildProcess.exithandler (node:child_process:413:5)
    at ChildProcess.emit (node:events:394:28)
    at maybeClose (node:internal/child_process:1064:16)

In gg-errorlog.txt:

[2022/06/09 20:49:48 PDT] [EROR] (github.com/steelseries/gg/pkg/logger.(*log4goLogger).Error:47) ENGINE     | [06/09/22 20:49:48] [EROR] Run-time panic devoured by devour-but-log-panic: Error reading from SteelSeries Apex 7(fw_version_kb) via SendCommand: 0x3f17fa11.

In nw-log.txt:

2022-06-10T03:52:37.539Z: Encountered error on socket connection from (wss://default@127.0.0.1:5000/sock)
2022-06-10T03:52:37.539Z: Encountered error during sockets.setupWebSocketConnection (wss://default@127.0.0.1:5000/sock)
2022-06-10T03:52:37.540Z: TypeError: Failed to fetch
    at Object.submit (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2496847)
    at Object.fetch (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2497298)
Expand for full stack trace of the error in nw-log.txt:

2022-06-10T04:14:26.701Z: caught error during utils/environment: Error: ENOENT: no such file or directory, open '/Library/Application Support/SteelSeries GG/coreProps.json'
2022-06-10T04:14:26.972Z: TypeError: Failed to fetch
    at Object.submit (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2496847)
    at Object.fetch (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2496283)
    at Object.fetch (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:1210918)
    at Object. (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2893006)
    at Object.25689 (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2896203)
    at a (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:4758848)
    at Object.91036 (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2536663)
    at a (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:4758848)
    at Object.76309 (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2532612)
    at a (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:4758848)
2022-06-10T04:14:26.973Z: Encountered error on socket connection from (wss://default@127.0.0.1:5000/sock)
2022-06-10T04:14:26.973Z: Encountered error during sockets.setupWebSocketConnection (wss://default@127.0.0.1:5000/sock)
2022-06-10T04:14:26.975Z: TypeError: Failed to fetch
    at Object.submit (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2496847)
    at Object.fetch (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2497298)
    at Object.u [as init] (file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:2292510)
    at file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:6403923
    at file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:6404576
    at file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:6405344
    at file:///Applications/SteelSeries%20GG/SteelSeries%20GG.app/Contents/Helpers/SteelSeries%20GG%20Client.app/Contents/Resources/app.asar/main.js:2:6405348
2022-06-10T04:14:27.977Z: Encountered error on socket connection from (wss://default@127.0.0.1:5000/sock)
2022-06-10T04:14:27.977Z: Encountered error during sockets.setupWebSocketConnection (wss://default@127.0.0.1:5000/sock)
2022-06-10T04:14:28.980Z: Encountered error on socket connection from (wss://default@127.0.0.1:5000/sock)
2022-06-10T04:14:28.981Z: Encountered error during sockets.setupWebSocketConnection (wss://default@127.0.0.1:5000/sock)

When sending game events

Error writing to SteelSeries Apex 7(disable_gamesense_oled) via SendCommand

When I try to send an event, it fails.

This is the error:

[2022/06/09 20:30:01 PDT] [EROR] (github.com/steelseries/gg/pkg/logger.(*log4goLogger).Error:47) ENGINE     | [06/09/22 20:30:01] [EROR] Handler crashed with error: Error writing to SteelSeries Apex 7(disable_gamesense_oled) via SendCommand: 0x3f17fa11.

I know the issue is not with game registration, event binding, and sending events, because I am able to trigger events and change the lighting of my device via my administrator account.

Environment details:

Let me know if you need anymore info. Thanks!