error importing large STL #64637

Closed
opened 2019-05-15 04:47:44 +02:00 by ken · 8 comments

System Information
Operating system: ubuntu 19.04 kernel 5.1.1 lowlatency
Graphics card: Radeon Vega Frontier Edition

Blender Version
Broken: (example: 2.80, edbf15d3c0, master, 2018-11-28, as found on the splash screen)
from ppa:thomas-schiex/blender
Worked: (optional)

Short description of error
error importing large STL file created from openscad.
do you want the file to recreate?
wanted use blender to reduce STL complexity.

launch from command line
$ blender
ndof: using SpaceMouse Pro Wireless
Read prefs: /home/papa/.config/blender/2.80/config/userpref.blend
Info: Deleted 1 object(s)

Traceback (most recent call last):

File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/__init__.py", line 149, in execute
  tris, tri_nors, pts = stl_utils.read_stl(path)
File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/stl_utils.py", line 265, in read_stl
  for nor, pt in gen(data):
File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/stl_utils.py", line 163, in _ascii_read
  yield curr_nor, [tuple(map(float, l_item.split()[1:])) for l_item in (l, data.readline(), data.readline())]
File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/stl_utils.py", line 163, in <listcomp>
  yield curr_nor, [tuple(map(float, l_item.split()[1:])) for l_item in (l, data.readline(), data.readline())]

ValueError: could not convert string to float: b'-112@0.196078'

location: :-1

location: :-1
Saved session recovery to '/tmp/quit.blend'

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

**System Information** Operating system: ubuntu 19.04 kernel 5.1.1 lowlatency Graphics card: Radeon Vega Frontier Edition **Blender Version** Broken: (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen) from ppa:thomas-schiex/blender Worked: (optional) **Short description of error** error importing large STL file created from openscad. do you want the file to recreate? wanted use blender to reduce STL complexity. launch from command line $ blender ndof: using SpaceMouse Pro Wireless Read prefs: /home/papa/.config/blender/2.80/config/userpref.blend Info: Deleted 1 object(s) Traceback (most recent call last): ``` File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/__init__.py", line 149, in execute tris, tri_nors, pts = stl_utils.read_stl(path) File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/stl_utils.py", line 265, in read_stl for nor, pt in gen(data): File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/stl_utils.py", line 163, in _ascii_read yield curr_nor, [tuple(map(float, l_item.split()[1:])) for l_item in (l, data.readline(), data.readline())] File "/usr/share/blender/2.80/scripts/addons/io_mesh_stl/stl_utils.py", line 163, in <listcomp> yield curr_nor, [tuple(map(float, l_item.split()[1:])) for l_item in (l, data.readline(), data.readline())] ``` ValueError: could not convert string to float: b'-112@0.196078' location: <unknown location>:-1 location: <unknown location>:-1 Saved session recovery to '/tmp/quit.blend' **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible).
Author

Added subscriber: @thx1138

Added subscriber: @thx1138

Added subscriber: @StephenSwaney

Added subscriber: @StephenSwaney

ValueError: could not convert string to float: b'-112@0.196078'

That looks like bad data in the file.
Do you have a test file that shows the problem?

> ValueError: could not convert string to float: b'-112@0.196078' That looks like bad data in the file. Do you have a test file that shows the problem?
Author

yes, I have the file that I was trying to import, when I encountered this error. The file could have a problem. But blender should trap error better?
Do you have a location I could upload this file ? the file is this large: 417763005 google drive work?

yes, I have the file that I was trying to import, when I encountered this error. The file could have a problem. But blender should trap error better? Do you have a location I could upload this file ? the file is this large: 417763005 google drive work?
Author

Ill leave this open for a little while

https://drive.google.com/drive/folders/1EiARC6gSX2HpEQ4dsAtjh-1C-i-AWnpk?usp=sharing

work flow :

  • gimp(token.png -> token.xcf -> token-bw.png)
  • openscad(token-bw.png -> token-bw.scad -> token-bw.stl)
  • then wanted to decimate/ simplify with blender...
Ill leave this open for a little while https://drive.google.com/drive/folders/1EiARC6gSX2HpEQ4dsAtjh-1C-i-AWnpk?usp=sharing work flow : - gimp(token.png -> token.xcf -> token-bw.png) - openscad(token-bw.png -> token-bw.scad -> token-bw.stl) - then wanted to decimate/ simplify with blender...

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2019-05-15 22:01:38 +02:00

Yep, that file is corrupted somehow, lots of unexpected weird ASCII keycodes here… Not much we can do am afraid.

Yep, that file is corrupted somehow, lots of unexpected weird ASCII keycodes here… Not much we can do am afraid.
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#64637
No description provided.