get Power fail/restart exceptions during Android native debugging

Hi! I got many "power fail/restart" exceptions on uncertain locations during native debugging. I guess what caused it is that I access sensors data by sensor manager. I can't show my code and I remove my all C++ code won't stop this. Can you tell what cause this exactly? How can I get through this?

Thanks a lot for your helping.

Tagged:

Answers

  • jezhjezh Member, Xamarin Team Xamurai

    Since we don't know the details about your app, so we can't give you the cause about the cause.
    You could try to catch the exception and analyze the error logs at first.
    Only in this way can you possibly find out the cause and reason of the problem

  • YupengJiaYupengJia Member ✭✭

    Hi, @jezh .
    Thank you for your replying. I am glad to share my apps. I make a simple demo without any functional code and It remains the same issue.
    How to reproduce this issue:
    1. debug my app in C++ mode;
    2. select "AR" from the menu;
    3. click the bottom right floating button, and click preview mode > AR.
    4. wait for seconds, and I get this;

    You can get my demo from this.
    https://1drv.ms/u/s!AgrLuI-w8UdAncJOyRMaHP3rygEhpQ
    By the way, My IDE is visual studio 2019.
    Thanks again.

Sign In or Register to comment.