Calsign / APDE

Source code for APDE: Create and run Processing sketches on an Android device.
GNU General Public License v2.0
338 stars 76 forks source link

small bug with loadImage on App #99

Open Erdien opened 3 years ago

Erdien commented 3 years ago

I got an annoying bug that I encountered while running an app (on preview mode everything is alright) Urfortunately I'm not sure how to recreate it. The bug occurred when I tried to load an external image using image opener with image/* filter. the file path was alright, but loadImage() wasn't working. I checked the privileges (ok), tried to overwrite source code (unsuccessful) and finaly I tried to copy code to another sketch. At the new sketch everything is working fine. I tried to compare both apks:

  1. the only changes in classes.dex was change of the sketch name and package (everything ok)
  2. there was some changes in /META-INF/ (everything ok (certificates, etc.))
  3. no changes in assets
  4. in res there was few major changes in 3 folders:
    • /res/values-v17/
    • /res/values-v21/
    • /res/values-v24/ compare.zip

Edit: I tried to swap dexes between working and not working sketch. Not working code wasn't working with the working stetch's files, and working code was was working with the not working sketch. So there is something in dex that I didn't catched. I think, that I found how to recreate the bug. I changed Version Code to 0 (after changing it to 1 the bug occurs anyway)