Title: Setting string value to `width` or `height` of ImageAssetOptions results in an error on android · Issue #6289 · NativeScript/NativeScript · GitHub
Open Graph Title: Setting string value to `width` or `height` of ImageAssetOptions results in an error on android · Issue #6289 · NativeScript/NativeScript
X Title: Setting string value to `width` or `height` of ImageAssetOptions results in an error on android · Issue #6289 · NativeScript/NativeScript
Description: 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/co...
Open Graph Description: 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 resu...
X Description: 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 resu...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/6289
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Setting string value to `width` or `height` of ImageAssetOptions results in an error on android","articleBody":"\u003c!--\r\nWe appreciate your feedback! While we are doing all we can to take care of every issue, sometimes we get overwhelmed. That's why\r\n - issues that are not constructive or describe problems that cannot be reproduced will be closed\r\n - feature requests or bug reports with unanswered questions regarding the behavior/reproduction for more than 20 days will be closed \r\n--\u003e\r\n\r\n### Tell us about the problem\r\nSetting string value to `width` or `height` of ImageAssetOptions results on the following error on android API level 22:\r\n```\r\nSystem.err: java.lang.RuntimeException: Unable to resume activity {org.nativescript.preview/com.tns.NativeScriptActivity}: java.lang.IllegalArgumentException: bitmap size exceeds 32 bits\r\nSystem.err: \tat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2986)\r\nSystem.err: \tat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017)\r\nSystem.err: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)\r\nSystem.err: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\nSystem.err: \tat android.os.Looper.loop(Looper.java:135)\r\nSystem.err: \tat android.app.ActivityThread.main(ActivityThread.java:5254)\r\nSystem.err: \tat java.lang.reflect.Method.invoke(Native Method)\r\nSystem.err: \tat java.lang.reflect.Method.invoke(Method.java:372)\r\nSystem.err: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\nSystem.err: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\nSystem.err: Caused by: java.lang.IllegalArgumentException: bitmap size exceeds 32 bits\r\n```\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid, older API levels, works on API 27\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nCan be easily reproduced with the nativescript-imagepicker demo, by returning string(\"300\") from [this method](https://github.com/NativeScript/nativescript-imagepicker/blob/4992d660bcfb3d33ad0f96d4e45170d79bea1fc0/demo/app/main-view-model.ts#L20) and then picking single image\r\n\r\n\r\n\r\n\r\n\r\n\u003cbountysource-plugin\u003e\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/63642231-setting-string-value-to-width-or-height-of-imageassetoptions-results-in-an-error-on-android?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github).\r\n\u003c/bountysource-plugin\u003e","author":{"url":"https://github.com/vtrifonov","@type":"Person","name":"vtrifonov"},"datePublished":"2018-09-20T16:00:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/6289/NativeScript/issues/6289"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:01b29549-b7d4-f593-9ec3-ad476a0fb405 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E628:E3F0D:19244E4:20AAF63:696B2DD8 |
| html-safe-nonce | ac83799b41f014c7f8f4b2e62e7e5e2fd8ed4a3e33a68f127022c2231bfc9d64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjI4OkUzRjBEOjE5MjQ0RTQ6MjBBQUY2Mzo2OTZCMkREOCIsInZpc2l0b3JfaWQiOiIxNDU1NzA3MjE3NDU1Njg5MTc2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8db791a334a396125a2d0bbe129c03009b37a51ff1b2f56c8705b39bb0d472cb |
| hovercard-subject-tag | issue:362256283 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/6289/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e11cf1c0a183b552f81f715993fd6109902e6038e809c701089aececde52f757/NativeScript/NativeScript/issues/6289 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e11cf1c0a183b552f81f715993fd6109902e6038e809c701089aececde52f757/NativeScript/NativeScript/issues/6289 |
| og:image:alt | 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 resu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vtrifonov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width