應用程序中斷瘋狂 (Application interrupts like crazy)


問題描述

應用程序中斷瘋狂 (Application interrupts like crazy)

I had a perfectly running C++ (Android native) application .. then I introduced some try { } catch {} statements and if I debug the application it interrupts like crazy in random, correct pieces of code. If I run the application it stops for an interrupt Zygote (app_process) complains about signal 2, which is SIGINT.

I had a few try‑catch clauses in my application that was running fine before I added a ton of try‑catch clauses. At this point I am sure that there are a lot of nested try‑catch blocks, maybe the Android OS can't handle that many interrupts for nested blocks ?

I would like to mention that on Windows the same code runs flawlessly.

‑‑‑‑‑

參考解法

方法 1:

Do a full rebuild. Your debug info may be off. That's the best answer one can give with the info in the OP.

(by costy.petrisorLee Louviere)

參考文件

  1. Application interrupts like crazy (CC BY‑SA 3.0/4.0)

#interrupt #sigint #Exception #Android #C++






相關問題

無法在 java 命令行程序中捕獲中斷 (Unable to catch interrupt in java command line program)

不連續的 BitBlt 捕獲 (discontinuous BitBlt capture)

GPIO 更改狀態時如何更新 sysfs? (How is sysfs updated when a GPIO changes state?)

Linux IRQ 處理程序中的固有競爭條件 (Inherent race condition in Linux IRQ handlers)

STM32 外部中斷僅在調試模式下響應 (STM32 external interrupt responds only in debug mode)

Java中的線程 (Threading in Java)

如何在被 Python 殺死之前運行最後一個函數? (How to run one last function before getting killed in Python?)

在 C++ 中處理中斷 (Handling Interrupt in C++)

應用程序中斷瘋狂 (Application interrupts like crazy)

SetPriorityClass(REALTIME_PRIORITY_CLASS) 實際上做了什麼? (What does SetPriorityClass(REALTIME_PRIORITY_CLASS) actually do?)

如何找出軟件掛起的原因?(qemu + zephyr + tfm 的問題) (How to find out the cause of hanging software? (problem with qemu + zephyr + tfm))

將參數傳遞給系統調用 (Passing arguments to system calls)







留言討論