Skip to content

Conversation

@Liozou
Copy link
Contributor

@Liozou Liozou commented Sep 24, 2025

Fix #586 by implementing something akin to #586 (comment). The idea consists in forwarding the content of propertynames(::Py) to a task that is forced to run on the main thread.

Tested on julia 1.10, 1.11 and 1.12.0-rc2 with different number of default/interactive threads.

Since they are duplicates, also close #591, close #611 and close #631.

@Liozou
Copy link
Contributor Author

Liozou commented Oct 13, 2025

Bump. Tentatively pinging @cjdoris if you don't mind?
With julia 1.12 being released with one default thread and one interactive thread by default, the risk of segfault is increasing, see for instance #586 (comment).

@cjdoris cjdoris merged commit 6f3d45e into JuliaPy:main Oct 16, 2025
15 of 16 checks passed
@cjdoris
Copy link
Collaborator

cjdoris commented Oct 16, 2025

Thank you. I was hesitant but I've merged it as a sticking plaster for now - you're right that these crashes are now difficult to avoid on Julia 1.12.

I just opened #697 as a more drastic solution to this (but also to enable multi-threading more generally).

@Liozou
Copy link
Contributor Author

Liozou commented Oct 16, 2025

Great, thank you! Of course I'm more than happy to see this removed later for a more general solution, but if it can at least ensure that no crash occurs in the middle of an innocent REPL session in the meantime, that's already a clear win.

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

Labels

None yet

Projects

None yet

2 participants