2010-04-08 122 views
4

我是MonoTouch的新手,當我嘗試在iPhone模擬器上運行我的MonoTouch應用程序(調試模式和常規)時,我收到一個長的錯誤輸出,以下消息:運行MonoTouch應用程序時出現SIGABRT錯誤

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和/或模擬器。

如果您認爲可能有所幫助,我可以提供整個錯誤輸出。

任何想法?

回答

1

- 更新 - 更新到2.0.2後我還沒有看到這個問題。

它足夠長的時間玩,和整個this bug報告來後,我走到那,直到它的固定以防止此錯誤是在IDE NEVER停止調試會話的方式結束。只要您通過點擊主頁按鈕來停止代碼不在斷點處的調試會話,就會顯示您將避免這種情況。

+0

你可能仍然會隨機得到這個問題。一種解決方案是使用iPhone模擬器主頁按鈕停止調試器 – 2010-04-19 16:02:49

3

這是單觸式調試器的問題。有時候,當應用程序崩潰時,調試器掛在內存中,然後阻止您再次運行應用程序。正如你所說的,有時關閉MonoDevelop和模擬器足以清理調試器,有時需要完全重新啓動。這也是我的經驗,這可能是迄今爲止我用monotouch發現的唯一不好的事情。

很多時候,我可以直接從控制檯殺死進程。要做到這一點,打開控制檯並輸入「top」。你會看到使用最多內存的進程列表,你的應用可能會處於最佳狀態,幾乎100%使用cpu。保存該行的ID,然後輸入q退出。現在輸入「kill -9 ???」哪裏?是你從頂端獲得的ID。

Monotouch 2.0修正了很多這些問題,如果你還沒有更新,我會認真地推薦你這樣做。我正在運行2.0版本的beta版本,而且它很穩定。崩潰從每小時1或2次降至每天1或2次。不幸的是,它仍然發生。

+0

我今天升級到測試版頻道,但我可能已經處於不良狀態。我會重新啓動並給它另一個鏡頭... – 2010-04-08 15:00:30

+0

任何運氣?一般來說,重新啓動對我來說每次都有效。 – 2010-04-08 16:57:30

+0

第一次看起來不錯。今天晚些時候我會試着強調它。 – 2010-04-08 17:42:03

0

我認爲這個錯誤來自任何monodouch本地庫丟失。這是由於卸載Visual Studio或更新Xamarin而發生的。我遇到了相同的錯誤,並通過Unistalland重新安裝Xamarin Visual Studio和Xamarin Studio來解決它。它需要10分鐘,所有問題都解決了。

相關問題