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

LogicException: The Application does not created, please call new Application() first. #171

Closed
panshengneng opened this issue Jan 8, 2019 · 2 comments

Comments

@panshengneng
Copy link

Log日志:
LogicException: The Application does not created, please call new Application() first.
CatLib.App.get_Handler () (at Assets/CatLib/Vendor/CatLib.Core/CatLib/App.cs:60)
CatLib.App.Call (System.Object instance, System.Reflection.MethodInfo methodInfo, System.Object[] userParams) (at Assets/CatLib/Vendor/CatLib.Core/CatLib/App.cs:585)
CatLib.CatLibDispatcherExtend+<>c__DisplayClass1_0.b__0 (System.String _, System.Object[] userParams) (at Assets/CatLib/Vendor/CatLib.Core/CatLib/Events/DispatcherExtend.cs:60)
CatLib.Dispatcher+<>c__DisplayClass13_0.b__0 (System.String eventName, System.Object[] payloads) (at Assets/CatLib/Vendor/CatLib.Core/Support/Events/Dispatcher.cs:211)
CatLib.Event.Call (System.String eventName, System.Object[] payloads) (at Assets/CatLib/Vendor/CatLib.Core/Support/Events/Event.cs:57)
CatLib.Dispatcher.Dispatch (System.Boolean halt, System.String eventName, System.Object[] payload) (at Assets/CatLib/Vendor/CatLib.Core/Support/Events/Dispatcher.cs:254)
CatLib.Dispatcher.Trigger (System.String eventName, System.Object[] payloads) (at Assets/CatLib/Vendor/CatLib.Core/Support/Events/Dispatcher.cs:104)
CatLib.Application.Trigger (System.String eventName, System.Object[] payloads) (at Assets/CatLib/Vendor/CatLib.Core/CatLib/Application.cs:447)
CatLib.Application.Terminate () (at Assets/CatLib/Vendor/CatLib.Core/CatLib/Application.cs:199)
CatLib.Framework.OnDestroy () (at Assets/CatLib/Framework.cs:183)

出现过程:
1、创建一个新的Unity工程;
2、导入catlib-getstarting-1.3.0-beta.unitypackage和catlib-framework-1.3.0-beta.unitypackage;
3、创建一个新的GameObject,把Main.cs拖到新创建的GameObject上。 运行正常。
4、把Assets/CatLib/Vendor/CatLib.Core文件夹下的DLL,替换为https://github.com/CatLib/Core/src/CatLib.Core源码。运行,停止,看到上面报错日志。

开发环境:
macOS 10.14.2;
Unity 2018.3.0 f3;

Demo链接:
https://pan.baidu.com/s/1vu-uHQzwjdbYG1jYgQ-UoA

@panshengneng
Copy link
Author

CatLib_Test.zip

@ymh199478
Copy link
Contributor

问题已经确定, v1.3.1版本修复

ymh199478 added a commit that referenced this issue Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants