Uploaded image for project: 'Paintroid'
  1. Paintroid
  2. PAINTROID-242

Crash when adding a sticker via "Import Image" tool in Paintroid lib in Catroid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Merged
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.3, 2.8.0, 2.8.1
    • Labels:
    • Actual Behavior:
      FATAL EXCEPTION
    • Affected App Version:
    • Affected Hardware:
      Samsung, Google Pixel, ...

      Description

      This crash happens only in Catroid, but not in the Pocket Paint app (Paintroid as a separate app), therefore it is a Catroid-specific bug. Nevertheless it happens while still within the Paintroid lib part, i.e., before even the users attempts to return to Catroid, specifically the crash seems to happen in org.catrobat.paintroid, here:

      org.catrobat.paintroid.ui.fragments.CatroidMediaGalleryFragment$1.onDownloadStart (CatroidMediaGalleryFragment.java:84)
      

       

      The crash does not happen when adding a local photo or other image from the device using the "Import Image" tool in the Paintroid lib. Only Catrobat media gallery stickers selected on the Catroweb webview lead to the crash.

      The crash also does not happen when adding a Catrobat media look from the Catroweb webview directly in Catroid (without Paintroid).

      Note: This is both an IDE and a Stage bug, because the crash happens both when editing a look in the IDE as well as when Paintroid is called on the stage using an "Edit look" or "Paint new look" brick.

      How to reproduce:

      1. When editing a look or adding a new look, select the "Import image" tool (tool at the bottom right, see the first attached screenshot).
      2. Tap on "Stickers" with the Catrobat logo next to it, see second screenshot.
      3. Wait for the webview from share, then tap on one of the panda stickers (or select any other sticker), see third screenshot.
      4. Observe that Catroid crashes.

      Stacktrace:

      04-18 00:25:47.772 E/AndroidRuntime(20758): FATAL EXCEPTION: main
      04-18 00:25:47.772 E/AndroidRuntime(20758): Process: org.catrobat.catroid.independent_20210417_1205, PID: 20758
      04-18 00:25:47.772 E/AndroidRuntime(20758): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/nostra13/universalimageloader/core/ImageLoader;
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at org.catrobat.paintroid.ui.fragments.CatroidMediaGalleryFragment$1.onDownloadStart(CatroidMediaGalleryFragment.java:84)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at j6.handleMessage(chromium-TrichromeWebViewGoogle.aab-stable-432409333:154)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at android.os.Handler.dispatchMessage(Handler.java:107)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at android.os.Looper.loop(Looper.java:237)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at android.app.ActivityThread.main(ActivityThread.java:8154)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at java.lang.reflect.Method.invoke(Native Method)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
      04-18 00:25:47.772 E/AndroidRuntime(20758): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.nostra13.universalimageloader.core.ImageLoader" on path: DexPathList[[zip file "/data/app/org.catrobat.catroid.independent_20210417_1205-hQQ_h4xF7aff8-V226uA0A==/base.apk"],nativeLibraryDirectories=[/data/app/org.catrobat.catroid.independent_20210417_1205-hQQ_h4xF7aff8-V226uA0A==/lib/arm64, /data/app/org.catrobat.catroid.independent_20210417_1205-hQQ_h4xF7aff8-V226uA0A==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
      04-18 00:25:47.772 E/AndroidRuntime(20758): 	... 8 more
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): uncaughtException: 
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/nostra13/universalimageloader/core/ImageLoader;
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at org.catrobat.paintroid.ui.fragments.CatroidMediaGalleryFragment$1.onDownloadStart(CatroidMediaGalleryFragment.java:84)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at j6.handleMessage(chromium-TrichromeWebViewGoogle.aab-stable-432409333:154)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at android.os.Handler.dispatchMessage(Handler.java:107)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at android.os.Looper.loop(Looper.java:237)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at android.app.ActivityThread.main(ActivityThread.java:8154)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at java.lang.reflect.Method.invoke(Native Method)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:496)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1100)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.nostra13.universalimageloader.core.ImageLoader" on path: DexPathList[[zip file "/data/app/org.catrobat.catroid.independent_20210417_1205-hQQ_h4xF7aff8-V226uA0A==/base.apk"],nativeLibraryDirectories=[/data/app/org.catrobat.catroid.independent_20210417_1205-hQQ_h4xF7aff8-V226uA0A==/lib/arm64, /data/app/org.catrobat.catroid.independent_20210417_1205-hQQ_h4xF7aff8-V226uA0A==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
      04-18 00:25:48.067 E/BaseExceptionHandler(20758): 	... 8 more
      04-18 00:25:48.204 E/Zygote  (23098): isWhitelistProcess - Process is Whitelisted
      04-18 00:25:48.205 E/Zygote  (23098): accessInfo : 1
      04-18 00:25:48.226 E/t_20210417_120(23098): Unknown bits set in runtime_flags: 0x8000
      04-18 00:25:48.300 E/SpriteActivity(23098): SpriteActivity does not support recovery from process recreation, finishing activity.
      04-18 00:25:48.328 E/ProjectActivity(23098): ProjectActivity does not support recovery from process recreation, finishing activity.
      

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          75 kB
        2. screenshot-2.png
          screenshot-2.png
          50 kB
        3. screenshot-3.png
          screenshot-3.png
          79 kB

          Issue Links

            Activity

              People

              Assignee:
              WolfgangSlany Wolfgang Slany
              Reporter:
              WolfgangSlany Wolfgang Slany
              Developer:
              Lorenz Dirry Lorenz Dirry
              Code Reviewer:
              Julia Herold Julia Herold
              Code Merger:
              Wolfgang Slany Wolfgang Slany
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: