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

Threads need a wrapper for calling detach() #758

Closed
akshayaurora opened this issue Jun 4, 2016 · 7 comments
Closed

Threads need a wrapper for calling detach() #758

akshayaurora opened this issue Jun 4, 2016 · 7 comments

Comments

@akshayaurora
Copy link
Member

akshayaurora commented Jun 4, 2016

Threads that don't exit cleanly can cause a Java Exception.

There should be a wrapper around threads that automatically detaches the thread before exit, avoiding this kind of error.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@ecdsa
Copy link

ecdsa commented Jun 4, 2016

Here is the error I got.
06-02 16:02:14.198 29619 29655 W art : Native thread exiting without having called DetachCurrentThread (maybe it's going to use a pthread_key_create destructor?): Thread[13,tid=29655,Native,Thread*=0xb984afd8,peer=0x12db40a0,"Thread-11803"]

Note that the thread did not raise any python exception. As far as python is concerned, the thread exited cleanly.

@inclement
Copy link
Member

@akshayaurora I'm not familiar with this, is it something that the old toolchain had but is now missing?

@akshayaurora
Copy link
Member Author

No, old toolchain did not have this either.

@zwyuan
Copy link

zwyuan commented Jun 29, 2016

I ran into the same issue too. Please help resolve this, thanks

@suriyan
Copy link

suriyan commented Aug 15, 2016

Please look at :- kivy/pyjnius#107

@ecdsa
Copy link

ecdsa commented Oct 18, 2016

any news on this?

@akshayaurora
Copy link
Member Author

akshayaurora commented Oct 27, 2016

closed by kivy/pyjnius@9838660

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

No branches or pull requests

5 participants