<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1123</bug_id>
          
          <creation_ts>2015-01-28 01:17:26 +0100</creation_ts>
          <short_desc>Android Launcher/ClassLoaderUtil: Fails to work w/ Android 5.* (lollipop/art)</short_desc>
          <delta_ts>2019-03-29 17:54:45 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>2.3.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>1122</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>ee977a8a773b3461c42f64583d6cfe1ab5322b9e</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4552</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-01-28 01:17:26 +0100</bug_when>
    <thetext>Our Android ClassLoaderUtil, used to daisy chain dex ClassLoader
using GlueGen, Joal and Jogl APK files, doesn&apos;t work 
on Android 5.* (lollipop) with the art runtime.

See below adb log.

Seems like this is a known issue
  https://code.google.com/p/android/issues/detail?id=82122

Workaround mentioned is to copy the APK file(s) 
to a temp directory ..

+++

D/JogampClassLoader( 5162): jogamp dexPath: /data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln-793896077/jln-541934443/jogampDex
D/JogampClassLoader( 5162): S: userPackageNames: [com.jogamp.common, javax.media.opengl]; Launcher: appDir /data/data, dataDir: /data/data/jogamp.android.launcher, nativeLibraryDir /data/app/jogamp.android.launcher-1/lib/arm
W/System.err( 5162): TempFileCache: *** Reaper: deleteOldTempDirs in /data/data/jogamp.android.launcher/app_temp/jogamp/file_cache
W/System.err( 5162): TempFileCache: removeAll(/data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln2053167485)
W/System.err( 5162): TempFileCache: removeAll(/data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln2053167485/jln-793896077.tmp)
W/System.err( 5162): TempFileCache: removeAll(/data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln2053167485/jln-793896077)
W/System.err( 5162): TempFileCache: removeAll(/data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln2053167485/jln-793896077/jogampDex)
W/System.err( 5162): TempFileCache: removeAll(/data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln2053167485/jln-793896077/jogampDex/base.dex)
D/JogampClassLoader( 5162): S: userPackage: com.jogamp.common, apk /data/app/com.jogamp.common-1/base.apk, appDir /data/data, dataDir: /data/data/com.jogamp.common, nativeLibraryDir /data/app/com.jogamp.common-1/lib/arm
D/JogampClassLoader( 5162): APK[0] found: &lt;com.jogamp.common&gt; -&gt; &lt;/data/app/com.jogamp.common-1/base.apk&gt;
D/JogampClassLoader( 5162): APK[0] apks: &lt;/data/app/com.jogamp.common-1/base.apk&gt;
D/JogampClassLoader( 5162): APK[0] libs: &lt;/data/app/com.jogamp.common-1/lib/arm/&gt;
D/JogampClassLoader( 5162): S: userPackage: javax.media.opengl, apk /data/app/javax.media.opengl-1/base.apk, appDir /data/data, dataDir: /data/data/javax.media.opengl, nativeLibraryDir /data/app/javax.media.opengl-1/lib/arm
D/JogampClassLoader( 5162): APK[1] found: &lt;javax.media.opengl&gt; -&gt; &lt;/data/app/javax.media.opengl-1/base.apk&gt;
D/JogampClassLoader( 5162): APK[1] apks: &lt;/data/app/com.jogamp.common-1/base.apk:/data/app/javax.media.opengl-1/base.apk&gt;
D/JogampClassLoader( 5162): APK[1] libs: &lt;/data/app/com.jogamp.common-1/lib/arm/:/data/app/javax.media.opengl-1/lib/arm/&gt;
I/dex2oat ( 5178): /system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm --instruction-set-features=div --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --dex-file=/data/app/com.jogamp.common-1/base.apk --oat-fd=22 --oat-location=/data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln-793896077/jln-541934443/jogampDex/base.dex --runtime-arg -Xms64m --runtime-arg -Xmx512m
I/dex2oat ( 5178): dex2oat took 530.117ms (threads: 2)
W/art     ( 5162): Failed to find OatDexFile for DexFile /data/app/javax.media.opengl-1/base.apk ( canonical path /data/app/javax.media.opengl-1/base.apk) with checksum 0xd8c176a7 in OatFile /data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln-793896077/jln-541934443/jogampDex/base.dex
I/dex2oat ( 5181): /system/bin/dex2oat --runtime-arg -classpath --runtime-arg  --instruction-set=arm --instruction-set-features=div --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --dex-file=/data/app/javax.media.opengl-1/base.apk --oat-fd=20 --oat-location=/data/data/jogamp.android.launcher/app_temp/jogamp/file_cache/jln-793896077/jln-541934443/jogampDex/base.dex --runtime-arg -Xms64m --runtime-arg -Xmx512m

+++</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4554</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-01-28 02:04:33 +0100</bug_when>
    <thetext>ee977a8a773b3461c42f64583d6cfe1ab5322b9e
  Fixed as described (copy APK file)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>