- Editado
Import data problem
Hi,
I'm getting an error when I'm trying to import data into spine.
The procedure is:
- Open a .spine project.
- Export data.
- Create an empty project
- Import the same data
- Get an error: "An error ocurred while importing the skeleton. Please be sure to choose a valid skeleton JSON or binary file"
This is the log:
Spine Launcher 1.8.20-full
Windows 8 x86 6.2
Java 1.7.0-u6-unofficial Oracle Corporation
OpenJDK Server VM
Up to date: 2.1.17
Licensed to: *****, *****
Spine 2.1.17 Professional, LWJGL
ATI Technologies Inc.
AMD Radeon HD 7670M
4.2.12420 Compatibility Profile Context 13.151.0.0
Started.
java.lang.RuntimeException: Invalid number of triangles: 0
at lN.a(SourceFile:388)
at lN.a(SourceFile:207)
at tZ.a(SourceFile:137)
at eS.a(SourceFile:91)
at fV.a(SourceFile:28)
at ek.a(SourceFile:181)
at ek.a(SourceFile:152)
at com.badlogic.gdx.scenes.scene2d.ui.Button.d(SourceFile:116)
at eM.b(SourceFile:90)
at fX.b(SourceFile:89)
at eq.a(SourceFile:57)
at es.b(SourceFile:348)
at o.b(SourceFile:96)
at av.e(SourceFile:306)
at ah.run(SourceFile:231)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:711)
at java.awt.EventQueue.access$000(EventQueue.java:104)
at java.awt.EventQueue$3.run(EventQueue.java:672)
at java.awt.EventQueue$3.run(EventQueue.java:670)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:681)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
And are you sure you are importing a JSON or Binary file and not a .Spine file?
I you want to import a .Spine file you need to use Import Project
Yes, I was trying to import a json file
Can you post or email the .spine file?
contact@esotericsoftware.com
Got it, thanks.
I've improved the error message so it tells what attachment has the problem. The problem is with the attachment "Bravo5" (under slot "Bravo5", not to be confused with the "Bravo5" attachment under slot "Bravo7"!), whose mesh vertices show up as a single point in Spine. I've fixed a different problem where clicking Edit Mesh for this attachment would cause Spine to hang.
Digging deeper, Bravo5 is a mesh with a strange problem
it seems to not have any triangles. I've added code to protect against this and issue a warning when a project is loaded. The project can now be exported and imported again. There is no problem with having many slots without attachments.
I'm not sure how this attachment got created with such bad state. I've never seen it happen. If you can manage to reproduce the problem, I'd love to get it fixed.