本文介紹了Android 致命信號 11的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
在我正在 Android 上開發的應用程序中,我不斷收到致命信號 11 錯誤.
In the app I'm developing on Android, I keep getting a Fatal Signal 11 error.
我認為這與我訪問內存的方式有關,但我無法弄清楚是什么原因造成的.
I think it's something to do with the way that I'm accessing the memory but I can't figure out what is causing it.
任何幫助將不勝感激!
這是 LogCat:
05-02 23:47:17.618: D/dalvikvm(590): GC_FOR_ALLOC freed 68K, 4% free 6531K/6787K, paused 101ms
05-02 23:47:17.638: I/dalvikvm-heap(590): Grow heap (frag case) to 7.619MB for 1228816-byte allocation
05-02 23:47:17.738: D/dalvikvm(590): GC_CONCURRENT freed 1K, 4% free 7730K/8007K, paused 5ms+14ms
05-02 23:47:17.878: D/dalvikvm(590): GC_FOR_ALLOC freed <1K, 4% free 7730K/8007K, paused 37ms
05-02 23:47:17.888: I/dalvikvm-heap(590): Grow heap (frag case) to 8.790MB for 1228816-byte allocation
05-02 23:47:17.998: D/dalvikvm(590): GC_CONCURRENT freed <1K, 4% free 8930K/9223K, paused 4ms+4ms
05-02 23:47:17.998: A/libc(590): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1)
推薦答案
我一直試圖在另一個 Class 中調用一個未初始化的 Canvas,所以當它試圖獲取它的高度或寬度時,它會崩潰.
I had been trying to call an uninitialised Canvas inside another Class so when it was trying to get the height or width of it, it would crash.
這篇關于Android 致命信號 11的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!