jayn

I just updated my project to 3.8 and now at run-time it's giving this error
E/AndroidRuntime: FATAL EXCEPTION: GLThread 155
Process: com.heroes.game, PID: 3085
java.lang.IllegalArgumentException: name cannot be null.
at com.esotericsoftware.spine.Skin.<init>(Skin.java:54)
at com.esotericsoftware.spine.SkeletonJson.readSkeletonData(SkeletonJson.java:259)
Occurs when I initialize a skeleton data:
humanSkeletonData = humanJson.readSkeletonData(Gdx.files.internal(AssetPaths.HUMAN_JSON))
Originate from SkeletonJson.java (second line):
for (JsonValue skinMap = root.getChild("skins"); skinMap != null; skinMap = skinMap.next) {
Skin skin = new Skin(skinMap.name);
for (JsonValue slotEntry = skinMap.child; slotEntry != null; slotEntry = slotEntry.next) {
SlotData slot = skeletonData.findSlot(slotEntry.name);
if (slot == null) throw new SerializationException("Slot not found: " + slotEntry.name);
for (JsonValue entry = slotEntry.child; entry != null; entry = entry.next) {
try {
Attachment attachment = readAttachment(entry, skin, slot.index, entry.name, skeletonData);
if (attachment != null) skin.addAttachment(slot.index, entry.name, attachment);
} catch (Exception ex) {
throw new SerializationException("Error reading attachment: " + entry.name + ", skin: " + skin, ex);
}
}
}
skeletonData.skins.add(skin);
if (skin.name.equals("default")) skeletonData.defaultSkin = skin;
}
I didn't change any skin related in my project, what does it mean?
jayn
  • Posts: 41

Nate

Did you export your Spine projects using 3.8?
User avatar
Nate

Nate
  • Posts: 9161

jayn

I think so, the software version says 3.8.55 and I just export it like I normally would. I just switched back to older version spine export files and they work fine, only error with the new ones.
jayn
  • Posts: 41

Nate

From your exception stacktrace:
at com.esotericsoftware.spine.Skin.<init>(Skin.java:54)
However, Skin line 54 is blank:
spine-runtimes/Skin.java at 3.8
I'm guessing you don't have the 3.8 runtime or maybe your IDE hasn't refreshed.
User avatar
Nate

Nate
  • Posts: 9161

jayn

Oh my bad, forgot to update IDE. Is the new version is 3.8.55.1? I've tried that but it's not right.
jayn
  • Posts: 41

Nate

Yes, that should work. Maven version numbers get an extra number, for reasons.
User avatar
Nate

Nate
  • Posts: 9161

jayn

Hmm. It won't sync for me.
jayn
  • Posts: 41

Nate

User avatar
Nate

Nate
  • Posts: 9161


Return to Runtimes