[TIMOB-14346] Android: MapView crash while doing swipe
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2013-11-12T00:37:22.000+0000 |
Affected Version/s | Release 3.1.1 |
Fix Version/s | 2013 Sprint 23, 2013 Sprint 23 API |
Components | Android |
Labels | n/a |
Reporter | Radamantis Torres-Lechuga |
Assignee | Hieu Pham |
Created | 2013-06-21T22:48:00.000+0000 |
Updated | 2017-03-21T21:18:02.000+0000 |
Description
MapView using Alloy, is throwing the following message on the log and crash the app:
D/skia(12431): ------- imageref_ashmem create failed <(null)> 143360
If the map is inside of a tab, it's faster to reproduce the crash, use the following sample code:
<Alloy>
<TabGroup>
<Tab title="Tab 1" icon="KS_nav_ui.png">
<Window title="Tab 1">
<Label>I am Window 1</Label>
</Window>
</Tab>
<Tab title="Tab 2" icon="KS_nav_views.png">
<Window title="Tab 2">
<View id="mapview" ns="Ti.Map" animate="true" regionFit="true" userLocation="false" mapType="Ti.Map.STANDARD_TYPE" >
<Annotation id="mountainView"
latitude="37.390749" longitude="-122.081651"
title="Appcelerator Headquarters" subtitle="Mountain View, CA"
pincolor="Titanium.Map.ANNOTATION_RED"
leftButton="/images/appcelerator_small.png"
myid="1"/>
</View>
</Window>
</Tab>
</TabGroup>
</Alloy>
To reproduce the issue just zoom in into the map and start doing swipe to any direction.
I'm also attaching a log output of the crash
Attachments
File | Date | Size |
---|---|---|
device-2013-11-06-165326.png | 2013-11-07T01:06:26.000+0000 | 31558 |
device-2013-11-06-165542.png | 2013-11-07T01:06:26.000+0000 | 27811 |
mapCrash.txt | 2013-11-07T01:06:26.000+0000 | 425831 |
mapSampleLog.rtf | 2013-06-21T22:48:00.000+0000 | 66654 |
The issue is *reproducible* with: Appcelerator Studio, build: 3.1.3.201309132456 Titanium SDK, build:3.1.3.v20130916110056 CLI 3.1.2 Alloy 1.2.2-beta Devices: GalaxyS3 Android version 4.0.4 Zoomed a map and kept swiping to the right, it turned into a distorted map, and app had stopped.
Olga, which map module are you using? I can't reproduce the leak... In fact, memory never exceeds 25% of total cap heap for me.
Closing this since I'm unable to reproduce this behavior.
Hi [~hpham] I can reproduce the issue, attaching a couple of screenshots and a crash log. I tested with the latest master CI build (3.2.0.v20131106142445)
Which device and map build did you test this with? Latest master still have the old map zip, the latest zip can be found here: https://github.com/appcelerator-modules/ti.map/tree/master/android/dist
[~hpham] I will try with the latest, I'm using a Samsung Galaxy Nexus
[~hpham] Cannot reproduce anymore, go ahead and close the ticket
Re-closing issue.
Closing ticket as the issue cannot be reproduced.