Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14346] Android: MapView crash while doing swipe

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-11-12T00:37:22.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 23, 2013 Sprint 23 API
ComponentsAndroid
Labelsn/a
ReporterRadamantis Torres-Lechuga
AssigneeHieu Pham
Created2013-06-21T22:48:00.000+0000
Updated2017-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

FileDateSize
device-2013-11-06-165326.png2013-11-07T01:06:26.000+000031558
device-2013-11-06-165542.png2013-11-07T01:06:26.000+000027811
mapCrash.txt2013-11-07T01:06:26.000+0000425831
mapSampleLog.rtf2013-06-21T22:48:00.000+000066654

Comments

  1. Olga Romero 2013-09-16

    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.
  2. Hieu Pham 2013-09-19

    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.
  3. Hieu Pham 2013-10-30

    Closing this since I'm unable to reproduce this behavior.
  4. Radamantis Torres-Lechuga 2013-11-07

    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)
  5. Hieu Pham 2013-11-07

    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
  6. Radamantis Torres-Lechuga 2013-11-07

    [~hpham] I will try with the latest, I'm using a Samsung Galaxy Nexus
  7. Radamantis Torres-Lechuga 2013-11-11

    [~hpham] Cannot reproduce anymore, go ahead and close the ticket
  8. Hieu Pham 2013-11-12

    Re-closing issue.
  9. Lee Morris 2017-03-21

    Closing ticket as the issue cannot be reproduced.

JSON Source