-
Notifications
You must be signed in to change notification settings - Fork 71
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
Taichi 0.6.4 not working in blender #54
Comments
Thanks for reporting this! I'll take a look later today. |
I’ll add: this error is reproduced in windows 10. |
I took a look at this on Windows and it works well without Blender. I guess debugging this together with Blender is challenging, so I'm afraid that I won't have enough time recently to fix this. I will be occupied at work before May 23, but I'll take a look after that. Meanwhile, if someone else is interested in fixing this, please go ahead. |
Update: this is really hard to debug. After some painful manual testing, I confirm that v0.5.14 works but v0.5.15 doesn't. So it must be caused by some commit between two releases. |
May related to recent added OpenGL? Try disable that? |
I'm not entirely sure if that's related to OpenGL (GLAD etc). A more precise binary search is needed to figure out exactly which commit leads to this behavior. Note that the error happens when we load the |
I just found out a very interesting thing. If you have the Elements addon enabled all the time, you will have Blender crashing upon opening everytime. I tried to install taichi version 0.5.14 since @yuanming-hu said it works. After I opened Blender, I turned the Elements addon off. Then I closed Blender and I installed the latest taichi version again, then run Blender, and this time Blender opened successfully. After that, I went to the "Scripting" workspace and type "import taichi as ti" in the concole and Blender crashed again. Then I opended Blender again, this time I enabled Elements first, and turned it off right after turning it on. Then I went to the "Scripting" workspace, and type "import taichi as ti" in the concole again, this time, it did not crash, it worked. Then I wrote some testing lines (see the screenshot below), they worked. This is very interesting and I think this might help you guys in figuring out the problems so I wrote this post here. P.S. When I tested the "@ti.kernel" functions, it did not work. The screenshot of it is down below. It says"OSError: could not get source code". This is probably unrelated but is there any reason for this? |
Hello, @yuanming-hu I checked this commit: 4c8dad1 |
@EaryChow Thanks for the info. @PavelBlend that looks really cool! Does that mean you can run Taichi in blender now? |
I don't know why, but blender stopped running again. How I managed to launch it last time, I did not understand. This happened by accident. I managed to do an unbounded simulation and even ran blender several times. But now I see this error:
|
This is no accident @PavelBlend , I can bake the same simulation as well. Like what I said, you need to make sure "Elements" is turned off when you are trying to launch blender.exe, and you can turn it on after lauching blender, also you need to remember to turn it off before you close blender as well. If you already have "Elements" turned on and you cannot get blender to launch, I have also mentioned how I managed to get a work around as well. Install taichi 0.5.14 via pip, then launch blender, turn off "Elements" and save preferences, close blender. Then install taichi 0.6.10 back again. |
@yuanming-hu I installed taichi 0.6.16 and it seems the blender started to start. It seems that this problem can be closed. |
Cool! |
I updated taichi in blender and blender started to throw an error:
The text was updated successfully, but these errors were encountered: