10000 Setting string value to `width` or `height` of ImageAssetOptions results in an error on android · Issue #6289 · NativeScript/NativeScript · GitHub
[go: up one dir, main page]

Skip to content
Setting string value to width or height of ImageAssetOptions results in an error on android #6289
Open
@vtrifonov

Description

@vtrifonov

Tell us about the problem

Setting string value to width or height of ImageAssetOptions results on the following error on android API level 22:

System.err: java.lang.RuntimeException: Unable to resume activity {org.nativescript.preview/com.tns.NativeScriptActivity}: java.lang.IllegalArgumentException: bitmap size exceeds 32 bits
System.err: 	at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986)
System.err: 	at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017)
System.err: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)
System.err: 	at android.os.Handler.dispatchMessage(Handler.java:102)
System.err: 	at android.os.Looper.loop(Looper.java:135)
System.err: 	at android.app.ActivityThread.main(ActivityThread.java:5254)
System.err: 	at java.lang.reflect.Method.invoke(Native Method)
System.err: 	at java.lang.reflect.Method.invoke(Method.java:372)
System.err: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
System.err: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
System.err: Caused by: java.lang.IllegalArgumentException: bitmap size exceeds 32 bits

Which platform(s) does your issue occur on?

Android, older API levels, works on API 27

Please tell us how to recreate the issue in as much detail as possible.

Can be easily reproduced with the nativescript-imagepicker demo, by returning string("300") from this method and then picking single image


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0