gpt4 book ai didi

mono - 运行 MonoTouch 应用程序时出现 SIGABRT 错误

转载 作者:行者123 更新时间:2023-12-01 01:34:58 25 4
gpt4 key购买 nike

我是 MonoTouch 的新手,而且很多时候,当我尝试在 iPhone 模拟器( Debug模式和常规模式)上运行我的 MonoTouch 应用程序时,我收到一条以以下消息开头的长错误输出:

Error connecting stdout and stderr (127.0.0.1:10001) Couldn't register com.yourcompany.[appnamehere] with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Stacktrace:

at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00004> at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00004> at MonoTouch.UIKit.UIApplication.Main (string[],string,string) <0x00089> at MonoTouch.UIKit.UIApplication.Main (string[]) <0x00014> at PodcastManager.Application.Main (string[]) <0x00010> at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) <0x00043>



并以:

=================================================================

Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

=================================================================



奇怪的是它有时会起作用。有一次,我的机器重新启动就做到了。其他的,只需重新启动 MonoDevelop 和/或模拟器。

如果您认为这可能有帮助,我可以提供整个错误输出。

有任何想法吗?

最佳答案

这是单点触控调试器的问题。有时,当应用程序崩溃时,调试器会卡在内存中,这会阻止您再次运行该应用程序。正如您所说,有时关闭 MonoDevelop 和模拟器足以清理调试器,有时您需要完全重启。这也是我的经验,这可能是我迄今为止发现的唯一的单点触控不好的地方。

很多时候,我可以直接从控制台终止进程。为此,请打开控制台并键入“top”。您将看到使用最多内存的进程列表,您的应用程序可能会排在最前面,几乎 100% 使用了 cpu。保存该行的 id,然后键入 q 退出。现在输入“kill -9 ???”在哪里 ???是您从顶部获得的 ID。

Monotouch 2.0 修复了很多这些问题,如果您还没有更新,我强烈建议您这样做。我正在运行 2.0 的测试版 channel ,它更加稳定。崩溃从每小时 1 或 2 次下降到每天 1 或 2 次。但是,不幸的是,它仍然会发生。

关于mono - 运行 MonoTouch 应用程序时出现 SIGABRT 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2600122/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com