Exporting curves to Alembic crashes other software when reading #49114

Closed
opened 2016-08-19 06:01:59 +02:00 by Leroy · 21 comments

System Information
windows 8 64bit

Blender Version
Broken: 2.77.3 1fe9d67
Worked: (optional)

The curve import to others software will be report error, even cause crash

test.zip

Exact steps for others to reproduce the error
Download the test file and import to maya, or houdini, the some curve type will make report error or cause crash.

blender to blender:
b2b.png

Nurbs into Maya:
![}V5$~AO7B5KW]A)O2AKY1_7.png](https://archive.blender.org/developer/F338954/_V5__AO7B5KW_A_O2AKY1_7.png)

Poly or Bezier into Maya:
!- [x]R2QT$~35E}7KPE{UK`E.png](https://archive.blender.org/developer/F338956/V_R_2QT__35E_7KPE__UK_E.png)

![46HZM]9SDG3%`}OFX$V}F8P.jpg](https://archive.blender.org/developer/F338958/46HZM_9SDG3___OFX_V_F8P.jpg)

Have test with maya 16, maya 17 and houdini 15

**System Information** windows 8 64bit **Blender Version** Broken: 2.77.3 1fe9d67 Worked: (optional) The curve import to others software will be report error, even cause crash [test.zip](https://archive.blender.org/developer/F338947/test.zip) **Exact steps for others to reproduce the error** Download the test file and import to maya, or houdini, the some curve type will make report error or cause crash. blender to blender: ![b2b.png](https://archive.blender.org/developer/F338952/b2b.png) Nurbs into Maya: ![}V5$~AO7B5KW]A)O2AKY1_7.png](https://archive.blender.org/developer/F338954/_V5__AO7B5KW_A_O2AKY1_7.png) Poly or Bezier into Maya: !- [x]R`2QT$~35E}7KPE{`UK`E.png](https://archive.blender.org/developer/F338956/V_R_2QT__35E_7KPE__UK_E.png) ![46HZM]9SDG3%`}OFX$V}F8P.jpg](https://archive.blender.org/developer/F338958/46HZM_9SDG3___OFX_V_F8P.jpg) Have test with maya 16, maya 17 and houdini 15
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Leroy-Xie

Added subscriber: @Leroy-Xie

#50529 was marked as duplicate of this issue

#50529 was marked as duplicate of this issue

Added subscriber: @kevindietrich

Added subscriber: @kevindietrich
Kévin Dietrich self-assigned this 2016-08-19 06:46:36 +02:00

Setting to low priority since this will be a bit hard to solve without knowing how different software expect this data to be written. Alembic uses the Renderman conventions, and I already know that curves and NURBS are not as straightforward to export as meshes because of that (NURBS import is disable in Blender for this very reason). From the Maya plugin, control points need to be duplicated, but how this is determined is not documented, therefore I am afraid that a lot of trial and error needs to happen.

Setting to low priority since this will be a bit hard to solve without knowing how different software expect this data to be written. Alembic uses the Renderman conventions, and I already know that curves and NURBS are not as straightforward to export as meshes because of that (NURBS import is disable in Blender for this very reason). From the Maya plugin, control points need to be duplicated, but how this is determined is not documented, therefore I am afraid that a lot of trial and error needs to happen.

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

I see crashing of other applications as a problem with those applications, and not something Blender can fix.

@Leroy-Xie Do you have a clear specification of how NURBS curves and surfaces should be written, in order to be compatible with other software? And since this report is rather old already, can you test what happens with a current version of Blender and whether this is still an issue?

I see crashing of other applications as a problem with those applications, and not something Blender can fix. @Leroy-Xie Do you have a clear specification of how NURBS curves and surfaces should be written, in order to be compatible with other software? And since this report is rather old already, can you test what happens with a current version of Blender and whether this is still an issue?
Sybren A. Stüvel changed title from The curve problem in Alembic to Exporting curves to Alembic crashes other software when reading 2019-08-22 16:54:41 +02:00

Added subscriber: @ChrisRydalch

Added subscriber: @ChrisRydalch

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Time to archive this imho...

Time to archive this imho...

Added subscriber: @Andruxa696

Added subscriber: @Andruxa696

I also have this problem. Blender 2.83

I also have this problem. Blender 2.83

@Andruxa696 In that case I have the same question for you as I had for @Leroy-Xie: Do you have a clear specification of how NURBS curves and surfaces should be written, in order to be compatible with other software?

@Andruxa696 In that case I have the same question for you as I had for @Leroy-Xie: Do you have a clear specification of how NURBS curves and surfaces should be written, in order to be compatible with other software?

Unfortunately I do not have a clear specification and I do not understand the technical nuances. For my self I found solution to use only blender NURBS and create more vertices in it- then it works fine. But never export Poly or Bezier curves - then maya(version 2018 and 2019 ) crashes. Houdini 18 not crashes, but does not see Poly or Bezier curves correct. For Houdini the same solution - create blender Nurbs and add more vertices to it. Hope it will help somebody.
@dr.sybren I can only say that maybe we can convert and exporty Poly or Bezier curves the same way as NURBS curves, or convert it to NURBS before export.
For some of this bugs even no need to check it in other software - just export from blender and import it back.
Screenshot_1.png
last example where few Nurbs curves is part of one object - also exports incorect .
If I create few curves in one object in Maya - it exports to Houdini correctly , so it is not the limitation of Alembic.
I hope it will help you at least a little. Good luck and thank you @dr.sybren for you hard work.

Unfortunately I do not have a clear specification and I do not understand the technical nuances. For my self I found solution to use only blender NURBS and create more vertices in it- then it works fine. But never export Poly or Bezier curves - then maya(version 2018 and 2019 ) crashes. Houdini 18 not crashes, but does not see Poly or Bezier curves correct. For Houdini the same solution - create blender Nurbs and add more vertices to it. Hope it will help somebody. @dr.sybren I can only say that maybe we can convert and exporty Poly or Bezier curves the same way as NURBS curves, or convert it to NURBS before export. For some of this bugs even no need to check it in other software - just export from blender and import it back. ![Screenshot_1.png](https://archive.blender.org/developer/F8512476/Screenshot_1.png) last example where few Nurbs curves is part of one object - also exports incorect . If I create few curves in one object in Maya - it exports to Houdini correctly , so it is not the limitation of Alembic. I hope it will help you at least a little. Good luck and thank you @dr.sybren for you hard work.

alembic_curves.blend
@dr.sybren here is blend file with example - just export it in alembic format and import back. you will see what I mean. Thanks.

[alembic_curves.blend](https://archive.blender.org/developer/F8512539/alembic_curves.blend) @dr.sybren here is blend file with example - just export it in alembic format and import back. you will see what I mean. Thanks.

@Andruxa696 In that case I have the same question for you as I had for @Leroy-Xie: Do you have a clear specification of how NURBS curves and surfaces should be written, in order to be compatible with other software? And since this report is rather old already, can you test what happens with a current version of Blender and whether this is still an issue?

@Andruxa696 In that case I have the same question for you as I had for @Leroy-Xie: Do you have a clear specification of how NURBS curves and surfaces should be written, in order to be compatible with other software? And since this report is rather old already, can you test what happens with a current version of Blender and whether this is still an issue?

@dr.sybren seems you missed one of my previous message( message before I sent a file), I have answered on your question already. Thanks. If it is still unclear , I do not have a clear specification of how NURBS curves and surfaces should be written.
But please reread my long answer if you missed it.
I have tested it in last 2.83 and 2.9 (hash: 83304e4c22) builds . It still have this problem.
Check file I have sent before.

  1. run 2.9 version. 2) select curves 3) export it in alembic format. 4) import that alembic file back to blender . Some of the curves types are broken.(nurbs curves are fine)

For me it is not big error, I almost never use curve exports. Just want to help somehow . I tried to google some about nurbs curves and their technical specification in alembic , nothing found. maybe need to ask help in http://opensource.imageworks.com/ . I have downloaded source files on github, it seems they have example files and tests only in maya and houdini. Maybe we can ask them to help with specification. I can not help more, I am not technical enough for it.
Thanks, you did great job with alembic. Good luck.

@dr.sybren seems you missed one of my previous message( message before I sent a file), I have answered on your question already. Thanks. If it is still unclear , I do not have a clear specification of how NURBS curves and surfaces should be written. But please reread my long answer if you missed it. I have tested it in last 2.83 and 2.9 (hash: `83304e4c22`) builds . It still have this problem. Check file I have sent before. 1) run 2.9 version. 2) select curves 3) export it in alembic format. 4) import that alembic file back to blender . Some of the curves types are broken.(nurbs curves are fine) For me it is not big error, I almost never use curve exports. Just want to help somehow . I tried to google some about nurbs curves and their technical specification in alembic , nothing found. maybe need to ask help in http://opensource.imageworks.com/ . I have downloaded source files on github, it seems they have example files and tests only in maya and houdini. Maybe we can ask them to help with specification. I can not help more, I am not technical enough for it. Thanks, you did great job with alembic. Good luck.

The curves exporter certainly makes some assumptions that I don't agree with, and that I'll address at some point. This will be tracked in #76746 (which doesn't involve 3rd party proprietary software, so it's easier to tackle there).

The curves exporter certainly makes some assumptions that I don't agree with, and that I'll address at some point. This will be tracked in #76746 (which doesn't involve 3rd party proprietary software, so it's easier to tackle there).
Member

Added subscriber: @kursadk

Added subscriber: @kursadk
Member

This is still an issue with Blender 3.4 Nightly and Maya 2022 The exported curves crashes Maya.

The USD export does not seem to export the curves properly, at least when I go with the USD route to export them, I do not see the actual curves in the viewport and they come as regular mesh object.


*last tool: renderWindowSelectContextItem*====================================================
*panel with focus: modelPanel2*visible panels:
*modelPanel2 outlinerPanel1*====================================================
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0xbd710) [0x7fb563917710]
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4a359) [0x7fb5638a4359]
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4ce55) [0x7fb5638a6e55]
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4e1cb) [0x7fb5638a81cb]
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4ca50) [0x7fb5638a6a50]
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4d84b) [0x7fb5638a784b]
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x9b4bc) [0x7fb5638f54bc]
  /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x3fbf1) [0x7fb563899bf1]
  THcommandObject::doIt(TargList&)
  TmetaCommand::doCommand(TargList&)
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624]
  fexec
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xeb0cb) [0x7fb6be3e10cb]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc8981) [0x7fb6be3be981]
  SophiaExecutable::evaluate(void*)
  TcommandEngine::executeCommand(SophiaExecutable*)
  /apps/Linux.x86_64/maya-2022.3/lib/libExtensionLayer.so(+0x35afff) [0x7fb6be90bfff]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xeb37d) [0x7fb6be3e137d]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc8981) [0x7fb6be3be981]
  SophiaExecutable::evaluate(void*)
  TcommandEngine::executeCommand(SophiaExecutable*)
  /apps/Linux.x86_64/maya-2022.3/lib/libExtensionLayer.so(+0x35bac3) [0x7fb6be90cac3]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xea62d) [0x7fb6be3e062d]
  fexec
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xea12d) [0x7fb6be3e012d]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xeb37d) [0x7fb6be3e137d]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9]
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc8981) [0x7fb6be3be981]
  SophiaExecutable::evaluate(void*)
  TcommandEngine::executeCommand(Tstring const&, bool, bool, TmelCmdResult*, unsigned int)
  TscriptActionMixin::execute(Tevent const&, std::unique_ptr<TinterpreterResult, std::default_delete<TinterpreterResult> >*)
  TrunTimeCommand::doCommand(TargList&)
  /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624]
1

This is still an issue with Blender 3.4 Nightly and Maya 2022 The exported curves crashes Maya. The USD export does not seem to export the curves properly, at least when I go with the USD route to export them, I do not see the actual curves in the viewport and they come as regular mesh object. ``` *last tool: renderWindowSelectContextItem*==================================================== *panel with focus: modelPanel2*visible panels: *modelPanel2 outlinerPanel1*==================================================== /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0xbd710) [0x7fb563917710] /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4a359) [0x7fb5638a4359] /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4ce55) [0x7fb5638a6e55] /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4e1cb) [0x7fb5638a81cb] /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4ca50) [0x7fb5638a6a50] /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x4d84b) [0x7fb5638a784b] /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x9b4bc) [0x7fb5638f54bc] /apps/Linux.x86_64/maya-2022.3/bin/plug-ins/AbcImport.so(+0x3fbf1) [0x7fb563899bf1] THcommandObject::doIt(TargList&) TmetaCommand::doCommand(TargList&) /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624] fexec /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xeb0cb) [0x7fb6be3e10cb] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc8981) [0x7fb6be3be981] SophiaExecutable::evaluate(void*) TcommandEngine::executeCommand(SophiaExecutable*) /apps/Linux.x86_64/maya-2022.3/lib/libExtensionLayer.so(+0x35afff) [0x7fb6be90bfff] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xeb37d) [0x7fb6be3e137d] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc8981) [0x7fb6be3be981] SophiaExecutable::evaluate(void*) TcommandEngine::executeCommand(SophiaExecutable*) /apps/Linux.x86_64/maya-2022.3/lib/libExtensionLayer.so(+0x35bac3) [0x7fb6be90cac3] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xea62d) [0x7fb6be3e062d] fexec /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xea12d) [0x7fb6be3e012d] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xeb37d) [0x7fb6be3e137d] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc87e9) [0x7fb6be3be7e9] /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0xc8981) [0x7fb6be3be981] SophiaExecutable::evaluate(void*) TcommandEngine::executeCommand(Tstring const&, bool, bool, TmelCmdResult*, unsigned int) TscriptActionMixin::execute(Tevent const&, std::unique_ptr<TinterpreterResult, std::default_delete<TinterpreterResult> >*) TrunTimeCommand::doCommand(TargList&) /apps/Linux.x86_64/maya-2022.3/lib/libCommandEngine.so(+0x9e624) [0x7fb6be394624] 1 ```
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
7 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#49114
No description provided.