Conversation
An OpenGL context can only be used in the same thread. Try |
Ah, thanks! |
a77ea1d
to
a61b1bc
Compare
Updated... seems like there might be some kind of memory leak or something else - I'm getting this error when I run this latest code:
Still looking into it, but it doesn't seem like it's in the python code... not sure whether you have any pointers on debugging! |
Although this never caused issues to us, we probably need to do |
a61b1bc
to
ae9020e
Compare
Tried that out (see code), but still getting the same error! |
I found that you're using the same API instance in different threads concurrently. This is not allowed. If different threads render different houses, it's better to create one API for each thread. |
ae9020e
to
42abef6
Compare
Okay! Updated. It seems to be working just fine now. Thanks a lot for the help! |
Also, I will probably send 2 other pull requests:
|
Cool and thanks a lot! Indeed there are some waste of time at initialization that's specific to our tasks but not useful in general. cc @jxwuyi |
42abef6
to
4e9ce13
Compare
I'm trying to figure out how I can multithread the loading of these houses, since the metadata (JSON) processing in
house.py
is taking the most amount of time when trying to iterate through a lot of houses. I was trying this code out (apologies for being a bit messy, but you can start looking @ L139 oftest-samples.py
). When I run this code, though, it results in a segfault as soon as I start trying to render images (L149). Do you have any idea what I could try to fix this issue?