bugKawa - Bugs: bug #49432, Android: Failed resolving...

 
 

bug #49432: Android: Failed resolving Lgnu/kawa/models/DrawImage; interface 1032 'Ljava/awt/image/RenderedImage;

Submitted by:  Adrián Medraño Calvo <medranocalvo>
Submitted on:  Mon 24 Oct 2016 08:38:16 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: Run-time exceptionStatus: Need Info
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 20 Nov 2016 05:00:18 PM UTC, comment #3:

Great! Thanks for testing.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Sun 20 Nov 2016 02:37:58 PM UTC, comment #2:

Hello,

I tested configuring it --with-android (no mention of --without-awt). Builds and runs correctly :-).

I can't find how to change the ticket's status.

Thank you for your effort.

Best regards,
Adrián.

Adrián Medraño Calvo <medranocalvo>
Sun 30 Oct 2016 05:46:20 AM UTC, comment #1:

There actually was a --without-awt configure option, which was set by --with-android. However, --without-awt didn't do all it should do. Specifically, it did not turn off DisplayFormat's dependence on DrawImage (which depends on AWT).

I checked in a fix. Could you try it? I haven't tested it --with-android, though I tested --without-awt. Could you without an explicit --without-awt - as that is supposed to be implied by --with-android.

Porting the Pictures support to Android would be an interesting project (perhaps using VectorDrawable), though I doubt I'll get to it myself.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Mon 24 Oct 2016 08:38:16 PM UTC, original submission:

I'm getting the errors below in Android, after updating Kawa (r8988). As I understand it, the underlying issue is that there is no (or limited) awt support in Android, but Kawa tries to use it when formatting output. Porting Pictures to Android would probably mean using android.graphics (https://developer.android.com/reference/android/graphics/package-summary.html) as a base, though it'll probably be a major effort. Would it make sense to have a configure flag --without-awt which is implied by --with-android?

I/dalvikvm( 2776): Failed resolving Lgnu/kawa/models/DrawImage; interface 1032 'Ljava/awt/image/RenderedImage;'
W/dalvikvm( 2776): Link of class 'Lgnu/kawa/models/DrawImage;' failed
I/dalvikvm( 2776): Could not find method gnu.kawa.models.DrawImage.toPictureOrNull, referenced from method gnu.kawa
.functions.DisplayFormat.writePicture
W/dalvikvm( 2776): VFY: unable to resolve static method 5445: Lgnu/kawa/models/DrawImage;.toPictureOrNull (Ljava/la
ng/Object;)Lgnu/kawa/models/Picture;
D/dalvikvm( 2776): VFY: replacing opcode 0x71 at 0x0000
D/AndroidRuntime( 2776): Shutting down VM

Thank you,
Adrián.

E/AndroidRuntime( 2776): java.lang.RuntimeException: Unable to start activity ComponentInfo{someapp/someapp.debugactivity}: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2776): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
E/AndroidRuntime( 2776): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
E/AndroidRuntime( 2776): at android.app.ActivityThread.access$600(ActivityThread.java:141)
E/AndroidRuntime( 2776): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
E/AndroidRuntime( 2776): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2776): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2776): at android.app.ActivityThread.main(ActivityThread.java:5041)
E/AndroidRuntime( 2776): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2776): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2776): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 2776): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 2776): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2776): Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2776): at gnu.kawa.format.GenericFormat$MethodEntry.tryFormat(GenericFormat.java:171)
E/AndroidRuntime( 2776): at gnu.kawa.format.GenericFormat.tryFormat(GenericFormat.java:93)
E/AndroidRuntime( 2776): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2776): at android.app.ActivityThread.main(ActivityThread.java:5041)
E/AndroidRuntime( 2776): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2776): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2776): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 2776): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 2776): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2776): Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2776): at gnu.kawa.format.GenericFormat$MethodEntry.tryFormat(GenericFormat.java:171)
E/AndroidRuntime( 2776): at gnu.kawa.format.GenericFormat.tryFormat(GenericFormat.java:93)
E/AndroidRuntime( 2776): at gnu.kawa.format.GenericFormat.writeObject(GenericFormat.java:46)
E/AndroidRuntime( 2776): at gnu.kawa.functions.DisplayFormat.writeObject(DisplayFormat.java:551)
E/AndroidRuntime( 2776): at gnu.kawa.functions.ObjectFormat.print(ObjectFormat.java:69)
E/AndroidRuntime( 2776): at gnu.kawa.functions.ObjectFormat.format(ObjectFormat.java:88)
E/AndroidRuntime( 2776): at gnu.kawa.functions.ObjectFormat.format(ObjectFormat.java:129)
E/AndroidRuntime( 2776): at gnu.kawa.functions.ObjectFormat.format(ObjectFormat.java:57)
E/AndroidRuntime( 2776): at gnu.kawa.format.PadFormat.format(PadFormat.java:69)
E/AndroidRuntime( 2776): at gnu.kawa.functions.LispObjectFormat.format(LispFormat.java:787)
E/AndroidRuntime( 2776): at gnu.kawa.format.CompoundFormat.format(CompoundFormat.java:31)
E/AndroidRuntime( 2776): at gnu.kawa.functions.Format.formatToWriter(Format.java:43)
E/AndroidRuntime( 2776): at gnu.kawa.functions.Format.format(Format.java:25)
E/AndroidRuntime( 2776): at gnu.kawa.functions.Format.formatToString(Format.java:62)
E/AndroidRuntime( 2776): at gnu.kawa.functions.Format.format(Format.java:128)
E/AndroidRuntime( 2776): at gnu.kawa.functions.Format.applyN(Format.java:108)
E/AndroidRuntime( 2776): at gnu.kawa.functions.ApplyToArgs.applyN(ApplyToArgs.java:141)
E/AndroidRuntime( 2776): at gnu.kawa.functions.Apply.applyN(Apply.java:74)
E/AndroidRuntime( 2776): at gnu.mapping.ProcedureN.apply3(ProcedureN.java:48)
E/AndroidRuntime( 2776): at someapp.common.message$V(common.scm:42)
E/AndroidRuntime( 2776): at someapp.someapp.onCreate(someapp.scm:30)
E/AndroidRuntime( 2776): at someapp.debugactivity.onCreate(debugmain.scm:24)
E/AndroidRuntime( 2776): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 2776): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 2776): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
E/AndroidRuntime( 2776): ... 11 more
E/AndroidRuntime( 2776): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2776): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2776): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2776): at gnu.kawa.format.GenericFormat$MethodEntry.tryFormat(GenericFormat.java:167)
E/AndroidRuntime( 2776): ... 35 more
E/AndroidRuntime( 2776): Caused by: java.lang.NoClassDefFoundError: gnu.kawa.models.DrawImage
E/AndroidRuntime( 2776): at gnu.kawa.functions.DisplayFormat.writePicture(DisplayFormat.java:804)
E/AndroidRuntime( 2776): ... 38 more

Adrián Medraño Calvo <medranocalvo>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  • -unavailable- added by medranocalvo (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 20 Nov 2016 05:00:18 PM UTCbothnerOpen/ClosedOpen=>Closed
    Sun 30 Oct 2016 05:46:20 AM UTCbothnerStatusNone=>Need Info
      Assigned toNone=>bothner

    Back to the top


    Powered by Savane 3.1-cleanup1