- 編集済み
Spine command line trouble
Hi!
I encountered a problem when using the command line to repackage from skel to Json. Some files converting very well, but some files generate error. Through the editor all files are imported without errors! File in attachment.2.skel. Thank you!
Spine Launcher 3.6.34
Windows 10 Pro x86 6.2
Java 1.7.0_80 Esoteric Software
32-bit Server VM
Starting: Spine 3.5.51
Spine 3.5.51 Professional
Licensed to: .................................................com
JSON export: 2
Error starting Spine.
An unexpected error has occurred:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.lang.invoke.MethodHandleImpl$BindCaller$T/14020427.invoke_V(MethodHandleImpl.java:933)
at tzax.w.run(SourceFile:1559)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
at sa.a(SourceFile:459)
at sa.a(SourceFile:299)
at sa.a(SourceFile:94)
at sh.a(SourceFile:71)
at kO.a(SourceFile:131)
at kO.a(SourceFile:86)
at com.esotericsoftware.spine.editor.Editor.a(SourceFile:1342)
at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1313)
... 20 more
It only happens sometimes? How do we reproduce the error? Do we just keep doing exports and hope we see it? How many exports on average does it take (so we have some idea of when to stop exporting the same thing over and over :p)?
You are using Spine version 3.5.51. Does this happen in the latest version of Spine (3.6.52)? If so, does it still happen with 3.7.15-beta?
In attachment file make error all time in cmd line. But fine through the editor. I have lot binary files in 3.5.51, many of them generate errors with cmd line. Lates version Spine can't import earler version binary files( So i try only on 3.5.5. For migrate to new version of API we need to repack skel.bytes to Json. New API works fine with old Json and set error with old skel.bytes.
You should not store your skeletons as JSON or binary, but instead as Spine project files (.spine
). Newer versions of Spine can open .spine
files from any older version. The same is not true for JSON or binary.
Nate wroteYou should not store your skeletons as JSON or binary, but instead as Spine project files (
.spine
). Newer versions of Spine can open.spine
files from any older version. The same is not true for JSON or binary.
You're right! but this is my current job and there are no source codes, as they were done by other people.
Oh man, that's not good. Well, my first thought is that the failing files were not actually exported with 3.5.51. The first things written in the binary format is the Spine version. I suggest reading those to get the Spine version and make sure it is 3.5.51. Otherwise, the only reason for 3.5.51 to not be able to read a binary skeleton file that was exported with 3.5.51 is because there is a bug.
Latest spine with latest launcher. Constantly get this crash if exporting from command line
java.lang.NullPointerException
at com.esotericsoftware.spine.editor.Editor.a(SourceFile:1478)
at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1440)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.lang.invoke.MethodHandleImpl$BindCaller$T/32335226.invoke_V(MethodHandleImpl.java:933)
at tzax.y.run(SourceFile:1697)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:302)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:706)
at java.awt.EventQueue$3.run(EventQueue.java:704)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Command line looks like this (but I run several approx same, but different folders) and it fails on second animation:
""C:\Program Files (x86)\Spine\Spine.com" -i
"D:_PROJECTS_Blablabla\develop\town\Island09_work\anim\Cannibal_woman\Cannibal_woman.spine" -o "D:_PROJECTS_Blablabla\develop\town\Island09_work\tmp" -e export.json"
Hi!
I get the same error, but it happen when trying to generate the .skel from a .json file from command line.
Spine Launcher 3.5.21
Mac OS X x86_64 10.11.6
Java 1.7.0_51 Esoteric Software
64-bit Server VM
Starting: Spine 3.6.38
Spine 3.6.38 Professional
Binary export: fw_magic
Error starting Spine.
An unexpected error has occurred:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at java.lang.invoke.MethodHandleImpl$BindCaller$T/1975271113.invoke_V(MethodHandleImpl.java:934)
at tzax.w.run(SourceFile:1540)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.NullPointerException
at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1376)
... 20 more
Command line looks like this:
/Applications/Spine/Spine.app/Contents/MacOS/Spine -i /Users/blabla/Desktop/animation.json -o /Users/blabla/Desktop/output -e /tmp/export_bin_config.json
Content of export_bin_config.json:
{
"class": "com.esotericsoftware.spine.editor.Prefs$ExportBinary",
"project": "None",
"output": "/tmp/random_folder_416379828",
"extension": ".skel",
"nonessential": "False",
"createAtlas": false,
"texturePacker": null
}
With most of .json files generated with the same spine editor works perfect.
Would you add some lights on this?
Thanks in advance!
Thanks for reporting jesdi91! We'll take a look at it.
We've tested on 3.7.20-beta and exporting binary from JSON, JSON from binary, JSON from a project file, etc are working. Can you please try on 3.7.20-beta when it is released in a day or so?
Hi, I have tried with 3.7.20-beta and 3.7.23-beta with multiples configurations and spine never finish exporting the .skel from the .json file.
This is what the terminal shows:
/Applications/Spine/Spine.app/Contents/MacOS/Spine -i /tmp/....some_folder/export_json/skeleton.json -o /tmp/....some_folder/export_bin/skeleton.skel -e /tmp/....bla/export_bin_config_beta_3_7.json
Spine Launcher 3.5.21
Mac OS X x86_64 10.11.6
Java 1.7.0_51 Esoteric Software
64-bit Server VM
Starting: Spine 3.7.23-beta
Spine 3.7.23-beta Professional
Licensed to:
---
Binary export: skeleton.json
The content of "export_bin_config_beta_3_7.json" file:
{
"class": "export-binary",
"name": "Binary",
"project": "None",
"output": "/tmp/....bla/",
"open": false,
"extension": ".skel",
"nonessential": false,
"cleanUp": true,
"packAtlas": null
}
Sorry, I didn't mean for this to fall through the cracks. Are you still having trouble in the latest, 3.7.43-beta? If so, can you please post or email a project and export JSON that fails for you? contact@esotericsoftware.com
Hey guys, I was getting this same exception:
puzzler wroteLatest spine with latest launcher. Constantly get this crash if exporting from command line
java.lang.NullPointerException
at com.esotericsoftware.spine.editor.Editor.a(SourceFile:1478)
at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1440)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
Turns out it was being caused by my previously-existing export destination files being read-only due to being locked in version control (in my case, Perforce). Opening them for edit / making them not read-only seems to solve the problem.
Hope that helps someone.