Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vtrifonov opened this issue Sep 20, 2018 · 1 comment · May be fixed by #10668
Open

Comments

@vtrifonov
Copy link
Contributor

vtrifonov commented Sep 20, 2018

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.

@vchimev vchimev self-assigned this Oct 16, 2018
@vchimev vchimev removed their assignment Jul 22, 2019
@Dheeraj12121
Copy link

guide me to reproduce the steps.

@db-r-hashimoto db-r-hashimoto linked a pull request Jan 17, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants