-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
[BUG] Crash on creating sketch #395
Comments
Might be the wrong solver, this is the correct one: |
I can confirm that this issue occurs for me as well.
I am using the python-py-slvs AUR package, which uses the same source as the pypi package. Addon Version0.27.2 (latest gumroad download) Blender Version3.6.0 What platform are you running on?Arch Linux 2023-06-27, all packages updated. EditJust after commenting I noticed that the aur package for py-slvs is at version I'll try to install it through pypi and see if it that resolves the problem. Though I'm not sure why the repo doesn't have tags for the other releases of the package. |
Update: the issue is resolved when using py-slvs 1.0.6. I don't know how easy/hard it is to do in python, but I would suggest adding a version check to the addon to see if it's running with the right version of the module. |
yay -S python-py-slvs-git AUR - python-py-slvs-git-1.0.6.r1.gb704719-1 Addon Version Blender Version What platform are you running on? |
Hey sorry I haven't responded to this. I was able to get it working by forcefully installing the pypi package, but with complain from Arch. It is much preferable to use AUR or official Arch packages for python software due to the way the system operates, which is why pressing the "install slvs" button in the settings menu doesn't do anything (it errors when trying to run pip install) |
I'm seeing the same issue on Arch using both the python-py-slvs-git and the python-py-slvs AUR packages (the latter which I maintain so if there's an issue with the package let me know). When I run blender from the command line, I see the following error message which might provide some insight.
|
I can confirm that I get the exact same error with both AUR packages, if I can provide any further help let me know and I will do my best! Blender 3.6.0 CAD Sketcher 0.27.2 |
I'm guessing the package doesn't include the latest fix, see: realthunder/slvs_py@3df1c87 |
Thanks for the heads up. I'll get |
Is there any update regarding the crashing? Blender crashes with version py-slvs 1.0.6 (installed via AUR): blender --log-level 1
Read prefs: "/home/jakobu5/.config/blender/3.6/config/userpref.blend"
Failed to open dir (No such file or directory): /run/user/1000/gvfs/
Traceback (most recent call last):
File "/usr/share/blender/3.6/scripts/modules/addon_utils.py", line 333, in enable
mod = import(module_name)
^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'cad-sketcher'
CAD_Sketcher-main:{INFO}: Logging into: /tmp/CAD_Sketcher-main-jakobu5.log
/usr/include/c++/13.1.1/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Slvs_Constraint; _Alloc = std::allocator<Slvs_Constraint>; reference = Slvs_Constraint&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)
[jakobu5@archlinux ~]$ blender --version
Blender 3.6.0
build date: 2023-07-07
build time: 13:20:07
build commit date: 2023-06-27
build commit time: 08:08
build hash: c7fc78b81ecb
build platform: Linux
build type: Release
[...]
[jakobu5@archlinux ~]$ pip list
Package Version
------------ -------
[...]
py-slvs 1.0.6
[...] |
@Jakobu5 I don't think we've gotten an answer on what the problem is yet. Your error seems to imply that It might be worth reinstalling the |
I have the exact same but with this terminal output as well /usr/include/c++/13.1.1/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Slvs_Constraint; _Alloc = std::allocator<Slvs_Constraint>; reference = Slvs_Constraint&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
[1] 12339 IOT instruction (core dumped) blender |
I think that’s because i’ve enabled the plugin right before clicking on „New Sketch“ in the CAD Sketcher UI. blender --log-level 1
Read prefs: "/home/jakobu5/.config/blender/3.6/config/userpref.blend"
CAD_Sketcher-main:{INFO}: Logging into: /tmp/CAD_Sketcher-main-jakobu5.log
/usr/include/c++/13.1.1/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Slvs_Constraint; _Alloc = std::allocator<Slvs_Constraint>; reference = Slvs_Constraint&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped) The Logfile |
Easiest way to reproduce is with this >>> import py_slvs.slvs
>>> py_slvs.slvs.System().solve()
/usr/include/c++/13.2.1/bits/stl_vector.h:1125: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Slvs_Param; _Alloc = std::allocator<Slvs_Param>; reference = Slvs_Param&; size_type = long unsigned int]: Assertion '__n < this->size()' failed. @chuck-flowers --- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,6 +40,7 @@ prepare() {
build() {
cd "$srcdir/$pkgname"
+ export CXXFLAGS="-U_GLIBCXX_ASSERTIONS"
python setup.py build
} Reason: I believe the offending line is in the python-C++ interface. https://github.com/realthunder/solvespace/blob/526a260b0c45586c0319de208fd7e97c43c49bf4/src/swig/slvs_swig.hpp#L51 . It's the only place in the project with an std::vector of Constraints. When there are no constraints yet added, that [0] access should fail. |
Still having this issue as well. Downloaded the latest CAD sketcher (0.27.2), and different versions of |
@vitrvvivs Thanks for sharing this. I wonder if the default values |
@vitrvvivs sorry for the delay in getting back to this. Your solution with the If anyone else has any problems they believe could be related to my package, let me know. |
Contact Details
hihi.fernguy@gmail.com
Description
Just installed on Arch linux, installed the pip module with
paru -S python-py-slvs
(rather than using pip as advised by Arch), and am getting a crash while attempting to create a sketch in the sidebar.I get this error in my console when it crashes
Addon Version
0.27.2 - latest
Blender Version
3.5.1
What platform are you running on?
Linux
The text was updated successfully, but these errors were encountered: