Crash during autocompletion in PyConsole (Linux Library Compatibility) #43491
Closed
opened 2015-01-30 23:23:36 +01:00 by 3dvits@gmail.com
·
63 comments
No Branch/Tag Specified
main
blender-v4.4-release
npr-prototype
blender-v4.2-release
remote-asset-library-monolithic
blender-v3.6-release
blender-v4.3-release
temp-sculpt-dyntopo
blender-v3.3-release
brush-assets-project
pr-extensions-tidy-space
blender-v4.0-release
universal-scene-description
blender-v4.1-release
blender-v3.6-temp_wmoss_animrig_public
gpencil-next
blender-projects-basics
sculpt-blender
asset-browser-frontend-split
asset-shelf
blender-v3.5-release
blender-v2.93-release
sculpt-dev
bevelv2
xr-dev
v4.4.0
v4.2.8
v4.2.7
v3.6.21
v4.2.6
v3.6.20
v4.2.5
v3.6.19
v4.3.2
v4.3.1
v4.3.0
v4.2.4
v3.6.18
v4.2.3
v3.6.17
v4.2.2
v3.6.16
v4.2.1
v3.6.15
v4.2.0
v3.6.14
v3.3.21
v3.6.13
v3.3.20
v3.6.12
v3.3.19
v4.1.1
v3.6.11
v3.3.18
v4.1.0
v3.3.17
v3.6.10
v3.6.9
v3.3.16
v3.6.8
v3.6.7
v3.3.14
v4.0.2
v4.0.1
v4.0.0
v3.6.5
v3.3.12
v3.6.4
v3.6.3
v3.3.11
v3.6.2
v3.3.10
v3.6.1
v3.3.9
v3.6.0
v3.3.8
v3.3.7
v2.93.18
v3.5.1
v3.3.6
v2.93.17
v3.5.0
v2.93.16
v3.3.5
v3.3.4
v2.93.15
v2.93.14
v3.3.3
v2.93.13
v2.93.12
v3.4.1
v3.3.2
v3.4.0
v3.3.1
v2.93.11
v3.3.0
v3.2.2
v2.93.10
v3.2.1
v3.2.0
v2.83.20
v2.93.9
v3.1.2
v3.1.1
v3.1.0
v2.83.19
v2.93.8
v3.0.1
v2.93.7
v3.0.0
v2.93.6
v2.93.5
v2.83.18
v2.93.4
v2.93.3
v2.83.17
v2.93.2
v2.93.1
v2.83.16
v2.93.0
v2.83.15
v2.83.14
v2.83.13
v2.92.0
v2.83.12
v2.91.2
v2.83.10
v2.91.0
v2.83.9
v2.83.8
v2.83.7
v2.90.1
v2.83.6.1
v2.83.6
v2.90.0
v2.83.5
v2.83.4
v2.83.3
v2.83.2
v2.83.1
v2.83
v2.82a
v2.82
v2.81a
v2.81
v2.80
v2.80-rc3
v2.80-rc2
v2.80-rc1
v2.79b
v2.79a
v2.79
v2.79-rc2
v2.79-rc1
v2.78c
v2.78b
v2.78a
v2.78
v2.78-rc2
v2.78-rc1
v2.77a
v2.77
v2.77-rc2
v2.77-rc1
v2.76b
v2.76a
v2.76
v2.76-rc3
v2.76-rc2
v2.76-rc1
v2.75a
v2.75
v2.75-rc2
v2.75-rc1
v2.74
v2.74-rc4
v2.74-rc3
v2.74-rc2
v2.74-rc1
v2.73a
v2.73
v2.73-rc1
v2.72b
2.72b
v2.72a
v2.72
v2.72-rc1
v2.71
v2.71-rc2
v2.71-rc1
v2.70a
v2.70
v2.70-rc2
v2.70-rc
v2.69
v2.68a
v2.68
v2.67b
v2.67a
v2.67
v2.66a
v2.66
v2.65a
v2.65
v2.64a
v2.64
v2.63a
v2.63
v2.61
v2.60a
v2.60
v2.59
v2.58a
v2.58
v2.57b
v2.57a
v2.57
v2.56a
v2.56
v2.55
v2.54
v2.53
v2.52
v2.51
v2.50
v2.49b
v2.49a
v2.49
v2.48a
v2.48
v2.47
v2.46
v2.45
v2.44
v2.43
v2.42a
v2.42
v2.41
v2.40
v2.37a
v2.37
v2.36
v2.35a
v2.35
v2.34
v2.33a
v2.33
v2.32
v2.31a
v2.31
v2.30
v2.28c
v2.28a
v2.28
v2.27
v2.26
v2.25
Labels
Clear labels
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Asset datablocks, libraries, browser and shelf
Interest
Audio
Interest
Automated Testing
Interest
BlendFile
Interest
Blender Asset Bundle
Interest
Code Documentation
Code comments, Python/RNA API descriptions
Interest
Collada
Interest
Compatibility
Backward and forward compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
FBX
FBX I/O related topics
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
USD
Interest
UV Editing
Interest
Undo
Interest
User Interface
Interest
VFX & Video
Interest
Video Sequencer
Interest
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Wayland windowing on Unix
Interest
Workbench
Interest
glTF
glTF format I/O topics
Interest: X11
Xorg/X11 windowing
Legacy
Asset Browser Project
Archived
Legacy
Blender 2.8 Project
Archived
Legacy
Milestone 1: Basic, Local Asset Browser
Archived
Legacy
OpenGL Error
Archived
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Related to security, see policy: https://developer.blender.org/docs/handbook/bug_reports/vulnerability_reports/
Module
Animation & Rigging
Module
Asset System
Module
Core
Module
Development Management
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
Windows
Platform
macOS
Severity
High
Severity
Low
Severity
Normal
Severity
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Archived
Type
Report
Archived
Type
To Do
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
Hoshinova
James-McCarthy-4
Sebastian-Herholz
casey-bianco-davis
gandalf3
Blendify Aaron Carlisle
quantimoney Aditya Y Jeppu
Alaska Alaska
angavrilov Alexander Gavrilov
frogstomp Aleš Jelovčan
amelief Amélie Fondevilla
elubie Andrea Weikert
Andy_Goralczyk Andy Goralczyk
ankitm Ankit Meel
Anthony-Roberts Anthony Roberts
antoniov Antonio Vazquez
aras_p Aras Pranckevicius
Arnd Arnd Marijnissen
bartvdbraak Bart van der Braak
mont29 Bastien Montagne
blender-bot Blender Bot
bnagirniak Bogdan Nagirniak
BClark Brad Clark
brecht Brecht Van Lommel
BrianSavery Brian Savery (AMD)
ideasman42 Campbell Barton
CharlesWardlaw Charles Wardlaw
CharlieJolly Charlie Jolly
Chris_Blackbourn Chris Blackbourn
lateasusual Chris Clyne (Lateasusual)
ChrisLend Christoph Lendenfeld
HobbesOS Cian Jinks
fclem Clément Foucault
cmbasnett Colin Basnett
Kdaf Colin Marmond
dfelinto Dalai Felinto
pioverfour Damien Picard
DanielBystedt Daniel Bystedt
pepe-school-land Daniel Martinez Lara
zanqdo Daniel Salazar
Mets Demeter Dzadik
erik85 Erik Abrahamsson
EAW Evan Wilson
filedescriptor Falk David
fsiddi Francesco Siddi
GaiaClary Gaia Clary
DagerD Georgiy Markelov
mano-wii Germano Cavalcante
zazizizou Habib Gahbiche
HooglyBoogly Hans Goudey
Harley Harley Acheson
weasel Henrik D.
Hjalti Hjalti Hjálmarsson
howardt Howard Trickey
nirved-1 Hristo Gueorguiev
mod_moder Iliya Katushenock
brita Inês Almeida
JacquesLucke Jacques Lucke
Jason-Fielder Jason Fielder
JasonSchleifer Jason schleifer
Jebbly Jeffrey Liu
Jeroen-Bakker Jeroen Bakker
deadpin Jesse Yurkovich
neXyon Joerg Mueller
eliphaz John Kiril Swenson
guitargeek Johnny Matthews
Brainzman Jonas Holzman
JoniMercado Jonatan Mercado
JorgeBernalMartinez Jorge Bernal
JosephEagar Joseph Eagar
JoshuaLeung Joshua Leung
Bone-Studio Juan Gea
jpbouza-4 Juan Pablo Bouza
JulianEisel Julian Eisel
JulienDuroure Julien Duroure
JulienKaspar Julien Kaspar
kevindietrich Kévin Dietrich
lone_noel Leon Schittek
LucianoMunoz Luciano Muñoz Sessarego
LukasStockner Lukas Stockner
LukasTonne Lukas Tönne
LunaRood Luna Rood
MaiLavelle Mai Lavelle
EosFoxx Marion Stalke
Baardaap Martijn Versteegh
scorpion81 Martin Felke
mendio Matias Mendiola
Matt-McLin Matt McLin
MetinSeven Metin Seven
wave Michael B Johnson
Michael-Jones Michael Jones (Apple)
makowalski Michael Kowalski
pragma37 Miguel Pozo
nrupsis Nate Rupsis
jesterking Nathan Letwory
nathanvegdahl Nathan Vegdahl
PrototypeNM1 Nicholas Rishel
nickberckley Nika Kutsniashvili
Sirgienko Nikita Sirgienko
OmarEmaraDev Omar Emara
pablovazquez Pablo Vazquez
PaoloAcampora Paolo Acampora
PascalSchon Pascal Schön
pmoursnv Patrick Mours
muxed-reality Peter Kim
lichtwerk Philipp Oeser
P2design Pierrick PICAUT
PratikPB2123 Pratik Borhade
Limarest Ramil Roosileht
farsthary Raul Fernandez Hernandez
LazyDodo Ray molenkamp
iss Richard Antalik
rjg Robert Guetzkow
salipour Sahar A. Kashi
Sayak-Biswas Sayak Biswas
Sean-Kim Sean Kim
sherholz Sebastian Herholz
sebastian_k Sebastian Koenig
ZedDB Sebastian Parborg
sebbas Sebastián Barschkis
Sergey Sergey Sharybin
IRIEShinsuke Shinsuke Irie
sidd017 Siddhartha Jejurkar
SietseB Sietse Brouwer
SimonThommes Simon Thommes
SonnyCampbell_Unity Sonny Campbell
Stefan_Werner Stefan Werner
Lockal Sv. Lockal
dr.sybren Sybren A. Stüvel
ThomasDinges Thomas Dinges
Ton Ton Roosendaal
BassamKurdali Ursula kurdali
Vasyl-Pidhirskyi Vasyl Pidhirskyi
WannesMalfait Wannes Malfait
wbmoss_dev Wayde Moss
weizhen Weizhen Huang
leesonw William Leeson
xavierh Xavier Hallade
jenkm Yevgeny Makarov
ChengduLittleA YimingWu
gfxcoder jon denning
Clear assignees
No Assignees
Giuseppe De Marco
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#43491
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Ubuntu 14.04 x86 with Linux kernel 3.11.0-17
Blender Version
Broken: starting with Blender 2.71
Bug not reproduced on Blender older than 2.70 and on x86_64 Linux system
Short description of error
After pressing Autocompletion button or "Ctrl+Space" shortcut in blender Python Console, Blender immediately crashed
Exact steps for others to reproduce the error
blender.crash.txt
Changed status to: 'Open'
Added subscriber: @VitaliiShmorgun
Added subscriber: @Blendify
Added subscriber: @kevindietrich
I cannot reproduce this here (Mint 17 64 bits, latest head) with either a debug or release build.
I have written: "Bug not reproduced on Blender older than 2.70 and on x86_64 Linux system"
It means, bug not reproduced on 64 bit system
Oops, I misread the report :), I'll try and check on my 32-bit laptop.
Added subscriber: @ideasman42
Could you test with 2.73a?
Already tested. Bug reproduced in blender in versions from 2.71 to 2.73a on 32 bit Ubuntu 14.04
Added subscriber: @demarcog83
System:
Description: Debian GNU/Linux 8.0 (jessie)
Release: 8.0
Linux flybook 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt2-1 (2014-12-08) x86_64 GNU/Linux
Autocomplete crashes with 2.72 and 2.73a, all binaries from official repo.
It also crashed with 2 feb 2015 dailybuild named blender-2.73-0305b20-linux-glibc211-x86_64.
Only Blender 2.70 works with autocomplete feature.
Is there any compilation workaround for 2.72 / 2.73 ?
In stdout I can read "Segmentation error".
Here is the crash log:
Tested with 2.73 release and
5030daf2a8
- both work fine here. Valgrind also doesn't report any errors.Added subscriber: @clouclou-2
On a Debian Jessis 32bits i also have the crash.
I have the crash with 2.72b (system blender) and with the builder version (2.73-64124ba)
Launched with valgrind i have this log:
(Full log http://www.pasteall.org/56439 )
Added subscriber: @JulianEisel
Also can't reproduce this here. Maybe you guys should try using factory settings? Doesn't really look like this from the error log, but chances are this is caused by an addon (although I have no idea how an error log from an addon crash would look like).
When i reproduced it, i used a fresh install (it was a virtual machine) where i never launch Blender on it. So it mean i have a the factory settings and i don't have any extra addon.
It crashes also with a factory default startup file, with no additional addons.
Only 2.70 version doesn't crash, now I'm coding on this.
This debian jessie uses:
libc6:amd64 2.19-13
python3 3.4.2-2
readline-common 6.3-8
Is there any critical information I can give you that could help us to analyze this issue ?
Added subscriber: @zoschfrosch
On Ubuntu 14.10 64 bit, I also have the crash. The installed blender version is 2.70a. With 2.73a, it crashes too. With an older version (2.63a), autocompletion works fine.
Now autocomplete in python console in blender 2.73a on my debian jessie amd64 works but I compiled blender from scratch.
The problem, probably, is an incompatibility between a library updates and the linked static of the official version of blender, downloaded from web.
Maybe the official solution to solve this problem is to download blender sources from the web and, in its decompressed directory, start:
./build_files/build_environment/install_deps.sh
I've noticed this because after this compilation the other blender versions, that were downloaded as compiled static from the web, now works with autocomplete,
good news
Changed status from 'Open' to: 'Resolved'
Yes, if someone could test as I made we could think of it as completely solved
I compiled blender 2.73a from scratch on my Ubuntu 14.10 64 bit. I started the install_deps.sh script, but I still had to install a lot of dev libraries because I got file not found errors for some .h files. Finally, I succeeded compiling, but the autocompletion crash is still there.
What can I try next? Compiling with debug information and try to find the segmentation fault in a debugger? Or are there command line options for logging?
Changed status from 'Resolved' to: 'Archived'
Something to note here: It wasn't clear to me that you are using own builds, for which reports in our tracker are not allowed. So even if the crashes still occur, we won't reopen until it's proven they also occur on "official" builds. That doesn't mean it's not allowed for you to go on discussing this though (as long as it doesn't get too much), we just won't reopen.
Maybe this is a misunderstanding. I wanted to begin programming blender python and used the official version 2.70a which is installed with Ubuntu 14.10. Because it crashed on code completion, I tried the official binary 2.73a, it also crashes on my Ubuntu. Then I googled and found this bug report - only compiled from source to test if there's a library problem. With the older official version 2.63a, code completion works as designed.
@JulianEisel, re:
we won't reopen until it's proven they also occur on "official" builds
I don't completely agree, if users apply patches or use unsupported library versions - then we can't support.
But if they use an un-modified codebase on a recent OS and Blender is crashing, then it may well be a bug, so we should try to fix still. (eg #39245)
In this case the crash is outside of Blender so it could be some library conflict - in this case, but we should still try to resolve somehow.
@zoschfrosch
Some things you could try:
make lite
if this works, then it may be some library conflict.Since the official download from Blender.org works (other Linux distros work too) and Ubuntu's package crashes, you should raise this issue with Debian/Ubuntu maintainers.
Please post a link to the Debian/Ubuntu bug report here.
Changed status from 'Archived' to: 'Open'
Tried building today's master -
6971bd9a4f
on Ubuntu14.04 (server edition).and couldn't redo the crash.
In Ubuntu 14.04 repositories Blender version 2.63. As far as I can see, this bug not reproduced in this version of blender. That is why maintainers of Ubuntu can not help us.
The problem once again occurs in versions from blender.org 2.71 - 2.73a
Try to clean all and rebuild, if you compile your own and this still crashes isn't it a library versioning/bug problem ?
And, the important question is, after this, when you've compiled your own, the static official blender does still crash ?
Note, that I didn't use
install_deps.sh
- Instread I installed deps from ubuntu, see: http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake#Manual_dependencies_installationThough this doesn't include OpenImageIO, so I had to disable Cycles.
Please try
install_deps.sh
Tried out a lot of things, with the following results:
UbuntuStudio 14.10:
The blender 2.70a from the ubuntu repositories crashes
The static official blender 2.73a crashes
A clean build from sources 2.73a crashes
An older blender 2.63a which I have on another partition (it came with ubuntustudio 13.04) works with ubuntu 14.10
Then I compiled the 2.73a as debug, ran it with gdb, and produced a stack trace after the crash:
Next try was to run the official blender 2.73a build with ubuntustudio 13.04: No crash!
I guess there's a problem with the python3.4 shared library and ubuntu 14.10, because on ubuntu 13.04 there is no python 3.4 so.
Then I tried ldd with the different blender version. Only the self compiled versions need the python 3.4 shared library.
Last thing I tried was renaming the ubuntu python shared libraries and starting the official blender 2.73a. It crashed again. But what python library does it use?
Any ideas or hints?
Removed subscriber: @Blendify
Probably takes a library from the system and this cause segmentation fault.
Try to run it with fake env variables, ex
LD_LIBRARY_PATH=/all/but/usr/lib: ./blender
This prevent the use of system libs.
Sorry if I ask you again, have you used install_deps.sh script for update and install requirements ?
Faking the library path, it crashes again. And yes, I have used install_deps.sh.
Tested using
install_deps.sh
and can't redo the crash there either. (Ubuntu 14.04, 32bit)Removed subscriber: @clouclou-2
using
activate python console in blender and play autocomplete. Then close blender e read blender.log.
In my case, the compiled from scratch, exposes:
Running it with 2.73a static version
I can see these errors ( uncompatible system-space binary )
6377: opening file=/usr/lib/x86_64-linux-gnu/libSDL.so - [x]; direct_opencount=1
6377:
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_GetPlatform (fatal)
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_memcpy (fatal)
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_calloc (fatal)
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_realloc (fatal)
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_free (fatal)
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_getenv (fatal)
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_setenv (fatal)
6377: /usr/lib/x86_64-linux-gnu/libSDL.so: error: symbol lookup error: undefined symbol: SDL_qsort (fatal)
and then
Please do this test and post your results, I'm shure that there will be an incompatibility between static compiled readline.cpython-34m.so and system's libreadline.so.6.
reference:
https://wiki.archlinux.org/index.php/Step-by-step_debugging_guide
Crash during autocompletion in Python Consoleto Crash during autocompletion in PyConsole (Linux Library Compatibility)An easy way to reproduce this error: Download ubuntustudio 14.10, burn iso on a DVD, and boot from DVD in live modus. Blender 2.70a is on the ubuntustudio live DVD and produces this segfault.
Or use virtualbox and boot from the iso file, if you don't want to waste a DVD.
Hi Thomas,
on a ubuntu 14.04
Linux qwert-desktop 3.13.0-23-generic #45-Ubuntu SMP Fri Apr 4 06:58:38 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
with partner this repository + mate repository
it doesn't crash.
I never use the october releases of ubuntu, because it have updates only for 6 month.
For a workstation the LTS releases are always best, more stable and supported.
Oh, really? We are very happy for you. But the problem, unfortunately, is evident not only in 14.10. And even if so, it is a bug and should be fixed.
Hi Giuseppe,
normally, that's also my philosophy...but since 14.04, I cannot connect to my HP network printer - and I found some hints that the bugfix for this comes with 14.10. It's always a trade off between bug fixes and new bugs :-). The way back to 14.04 would be a complete install from scratch...not really a possibility for me. I tried using an older blender version - but with that, my scenes are looking very strange, cubes are becoming spheres.
Python code completion is not the most important feature for me - but I'm with acvarium, it's a bug and I hope it will be fixed. Does it help if I post the debug output as you proposed?
Removed subscriber: @kevindietrich
I started, as you asked me, blender with
LD_DEBUG=files blender > blender.log 2>&1
Because I don't call ./blender, it's the official blender version of ubuntu 14.10.
Here are the last lines before it crashes:
Then I renamed the file /usr/lib/python3.4/lib-dynload/readline.cpython-34m-x86_64-linux-gnu.so to force blender to search it somewhere else. Now code completion works without segmentation fault.
I don't know enough about linux shared libraries and the difference between the /usr/lib/x86_64-linux-gnu/libpython3.4m.so.1.0 and the lib's in /usr/lib/python3.4/lib-dynload/ to understand what's going on.
Nice workaround Thomas,
If I understood the bug, in your case, this affects the ubuntu blender package, so the ubuntu mantainers should recompile it with the readline actually distribuited with 14.10.
If the problem is this, this bug should be closed because it doesn't affects official blender package, isn't so ?
I'm not sure if a recompile solves the problem, because the bug in my case affects the ubuntu version, an official build from blender.org, and even a recompiled version (see my earlier posts). Maybe a recompile on a fresh ubuntu 14.10 solves the problem.
I guess it's not a blender bug. But I'm only a blender user, not a developer, and I don't know if this problem is worth investigating much more effort to find the cause.
Ah, there are more problems in the ubuntu 14.10 version. I continued working on a scene, and when I tried to move some objects to another layer (m), blender crashed when a clicked on the target layer symbol. This also occurs on a fresh ubuntustudio installation, I tried it with the ubuntustudio live session.
I'll try to contact the ubuntu maintainers - don't know how, but I think google will help.
If you are looking for a workaround for you, you can do a chroot of a ubuntu 14.04 or debian inside your 14.10. With chroot you should use CUDA as well.
http://www.binarytides.com/setup-chroot-ubuntu-debootstrap/
As we have considered this ticket we should close this bug because it doesn't affects directly blender but specific distributions packages.
Changed status from 'Open' to: 'Archived'
Hi everybody, I submitted an ubuntu bug report: blender crashes on python code completion
Added subscriber: @XavierThomas
Hi,
I am suffering from this bug also. I am using Debian testing and none of the workarounds is working for me.
I tried recompiling blender with and without PYTHON_INSTALL but nothing changes. The catch that make me thinks this might be a Blender (build system) bug instead of a system bug is that I can do auto-completion using readline in pretty much any python console except Blender's:
import rlcompleter, readline
readline.parse_and_bind('tab:complete')
Works in the CPython's console but crash at "import readline" in Blender's console.
Xavier blender python autocompletion binds libreadline present on your system,
please follow the solution proposed by Thomas, rename the blender local lib.
read the previous comments
Giuseppe,
I did try renaming but it did not work yesterday. Today I retried after compiling with PYTHON_INSTALL deactivated in CMake and renaming /usr/lib/python3.4/lib-dynload/readline.cpython-34m-x86_64-linux-gnu.so and it works. Thanks
Found the cause of the issue, and it is indeed a configuration problem. (not an error in our code).
There are 2 libraries that support the 'readline' API (libreadline and libedit), however they aren't 100% API compatible (if they were, we wouldn't have any crashes).
A quick way to test the crash is:
Where this works:
Whats happening is LLVM is linked with
libedit
, loading Blender's GUI, loads OpenGL, On some systems this will use LLVM, which loadslibedit
.Afterwards, when Python attempts to import
readline
, it uses the symbols forlibedit
which has an incompatiblerl_startup_hook
, that is called immediately, (before Python's module has been initialized) and crashes, whereaslibreadline
postpones executing the callback.So this fix is to ensure
libedit
is never used by Python'sreadline
module.Incidentally, Python is aware of the differences and has ifdef's to support
libedit
, however these are only enabled when__APPLE__
is defined, building Python againstlibedit
on Linux is possible, but better solve by using correct linking.Changed status from 'Archived' to: 'Open'
Changed status from 'Open' to: 'Resolved'
Committed workaround
f159ed7746
This spesific crash is fixed, however the error with
readline
crashing on load isnt.That really needs to be fixed by linking Blender differently, since not all Linux distro's suffer this problem, it should be possible to resolve.
Hi Campbell,
Nice job spotting the origin of the bug. This all make sense now: the bug appeared for me after nvidia stopped supporting my gpu and I had to switch to nouveau.