blender_icons_update.py causes build segfault #53471

Closed
opened 2017-12-05 08:02:09 +01:00 by Troy Sobotka · 12 comments

System Information
Debian Stretch trunk

Blender Version
Broken: trunk
Worked: ?

Short description of error

Newer Inkscape features a bug fix that changes the internally stored DPI to 94. This requires a scale on the part of the Blender icons or the image ends up corrupted.

However, all three options in the new Inkscape result in problems:

  • Ignore results in corrupted / sheared icons because the image size is wrong.
  • Convert via View Box results in Segfault.
  • Convert via scaling the image results in Segfault.

Hard coding the Python script to use --export-width and --export-height also generates the segfault.

Segmentation fault
source/blender/editors/datafiles/CMakeFiles/bf_editor_datafiles.dir/build.make:591: recipe for target 'release/datafiles/blender_icons16.png' failed
make[2]: *** [release/datafiles/blender_icons16.png] Error 139

Exact steps for others to reproduce the error
Using a newer Inkscape, load the blender_icons.svg. Simply save it after the prompt and trial any of the three options.

**System Information** Debian Stretch trunk **Blender Version** Broken: trunk Worked: ? **Short description of error** Newer Inkscape features a bug fix that changes the internally stored DPI to 94. This requires a scale on the part of the Blender icons or the image ends up corrupted. However, all three options in the new Inkscape result in problems: * Ignore results in corrupted / sheared icons because the image size is wrong. * Convert via View Box results in Segfault. * Convert via scaling the image results in Segfault. Hard coding the Python script to use --export-width and --export-height also generates the segfault. ``` Segmentation fault source/blender/editors/datafiles/CMakeFiles/bf_editor_datafiles.dir/build.make:591: recipe for target 'release/datafiles/blender_icons16.png' failed make[2]: *** [release/datafiles/blender_icons16.png] Error 139 ``` **Exact steps for others to reproduce the error** Using a newer Inkscape, load the blender_icons.svg. Simply save it after the prompt and trial any of the three options.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @troy_s

Added subscriber: @troy_s
Member

Added subscriber: @MaiLavelle

Added subscriber: @MaiLavelle
Member

Also happens on Arch with Inkscape 0.92.2.

Also happens on Arch with Inkscape 0.92.2.
Member

Segfault is happening on line 312 of datatoc_icon.c, looks like canvas_w (and _h) from the first icon loaded isn't matching the head.canvas_w of later icons, causing pixels_canvas to be allocated too small. Not sure why the canvas sizes aren't matching tho.

Segfault is happening on line 312 of `datatoc_icon.c`, looks like `canvas_w` (and `_h`) from the first icon loaded isn't matching the `head.canvas_w` of later icons, causing `pixels_canvas` to be allocated too small. Not sure why the canvas sizes aren't matching tho.
Author

I suspect it is the DPI difference and that somewhere Blender is using that DPI to calculate the canvas size?

I suspect it is the DPI difference and that somewhere Blender is using that DPI to calculate the canvas size?
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Note that build errors are better handled over IRC/ the mailing list.

Note that build errors are better handled over IRC/ the mailing list.
Author

Hard coding the pix_width and pix_height solves this if and only if you clean out the prior dot dat files for some reason.

Hard coding the pix_width and pix_height solves this if and only if you clean out the prior dot dat files for some reason.
Author
https://hastebin.com/ekihitudoc.diff

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Campbell Barton self-assigned this 2017-12-13 08:54:53 +01:00

Thanks @troy_s, committed your fix.

Thanks @troy_s, committed your fix.
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
4 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#53471
No description provided.