Blender crash on unicode object name #47568

Closed
opened 2016-02-26 00:25:36 +01:00 by Nafnlaus · 9 comments

Version: 2.76
Symptoms: Blender crashes when one types in a unicode character in an object name.
How to recreate: Load the default scene, start renaming an object, and in the middle of it type "é". Crashes consistently for me.

Version: 2.76 Symptoms: Blender crashes when one types in a unicode character in an object name. How to recreate: Load the default scene, start renaming an object, and in the middle of it type "é". Crashes consistently for me.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @nafnlaus

Added subscriber: @nafnlaus

Added subscriber: @sindra1961

Added subscriber: @sindra1961

This did not reappear in my environment.
screen.png

my environment:
blender v2.76 (sub11)
windows 10 pro 64bits
GeForce GTX 960+GeForce GT 730

This did not reappear in my environment. ![screen.png](https://archive.blender.org/developer/F285856/screen.png) my environment: blender v2.76 (sub11) windows 10 pro 64bits GeForce GTX 960+GeForce GT 730

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Can't redo this, however its possible that somehow your keyboard is entering a different character then the one which is added from copy-pasting from the web browser.

Could you do some more tests?

  • Does this happen when copy-pasting the character (from this report for example).
  • Does this happen in any text field. (file selector (save as) / render-output-path / metadata-note... for eg).
  • Does this happen when naming an object from the Python Console fullscreen?: Shift-F4, Ctrl-Up and enter... C.object.name = "AéA"
  • If changing the name from a fullscreen PyConsole works, try UnMaximize the PyConsole (Ctrl-Up again). An check if this crashes showing the button in the Properties editor.
Can't redo this, however its possible that somehow your keyboard is entering a different character then the one which is added from copy-pasting from the web browser. - What is the **exact** name you type? - What operating system are you running? - Does this happen with 2.77 test builds? (http://download.blender.org/release/Blender2.77/) Could you do some more tests? - Does this happen when copy-pasting the character (from this report for example). - Does this happen in any text field. (file selector (save as) / render-output-path / metadata-note... for eg). - Does this happen when naming an object from the Python Console fullscreen?: Shift-F4, Ctrl-Up and enter... `C.object.name = "AéA"` - If changing the name from a fullscreen PyConsole works, try UnMaximize the PyConsole (Ctrl-Up again). An check if this crashes showing the button in the Properties editor.
Author

Interesting.. I did some more testing. It happens 100% of the time when I run blender normally - that is, through optirun (my driver is Nvidia/Bumblebee, so one uses "optirun " when they want 3d accel). But when I run it without optirun (aka, no 3d acceleration), it doesn't crash on unicode characters, ever. I can't imagine what the connection between 3d acceleration and unicode would be (blender is otherwise quite stable), but it's 100% consistent. And it would explain why you're not seeing the problem, because you're probably not using Bumblebee.

When I optirun other programs, they don't have problems with unicode - only blender.

I ran optirun blender through a console and there's an error when blender crashes:

X Error of failed request: BadValue (integer parameter out of range for operation)

Major opcode of failed request:  101 (X_GetKeyboardMapping)
Value in failed request:  0x0
Serial number of failed request:  459
Current serial number in output stream:  459

op^C

As for the questions above:

  • The exact name is irrelevant, it happens with any name. But for example, renaming "Cube" to "Cubé"

  • My environment:

Linux version 4.3.4-200.fc22.x86_64 (mockbuild@bkernel02.phx2.fedoraproject.org) (gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC) ) #1 SMP Mon Jan 25 13:37:15 UTC 2016
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2)
bumblebee-nvidia-352.63-2.fc22.x86_64

  • I haven't tried any test builds

  • No, it does not happen if the letter is copy-pasted. Rather strange, that!

  • Yes, it crashes in save-as as well

  • Yes, it crashes when I type a "é" in the python console as well

Interesting.. I did some more testing. It happens 100% of the time when I run blender normally - that is, through optirun (my driver is Nvidia/Bumblebee, so one uses "optirun <programname>" when they want 3d accel). But when I run it without optirun (aka, no 3d acceleration), it doesn't crash on unicode characters, ever. I can't imagine what the connection between 3d acceleration and unicode would be (blender is otherwise quite stable), but it's 100% consistent. And it would explain why you're not seeing the problem, because you're probably not using Bumblebee. When I optirun other programs, they don't have problems with unicode - only blender. I ran optirun blender through a console and there's an error when blender crashes: X Error of failed request: BadValue (integer parameter out of range for operation) ``` Major opcode of failed request: 101 (X_GetKeyboardMapping) Value in failed request: 0x0 Serial number of failed request: 459 Current serial number in output stream: 459 ``` op^C As for the questions above: * The exact name is irrelevant, it happens with any name. But for example, renaming "Cube" to "Cubé" * My environment: Linux version 4.3.4-200.fc22.x86_64 (mockbuild@bkernel02.phx2.fedoraproject.org) (gcc version 5.3.1 20151207 (Red Hat 5.3.1-2) (GCC) ) #1 SMP Mon Jan 25 13:37:15 UTC 2016 01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 860M] (rev a2) bumblebee-nvidia-352.63-2.fc22.x86_64 * I haven't tried any test builds * No, it does not happen if the letter is copy-pasted. Rather strange, that! * Yes, it crashes in save-as as well * Yes, it crashes when I type a "é" in the python console as well

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Campbell Barton self-assigned this 2016-03-09 05:03:16 +01:00

This makes sense then, however I can't redo the error,

Tried to redo the bug by sending bad key-stroke events to Blender using http://www.doctort.org/adam/nerd-notes/x11-fake-keypress-event.html (and swapping out XKeysymToKeycode args, as well as commenting it and testing various invalid values).

All I could get was an error:

Bad keycode lookup. Keysym 0x0 Status: XLookupNone
'' 0x7ff29d50a780 0x7ff29d6bacc0

As far as I can see this is a bug in Bumblebee since theres no reason it should be adjusting your keyboard config, best report the error there.

Closing.

This makes sense then, however I can't redo the error, Tried to redo the bug by sending bad key-stroke events to Blender using http://www.doctort.org/adam/nerd-notes/x11-fake-keypress-event.html (and swapping out `XKeysymToKeycode` args, as well as commenting it and testing various invalid values). All I could get was an error: ``` Bad keycode lookup. Keysym 0x0 Status: XLookupNone '' 0x7ff29d50a780 0x7ff29d6bacc0 ``` As far as I can see this is a bug in Bumblebee since theres no reason it should be adjusting your keyboard config, best report the error there. Closing.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
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, Assets & 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
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
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
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#47568
No description provided.