Cocos studio won't run anymore

Hi, just today cocos studio completely stopped working for me. It was just working fine a few days ago. I don’t remember installing any OS updates, etc.

It just tries to load and crashes. When running from console I can see the following log:

++ basename ./CocosStudio
+ exeName=CocosStudio.exe
+ export 'ACLOCAL_FLAGS=-I /Library/Frameworks/Mono.framework/Versions/Current/share/aclocal'
+ ACLOCAL_FLAGS='-I /Library/Frameworks/Mono.framework/Versions/Current/share/aclocal'
+ export PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin:/opt/local/bin:/opt/local/sbin:/Users/piotr/Documents/pierdoly:/Applications/Cocos/frameworks:/Users/piotr/Documents/pierdoly/apache-ant-1.9.4/bin:/opt/local/bin:/opt/local/sbin:/Users/piotr/sdk/tools:/Users/piotr/sdk/platform-tools:/Users/piotr/sdk:/Users/piotr/sdk/ndk-bundle:/Users/piotr/Documents/pierdoly/cocos2d-x-3.14/templates:/Users/piotr/Documents/pierdoly/cocos2d-x-3.14/tools/cocos2d-console/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS
+ PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin:/opt/local/bin:/opt/local/sbin:/Users/piotr/Documents/pierdoly:/Applications/Cocos/frameworks:/Users/piotr/Documents/pierdoly/apache-ant-1.9.4/bin:/opt/local/bin:/opt/local/sbin:/Users/piotr/sdk/tools:/Users/piotr/sdk/platform-tools:/Users/piotr/sdk:/Users/piotr/sdk/ndk-bundle:/Users/piotr/Documents/pierdoly/cocos2d-x-3.14/templates:/Users/piotr/Documents/pierdoly/cocos2d-x-3.14/tools/cocos2d-console/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS
+ export DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib:/lib:/usr/lib
+ DYLD_FALLBACK_LIBRARY_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib:/lib:/usr/lib
+++ dirname ./CocosStudio
++ cd .
++ pwd
+ DIR='/Applications/Cocos/Cocos Studio 2.app/Contents/MacOS'
+ FilePath='/Applications/Cocos/Cocos Studio 2.app/Contents/MacOS/../../../Library/CocosStudio.exe'
+ exec mono '/Applications/Cocos/Cocos Studio 2.app/Contents/MacOS/../../../Library/CocosStudio.exe' ''
INFO [2017-09-06 13:40:26Z]: Did not find previous version from which to migrate data
INFO [2017-09-06 13:40:26Z]: Initializing Runtime Mono 5.2.0.215
2017-09-06 13:40:26,211 [ERROR] [Thrd:1] CocoStudio.Basic.CSLogger.Error(:0) - Initialize PlatformService failed.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: Mac integration is not yet 64-bit safe
  at MonoDevelop.MacIntegration.MacPlatformService..ctor () [0x0003b] in <25a4362effd844e7a17c3c87730b1a42>:0 
  at CocoStudio.MacPlatform.CSMacPlatformService..ctor () [0x00000] in <96777f5c8b16431ab1270a38e0266c30>:0 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
   --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
  at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x000a8] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
  at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
  at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <c9f8153c41de4f8cbafd0e32f9bf6b28>:0 
  at Mono.Addins.TypeExtensionNode.CreateInstance () [0x00006] in <2ffc224e044142dcb4bf7f824bd84e0b>:0 
  at CocoStudio.Core.PlatformAdapter.Initialize () [0x00048] in <0b405dd02fcc4f12b213290a55ab534c>:0 
2017-09-06 13:40:26,239 [INFO ] [Thrd:1] CocoStudio.Basic.CSLogger.Info(:0) - 传入参数指定的文件不存在

Unhandled Exception:
AppKit.AppKitThreadAccessException: AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
  at AppKit.NSApplication.EnsureUIThread () [0x0001f] in <144b4394887a49a181525267bcf3308c>:0 
  at AppKit.NSEvent.AddLocalMonitorForEventsMatchingMask (AppKit.NSEventMask mask, AppKit.LocalEventHandler handler) [0x00001] in <144b4394887a49a181525267bcf3308c>:0 
  at MonoDevelop.Components.Commands.CommandManager..ctor (Gtk.Window root) [0x000bf] in <8624976a07c1424abcce94db55e7d33c>:0 
  at MonoDevelop.Components.Commands.CommandManager..ctor () [0x00000] in <8624976a07c1424abcce94db55e7d33c>:0 
  at CocoStudio.Core.Services.Initialize () [0x00005] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.Core.MainWindow.Initialize () [0x00000] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.Core.View.Workbench.Initialize (MonoDevelop.Core.IProgressMonitor monitor) [0x00020] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.Core.Starter.Run () [0x0000c] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.UI.Program.Main (System.String[] args) [0x0003a] in <bb872de9514247efaaca515dd7d90a61>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: AppKit.AppKitThreadAccessException: AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
  at AppKit.NSApplication.EnsureUIThread () [0x0001f] in <144b4394887a49a181525267bcf3308c>:0 
  at AppKit.NSEvent.AddLocalMonitorForEventsMatchingMask (AppKit.NSEventMask mask, AppKit.LocalEventHandler handler) [0x00001] in <144b4394887a49a181525267bcf3308c>:0 
  at MonoDevelop.Components.Commands.CommandManager..ctor (Gtk.Window root) [0x000bf] in <8624976a07c1424abcce94db55e7d33c>:0 
  at MonoDevelop.Components.Commands.CommandManager..ctor () [0x00000] in <8624976a07c1424abcce94db55e7d33c>:0 
  at CocoStudio.Core.Services.Initialize () [0x00005] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.Core.MainWindow.Initialize () [0x00000] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.Core.View.Workbench.Initialize (MonoDevelop.Core.IProgressMonitor monitor) [0x00020] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.Core.Starter.Run () [0x0000c] in <0b405dd02fcc4f12b213290a55ab534c>:0 
  at CocoStudio.UI.Program.Main (System.String[] args) [0x0003a] in <bb872de9514247efaaca515dd7d90a61>:0 

I know it’s EOL’ed, but I’m asking other users - what’s wrong? Do you experience something like this as well? Btw I’ve tried restarting OS.

I’m on Mac btw. On Windows, it works just fine.

Did a newer version of Mono get installed?

Oh I remember now! I’ve installed Visual Studio for Mac few days ago. I don’t need it though, I’ve removed it, but Cocos Studio still doesn’t work.

Was there an uninstaller? I wonder if there are frameworks hanging around or that were overwritten by newer versions? Maybe symlinked to annewer version and changing the symlink back would solve it.

I’ve used their script to uninstall.

Ok, after reinstalling Cocos Studio it’s working again!!! Great :slight_smile:

1 Like

Awesome. Must have been a framework issue!