IPCapture code example crashes

edited July 6 in Android Mode

I am trying to use the example code from IPCapture, but it crashes right after start. I think I had it running once, but now I am not so sure. I do have the permissions set as required in the code. The app crashes Nexus 5 with latest LineageOS. The emulator also crashes. The code works fine in Java mode.

Tagged:

Answers

  • What Android Mode version and Processing version are you using? Also what Android API?

    It will b helpful if you can copy and paste the error message below.

    Kf

  • Processing 3.3.4, Android Mode - last official release (0254?), Android API 25. On Android there is no error message other than „app stopped working” (or something like that, I have the Polish version), in the console there is only: at processing.core.PApplet.run(Unknown Source) at java.lang.Thread.run(Thread.java:761)

    In the emulator the app also stops, but there is nothing in the console.

  • I did some debugging and it seems the problem is related to the Internet connection or the Internet permission.

    If I run the app on the device without the permission, it runs fine. If I run it again just after turning the permission on, it runs fine. I can even restart the phone and the app responds properly.

    The problem starts when I compile it again. Then it crashes and cannot be run at all. Maybe the permission is not reapplied correctly at second and further compilations?

  • Strange -- are you able to strip a copy of your code down to a minimal example that exhibits this second-compile crash bug? If so perhaps you should file a bug report.

Sign In or Register to comment.