System Information
Windows 10 Home (Swedish language)
GTX 1070
Blender Version
Broken: 2.78c
Worked: 2.77a (on windows 7)
Short description of error
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x85 in position 3: invalid start byte
Exact steps for others to reproduce the error
Start blender. Rename default cube to Låda (any name with lowercase åäö will do). User preferences->Addons-> Add Curve: Sapling Tree Gen.
Shift-A->Curve->Sapling Tree Gen.

blender_sapling_error.blend451 KBDownload
Event Timeline
Comment Actions
I was able to replicate this, but inconsistently. Can anyone confirm if this is a blender issue or something addons need to handle themselves. If it’s the addon then how do I fix it?, because I do not know what’s causing this.
Comment Actions
I have a workaround that uses base64 to pass the string through the addon. It lets you choose the objects but still doesn’t show the correct object name in the menu.
Comment Actions
hi testing this (following exact reproduce from op) I was able to get the error using the presets & also in ui.
adding
to the file header (line1) in __init__.py & utils.py
& I cannot reproduce the issue
will commit fix soon
Comment Actions
awesome, I didn’t know file encodings could cause things like this. Its a lot better than my ugly workaround. thanks.
$begingroup$
The problem occured unexpectedly and appears only in one particular .blend file. After shift-a then curve>sapling tree gen no new object is created. Info shows up, pointing three lines in py’s and that one object «Cube.013_Cube.000» is not visible (?) or simply missing.

I tried making a copy of that file, then deleting all objects and seeing if it helps, gives the same info.
I tried downloading different blender version and still in that one particular file add on seems to have problem, in any other .blend it works perfectly.
asked Mar 7, 2019 at 21:11
![]()
$endgroup$
$begingroup$
I have found many interesting things
objects supposedly not being invisible in RenderLayer were not visible in any view, moreover, in the outliner. I tried searching for them by trying to append anything, from another .blend blank file. I suprisingly found that a lot of mesh data was in the scene, but it wasn’t connected to any object, thus confusing the add on py’s. After cleaning not used, hidden mesh data, add on started working properly.
answered Mar 7, 2019 at 21:45
![]()
$endgroup$
This started not as a real and proper answer, but to demonstrate that at least on 2.76b, with Sapling 0.2.6, sapling addon worked as you would expect:

So, I suggested you to detail exact blender and sapling versions you are trying. It could also be a bug or a changed behavior…
Meanwhile, I found a 2.79rc2 lying on my disk, so tried also launching Blender-softwaregl (opengl sw emulation due to my crappy notebook), here the addon is named «Sapling Tree Gen», version 0.3.3, it behave like you said: the tree is always at grid origin, no matter where the 3d cursor is.
It seems that there was a big change from 0.2.6 to 0.3.2 labeled as a «major rewrite», I guess starting just before 2.78 release, see this diffusion page.
But, good news! Browsing the sources on that page, I found a single line that reverts the behavior of sapling 0.3.3 to how it was in 0.2.6
-
find the file
<blender install folder>/2.79/scripts/addons/add_curve_sapling/utils.py -
go to line 1604, it should be like
#treeOb.location=bpy.context.scene.cursor_location attractUp -
change it to
treeOb.location=bpy.context.scene.cursor_location #attractUp -
save the file
- (if it was open, close and) start Blender
- now sapling should behave as it did in 2.76 🙂

Note: I’ve later found a comment by the addon developer stating that he did
«Fix Armature, Tree location generation to 0,0,0 (this was causing fails with armature weights & probably pruning)»
So, use this with caution, and revert if necessary…
This started not as a real and proper answer, but to demonstrate that at least on 2.76b, with Sapling 0.2.6, sapling addon worked as you would expect:

So, I suggested you to detail exact blender and sapling versions you are trying. It could also be a bug or a changed behavior…
Meanwhile, I found a 2.79rc2 lying on my disk, so tried also launching Blender-softwaregl (opengl sw emulation due to my crappy notebook), here the addon is named «Sapling Tree Gen», version 0.3.3, it behave like you said: the tree is always at grid origin, no matter where the 3d cursor is.
It seems that there was a big change from 0.2.6 to 0.3.2 labeled as a «major rewrite», I guess starting just before 2.78 release, see this diffusion page.
But, good news! Browsing the sources on that page, I found a single line that reverts the behavior of sapling 0.3.3 to how it was in 0.2.6
-
find the file
<blender install folder>/2.79/scripts/addons/add_curve_sapling/utils.py -
go to line 1604, it should be like
#treeOb.location=bpy.context.scene.cursor_location attractUp -
change it to
treeOb.location=bpy.context.scene.cursor_location #attractUp -
save the file
- (if it was open, close and) start Blender
- now sapling should behave as it did in 2.76 🙂

Note: I’ve later found a comment by the addon developer stating that he did
«Fix Armature, Tree location generation to 0,0,0 (this was causing fails with armature weights & probably pruning)»
So, use this with caution, and revert if necessary…
- В этой теме 0 ответов, 1 участник, последнее обновление 11 месяцев, 2 недели назад сделано
victor59.
Просмотр 1 сообщения — с 1 по 1 (всего 1)
-
Автор
Сообщения
-
Добрый день! Моя версия Блендер 2.93.6 После активации адона Sapling Tree Gen, при попытке его применить создается ствол дерева но окно слева внизу не активно! При попытке что либо изменить в нем, программа закрывается. Помогите пожалуйста разобраться в проблеме. С уважением Виктор.
-
Автор
Сообщения
Просмотр 1 сообщения — с 1 по 1 (всего 1)
- Для ответа в этой теме необходимо авторизоваться.
Авторизация



Рубрики
- Анимация и риггинг
- Загрузки
- Материалы и текстуры
- Моделирование и скульптинг
- Новости и обзоры
- Основы Blender
- Рендеринг и освещение
- Симуляция и частицы
- Скриптинг на Python
- Создание игр в Blender



Bug 1879404
— Blender 2.90.0-3.fc33 crashes when using adding sapling tree or using voronoi texture
Summary:
Blender 2.90.0-3.fc33 crashes when using adding sapling tree or using voronoi…
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|