Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Setting string value to width or height of ImageAssetOptions results in an error on android #6289

Copy link
Copy link
Open
@vtrifonov

Description

@vtrifonov
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.