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

Sigsegv on loading the model [java and kotlin jvm] #1557

Open
rebokdev opened this issue Apr 13, 2024 · 3 comments
Open

Sigsegv on loading the model [java and kotlin jvm] #1557

rebokdev opened this issue Apr 13, 2024 · 3 comments

Comments

@rebokdev
Copy link

Hello, i have created a basic compose multiplatform desktop app
and i have a LaunchedEffect(Unit) { ... } (launched effect just launches the code as a coroutine
when the UI is ready) in it which loads the vosk
model by creating an instance of Model providing the path

but when i run my code the jvm sigsegv's
if i put vosk model loading
outside of the compose code the same thing happens
only when i remove all compose stuff
then it doesn't sigsegv

from what i checked the
problems could be related to mem
menagement for ex. in every
error log i see free space=1009k
where i have much much more free space

i useed visualvm and i got:
Size: 220,200,960 B

Used: 99,295,008 B

Max: 4,148,166,656 B

I tested it with the polish model and the minimum in size english model

hs_err_pid10904.log

@nshmyrev
Copy link
Collaborator

Hard to guess, you can first check if demo example work for you then add your code gradually.

@rebokdev
Copy link
Author

It works if I don't initialize compose

@rebokdev
Copy link
Author

maybe it conflicts with coroutines?
*as a solution, i'm initializing vosk before compose and then i can use vosk without any problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants