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

Troubles using jnius in a multiprocess environment #640

Open
audetto opened this issue Oct 21, 2022 · 3 comments
Open

Troubles using jnius in a multiprocess environment #640

audetto opened this issue Oct 21, 2022 · 3 comments

Comments

@audetto
Copy link

audetto commented Oct 21, 2022

Hi,

In the office we have tried to use jnius in a multiprocess environment.
This has been very problematic on linux where the whole thing hangs almost always.

In Windows it works.

It seems that if I set python's processes to spawn rather than fork, it works.

Java version does not seem to be relevant (1.8, 1.14, 1.17 all behave the same).
Python 3.6 and 3.8 are affected.

Is this supported at all?

@misl6
Copy link
Member

misl6 commented Oct 21, 2022

Hi @audetto !

Do you have a reproducible example?

@audetto
Copy link
Author

audetto commented Oct 23, 2022

Will try, but so far I can only share a partial call stack

image

jnius has already been initialised in the main process, and the hang is in a forked process, not in the first call to autoclass, but probably the very first real java code executed.

@ramires9
Copy link

ramires9 commented Jun 4, 2024

I would like to be able to use the jnius library in the renpy engine, for visual novels, and even install the files but I don't know where to put them, anywhere I try to put the non-regular renpy when importing

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

No branches or pull requests

4 participants