Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5887] Map annotation with external left button raises exception on clicking

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2017-07-10T22:20:04.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsannotation, fastdev, mapview
ReporterTaazza GO
AssigneeIngo Muschenetz
Created2011-10-27T03:25:25.000+0000
Updated2017-07-10T22:20:07.000+0000

Description

A map annotation created with an external left button raises a FileNotFoundException on clicking. Although an exception occurs, I can see the left image getting displayed. This can be reproduced in KitchenSink->Views->Map View. In *Resources/examples/map_view.js*, at around line 33 we have:
var atlantaParams = {
                latitude:33.74511,
                longitude:-84.38993,
                title:"Atlanta, GA",
                subtitle:'Atlanta Braves Stadium\nfoo',
                animate:true,
                leftButton: '../images/atlanta.jpg',
                rightButton: Titanium.UI.iPhone.SystemButton.DISCLOSURE,
                myid:3 // CUSTOM ATTRIBUTE THAT IS PASSED INTO EVENT OBJECTS
};
*leftButton* is set to a local image here. Clicking on the Atlanta annotation works fine at this point. Now change *leftButton* to http://www.espncricinfo.com/favicon.png or http://facebook.com/favicon.ico or any other externally hosted PNG image. Now rebuild & click on the Atlanta annotation - you should see an exception being raised even though the left image was successfully displayed. This wasn't happening on 1.7.0 at least. The logcat output corresponding to the exception is attached.

Attachments

FileDateSize
map_trace.txt2011-10-27T03:25:25.000+00004341

Comments

  1. Matthew Apperson 2011-10-27

    The android 2.3 emulator has a number of bugs, could you please try this on the 2.2 emulator or on-device running 2.3?
  2. Taazza GO 2011-10-27

    I was able to reproduce the same behaviour on Android 2.2 emulator too.
  3. Don Thorp 2011-10-27

    stacktrace suggests this is FastDev related. Please try it on device as well.
  4. Taazza GO 2011-11-15

    Without FastDev enabled, this exception doesn't occur on the emulator. I don't see any issues on a device either.
  5. Lee Morris 2017-07-10

    Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.

JSON Source