X3D import is broken #61052
Labels
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
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#61052
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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
Operating system: Win10 x64
Graphics card: Nvidia 1070
Blender Version
Broken:
version: 2.79 (sub 6), branch: blender2.8, commit date: 2018-12-14 16:39, hash:
4e3562f45a
, type: Releasebuild date: 14/12/2018, 17:17
Short description of error
Exporting Suzanne (or any other object) and importing Suzanne.x3d back results in broken import process. I tried this many times. I cant tell if this is an issue with the export or the import. The file format looks fine.
Exact steps for others to reproduce the error
Add Suzanne or any other object
Open export menu (file) and choose x3d
Choose selected (defaults produce the same result)
Give and name and export
Import the exported .x3d from the "import" menu.
And you should get something like this
Added subscriber: @kursadk
X3D is brokento X3D import is brokenAdded subscriber: @lichtwerk
Cannot reproduce here.
Havent looked at the code, but as it seems to have to do with permissions [or another process using that port already]
Marking as incomplete until we have those tried...
Added subscriber: @brecht
It can be reproduced by disabling your network connection. Any code that does network access needs to handle exceptions.
Maybe we don't really need network access to import an X3D file? Not sure if the DTD's are needed for parsing or just some validation that we don't care about.
Seems like this is only done for reporting the linenumbers... [without this x3d import is heaps quicker btw...]
Assume this is taken from here https://stackoverflow.com/questions/4789171/python-reporting-line-column-of-origin-of-xml-node
Not sure if this
parser = xml.sax.make_parser()
can be tweaked to not require a network connection though...we could encapsulate with try/except urllib.error.URLError?
(and in that case just parse without this special parser?)
(that would require some tweaks in the code to not hadle/report linenumbers then...)
This seems to do the trick:
P900: #61052 snippet
Looks good to me.
Really good catch! My desktop indeed does not have any internet connection, well rather has very restricted firewall, so Blender or any other spawn processes can`t make non Lan connections
I did not think about mentioning it in the original report.
This issue was referenced by blender/blender-addons@d410029833
Changed status from 'Open' to: 'Resolved'
Added subscriber: @yottzumm
Is this fixed now?
https://developer.blender.org/T59727
@yottzumm : no, this still needs additional porting to 2.8...