search

Home  >  Q&A  >  body text

线上Android APP报错stackoverflowerror

一般报这个错的原因是什么?我代码里并没有递归和循环调用的逻辑啊。而且报错点也看不出循环调用的逻辑,求助各位大牛

PHP中文网PHP中文网2771 days ago602

reply all(2)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:09:52

    Have you created a lot of threads? You should make good use of the thread pool. Generally, the reason for stackoverflow is either method loop calling or misuse of thread creation and failure to pay attention to thread recycling. This is also the meaning of making good use of the thread pool. .

    I have encountered similar errors before, and I felt it was baffling at first. It was only after I learned how to allocate stack memory that I suddenly realized it.

    reply
    0
  • 黄舟

    黄舟2017-04-18 09:09:52

    Recursive call...

    reply
    0
  • Cancelreply