Import .svg file failed in Blender 2.81 #72137

Closed
opened 2019-12-03 09:06:10 +01:00 by Leroy · 5 comments

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00

Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: 26bd5ebd42
Worked: (optional)

Short description of error

The same svg file, it's can work in blender 2.80, but report error in 2.81. have tried in factory mode.

error info:

Traceback (most recent call last):
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\__init__.py", line 59, in execute
    return import_svg.load(self, context, filepath=self.filepath)
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1882, in load
    load_svg(context, filepath, do_colormanage)
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1872, in load_svg
    loader.parse()
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1085, in parse
    ob = parseAbstractNode(node, self._context)
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1856, in parseAbstractNode
    ob.parse()
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1085, in parse
    ob = parseAbstractNode(node, self._context)
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1856, in parseAbstractNode
    ob.parse()
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1134, in parse
    pathParser = SVGPathParser(d, self._styles['useFill'])
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 508, in __init__
    self._data = SVGPathData(d)
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 420, in __init__
    token, last_char = read_float(d, i)
  File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\svg_util.py", line 88, in read_float
    raise Exception('Invalid float value near ' + text[start_index:start_index + 10])
Exception: Invalid float value near -.46-.95.2

location: <unknown location>:-1


Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

you can download my .svg file form here:

china.svg

**System Information** Operating system: Windows-10-10.0.18362 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 432.00 **Blender Version** Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-11-20 14:27, hash: `26bd5ebd42` Worked: (optional) **Short description of error** The same svg file, it's can work in blender 2.80, but report error in 2.81. have tried in factory mode. error info: ``` Traceback (most recent call last): File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\__init__.py", line 59, in execute return import_svg.load(self, context, filepath=self.filepath) File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1882, in load load_svg(context, filepath, do_colormanage) File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1872, in load_svg loader.parse() File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1085, in parse ob = parseAbstractNode(node, self._context) File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1856, in parseAbstractNode ob.parse() File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1085, in parse ob = parseAbstractNode(node, self._context) File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1856, in parseAbstractNode ob.parse() File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 1134, in parse pathParser = SVGPathParser(d, self._styles['useFill']) File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 508, in __init__ self._data = SVGPathData(d) File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\import_svg.py", line 420, in __init__ token, last_char = read_float(d, i) File "D:\Program Files\Blender Foundation\Blender 2.81\2.81\scripts\addons\io_curve_svg\svg_util.py", line 88, in read_float raise Exception('Invalid float value near ' + text[start_index:start_index + 10]) Exception: Invalid float value near -.46-.95.2 location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)] you can download my .svg file form here: ![china.svg](https://archive.blender.org/developer/F8186661/china.svg)
Author

Added subscriber: @Leroy-Xie

Added subscriber: @Leroy-Xie

Added subscriber: @robbott

Added subscriber: @robbott

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Jean First self-assigned this 2019-12-03 09:19:59 +01:00
duplicate of blender/blender-addons#71845

rather duplicate of blender/blender-addons#71774

rather duplicate of blender/blender-addons#71774
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
2 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#72137
No description provided.