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

CAD transform 0.9x not compatible with blender 4.x #110

Open
linuxuser63 opened this issue Nov 23, 2023 · 12 comments
Open

CAD transform 0.9x not compatible with blender 4.x #110

linuxuser63 opened this issue Nov 23, 2023 · 12 comments

Comments

@linuxuser63
Copy link

Just downloaded blender 4.0.1 and everytime I open it it crashes. Wrote to blender and they said that based on the info provided it appeared that "slcad_transform" was the issue. I turned CAD Transform off and reloaded BL 4.0.1 and it worked and did not crash. Using CAD Transform 0.95.0

Crash information from command line:
File "/home/lgoldman/.config/blender/4.0/scripts/addons/slcad_transform/init.py", line 63, in
from .slcad_transform import register, unregister
File "/home/lgoldman/.config/blender/4.0/scripts/addons/slcad_transform/slcad_transform.py", line 45, in
from .utils.gpu_draw import (
File "/home/lgoldman/.config/blender/4.0/scripts/addons/slcad_transform/utils/gpu_draw.py", line 401, in
class GPU_2d_uniform(GPU_Draw):
File "/home/lgoldman/.config/blender/4.0/scripts/addons/slcad_transform/utils/gpu_draw.py", line 402, in GPU_2d_uniform
_shader = get_shader('2D_UNIFORM_COLOR')
File "/home/lgoldman/.config/blender/4.0/scripts/addons/slcad_transform/utils/gpu_draw.py", line 85, in get_shader
return gpu.shader.from_builtin(builtin_typ)
ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR', 'POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '2D_UNIFORM_COLOR'
blenderkit updater: Running background check for update
blenderkit addon: Starting background checking thread
blenderkit addon: Checking for update now in background
blenderkit addon: Checking for update function
blenderkit INFO: Global dir permissions are OK. [14:09:15.585, utils.py:1296]
blenderkit addon: Read in JSON settings from file
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

System info:
Operating System: Mageia 9
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.7
Kernel Version: 6.4.16-desktop-3.mga9 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7 CPU 950 @ 3.07GHz
Memory: 23.5 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: X58A-UD5

@s-leger s-leger changed the title CAD transform causes blender 4.0.1 crash CAD transform 0.9x not compatible with blender 4.x Nov 23, 2023
@s-leger
Copy link
Owner

s-leger commented Nov 23, 2023

CAD Transform 0.9x is not compatible with blender 4.x, there are many breaking changes in the blender's API.
You must wait for next release.

@Ossitapa
Copy link

When it is expected to work again? pretty bummed that i bought it just now, and its not working. Should have even mentioned it, before hand..

@s-leger
Copy link
Owner

s-leger commented Nov 27, 2023

Soon, version 2.0 is in closed beta state now.

In facts it is "half - mentioned" in product description.
CAD like transform operations for blender 2.81+ / 2.91+ / 3.0+

With breaking changes like Metal API and known weakness / issues in 0.9.x series it is obvious that simple fixes are not suited anymore to keep it working as expected.
So took the decision to completely rewrite from scratch, and upcoming release will be a true game changer.

@Ossitapa
Copy link

Okay, thanks for a quick reply. I`ll be waiting for this =) Just got in to a blender few weeks ago, and now i found about this thing, and it really seems to be a game changer!

@helour
Copy link

helour commented Nov 28, 2023

Just downloaded blender 4.0.1 and everytime I open it it crashes. Wrote to blender and they said that based on the info provided it appeared that "slcad_transform" was the issue. I turned CAD Transform off and reloaded BL 4.0.1 and it worked and did not crash. Using CAD Transform 0.95.0

System info: Operating System: Mageia 9 KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.7 Kernel Version: 6.4.16-desktop-3.mga9 (64-bit) Graphics Platform: X11 Processors: 8 × Intel® Core™ i7 CPU 950 @ 3.07GHz Memory: 23.5 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: X58A-UD5

Try to change line 402 in the file /home/lgoldman/.config/blender/4.0/scripts/addons/slcad_transform/utils/gpu_draw.py to:
_shader = get_shader('UNIFORM_COLOR')

@linuxuser63
Copy link
Author

Thank you helour. I tried your suggestion, but CAD transform would not open in blender 4.0.1
I appreciate the effort

@fcrbe
Copy link

fcrbe commented Dec 12, 2023

@s-leger Do you have an indication on when you would be releasing v2.0?

@s-leger
Copy link
Owner

s-leger commented Dec 12, 2023

End of this week probably.

@BarryDGleeson
Copy link

Can't wait

@dallinlemon
Copy link

End of this week probably.

@s-leger Do we have any updates on this? Where should we be watching for the latest updates/status?
I am currently really excited to work through the PDT course, but I need to wait until I have the addon working.

@Brinax
Copy link

Brinax commented Dec 26, 2023

End of this week probably.

Can't wait

@s-leger
Copy link
Owner

s-leger commented Jan 6, 2024

Released CAD Transform 2.0 for blender 3.6 / 4.x
https://blender-archipack.gumroad.com/l/emiwtw

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

8 participants