Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unity] Import skeletondata.asset files error in Unity Editor for OSX #894

Closed
tuzihao opened this issue May 6, 2017 · 15 comments
Closed
Assignees

Comments

@tuzihao
Copy link

tuzihao commented May 6, 2017

Unity(Latest version 5.6.0f3 - iOS platform) would freeze when import SkeletonData.asset file generated by spine

@tuzihao tuzihao changed the title Unity Import skeletondata.asset files error [Bug] Unity Import skeletondata.asset files error May 6, 2017
@tuzihao tuzihao changed the title [Bug] Unity Import skeletondata.asset files error [Unity] Bug - Import skeletondata.asset files error May 6, 2017
@tuzihao tuzihao changed the title [Unity] Bug - Import skeletondata.asset files error [Unity] Import skeletondata.asset files error May 6, 2017
@pharan
Copy link
Contributor

pharan commented May 7, 2017

Are you saying the Unity Editor freezes? Or it freezes when testing on the device?

Were there any errors logged?

@tuzihao
Copy link
Author

tuzihao commented May 16, 2017

Unity freezes when I open project. There is Unity crashlog in the /Library/CrashedAssetImports.txt. It freezes when import skeletondata.asset. But import this data after project opened, it would succeed.

@pharan
Copy link
Contributor

pharan commented May 16, 2017

So Unity editor freezes.
Are you using Unity for macOS/OS X?
We have not seen this problem yet but thanks for reporting. We still need to investigate the cause on a test machine.

@pharan pharan self-assigned this May 16, 2017
@tuzihao
Copy link
Author

tuzihao commented May 16, 2017

Yes MacOS Sierra Unity 5.6.0

@ownself
Copy link

ownself commented May 22, 2017

I met same issue here, with Mac Unity, 5.6.1f1, editor freezes when "importing small assets". after open log, it stops at importing SkeletonData.asset

Edit: It turns out after disabling "Metal API in Editor" will fix the problem.

@pharan
Copy link
Contributor

pharan commented May 25, 2017

Thanks for sharing, @ownself!

That doesn't quite make sense, but we'll try to see what's up.

@pharan pharan changed the title [Unity] Import skeletondata.asset files error [Unity] Import skeletondata.asset files error in OSX May 30, 2017
@pharan pharan changed the title [Unity] Import skeletondata.asset files error in OSX [Unity] Import skeletondata.asset files error in Unity Editor for OSX May 30, 2017
@pharan
Copy link
Contributor

pharan commented Jun 19, 2017

I wasn't able to reproduce this crash.
Unity 5.6.1 in OSX, I had Metal enabled and tried to import a raw set of json, atlas.txt and png. I separately tested importing a set with SkeletonDataAsset and AtlasAsset. No crashes.
So this might may not be happening to all setups.

In any case, disabling "Metal API in Editor" seems to have helped people who have run into this problem.

@pharan pharan added the bug label Jun 23, 2017
@remmarcoux
Copy link

Having the same issue when I checkout my project on a Mac. According to this issue (link) it would start after deleting your Library Folder. In my case, the workstation never had a Library folder to begin with, so it was never populated beforehand, therefore the issue might be related in this fashion...

@MrMengis
Copy link

MrMengis commented Aug 31, 2017

We are experiencing this problem on macOS 10.12.6 with Unity 5.6.3p1. Can someone explain how to disable the "Metal API in Editor" please?

*Update: for anyone curious the answer is to change {project root folder}/ProjectSettings/ProjectSettings.asset
from:
metalEditorSupport: 1
to:
metalEditorSupport: 0

@pharan
Copy link
Contributor

pharan commented Sep 1, 2017

You could have also accessed it in one of the preferences menu inspectors. I forget which one, I'm currently not on a mac.

@MrMengis
Copy link

MrMengis commented Sep 1, 2017

You could have also accessed it in one of the preferences menu inspectors. I forget which one, I'm currently not on a mac.

Unfortunately, using the editor was not an option as the project could not be opened using the metal API without significant changes to the Assets/ data. A 1 character change in a single text file seemed the less invasive workaround.

@chaixl
Copy link

chaixl commented Sep 20, 2017

Having the same issue

@homes815
Copy link

try this.

spine-unity/Asset Types/Editor/SkeletonDataAssetInspector.cs

#if UNITY_EDITOR_WIN
[CustomEditor(typeof(SkeletonDataAsset)), CanEditMultipleObjects]
#endif
public class SkeletonDataAssetInspector : UnityEditor.Editor

@pharan
Copy link
Contributor

pharan commented Jan 6, 2018

If someone is still having this issue in the latest versions of Unity, please post a comment.

@pharan pharan closed this as completed Jan 6, 2018
@fightingplane
Copy link

I'm still suffering this bug in Unity 5.6.0f1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

8 participants