-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
key too long on macos #178
Comments
I don't know the details, but in general shouldn't this lib allow a second instance rather than completely failing? |
Just to clarify, which version of the kl library are you using? |
Ah sorry, the latest version: 3.5.0 |
It's using shm_open(), this is not a problem on Linux and other unix variants because it uses PATH_MAX, but on macOS the maximum key length is PSHMNAMLEN (31). While the base64 encoded sha256 we use is 44. |
Maximum key size on macOS is PSHMNAMLEN (31). Fixes itay-grudev#178
Unfortunately there seem to be another issue on macOS too, once the application is started and you quit normally, you still can't start it again, so the memory is not released, Qt bug perhaps. |
It solves the issue related to the key size, so the application starts, but there are still issues since the shared memory isn't released. |
@jonaski I documented it as a known issue in the release notes.
|
If someone with a mac has a chance to dig into this more, there is a small test project attached to the Qt bug report on https://bugreports.qt.io/browse/QTBUG-111855 |
With Qt 6.6.0 on macOS version 12.3.1 Intel I get this error on startup:
The text was updated successfully, but these errors were encountered: