-
Notifications
You must be signed in to change notification settings - Fork 1
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
mac-aarch64 app crashes when run with double click; windows app crashes when installed with .exe #974
Comments
A workaround is to control click, |
removed but still happening |
Crashes for Windows too when run through .exe installer from https://lydavid.github.io/MusicSearch/download.html |
I've tried commenting out that class and all of its usages. The error would change to another class from :shared:domain. |
Adding |
This worked |
Why does Koin work when run with #974 (comment) but not double clicking? |
Related to InsertKoinIO/koin#1639? |
Changing |
Existing issue: https://youtrack.jetbrains.com/issue/CMP-5341 |
Hello there @lydavid , did you find a work around still using the persist database? Or you can just not distribute the app because of this? I am facing the same issue. What did you replace koin with to have it working? And also, how do you debug it cause for me the local installation works fine as well as installing it from Android Studio. Thanks a lot in advance. |
No, I have not been able to distribute with a persisting database. When I temporarily removed Koin for my desktop app to debug this, it worked because I removed SQLDelight. |
Right! I did find a solution, please check what they suggested in this Slack thread. Basically you need to set the path of the database depending on the jvm platform that you are distributing so that the operative system does find it. https://kotlinlang.slack.com/archives/C01D6HTPATV/p1725877136015339 I have used https://github.com/psuzn/multiplatform-paths library to find the cache path independent on the platform and then proceed to use it in the sqldelight driver.
Let me know if it helps. |
…sqlite db in a location that is writable by our app #974 (comment)
Hey, thanks for this detailed response! Sorry, I didn't see this sooner. I've tried your solution locally and it worked perfectly. I'll test the deploy tomorrow and report back. |
…preferences data store in a location that is writable by our app #974 (comment)
I've verified it on Mac and Windows. Thanks again! |
The text was updated successfully, but these errors were encountered: