Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18786] Android: ImageView sometimes loads wrong image due to hash code collision

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2021-09-23T18:42:23.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.1.0
ComponentsAndroid
LabelsImageView, android, image
ReporterYury Skaletskiy
AssigneeJoshua Quick
Created2014-11-07T12:02:38.000+0000
Updated2021-09-23T18:42:23.000+0000

Description

*Summary:* For android, Titanium takes wrong picture if it has name "G1.png" and "FP.png" (waa, I know this sounds strange, but when I change image names to G_1.png and F_P.png corresp., it works OK) Alloy view: please also take a look to attachments (how it looks in android/iphone plus Titanium Alloy project to repro) *Cause:* This is due to hash code collision when fetching the image from Titanium's image cache. It ends up grabbing the wrong image.

Attachments

FileDateSize
2014-11-07_14-51-16.png2014-11-07T12:02:38.000+000049801
2014-11-07_14-57-24.png2014-11-07T12:02:38.000+000051343
bad_images_app.zip2014-11-07T12:02:38.000+00006052712
FP.jpg2021-09-21T18:30:27.000+000029166
G1.jpg2021-09-21T18:30:27.000+000045265
ImageHashTest.js2021-09-21T21:58:46.000+0000249

Comments

  1. Yury Skaletskiy 2015-01-08

    Guys, any update on the issue? we're continue getting that.
  2. Yury Skaletskiy 2015-04-06

    Still no updates?
  3. Yury Skaletskiy 2015-04-07

    Gentlemen, we are still getting these problems on the latest SDK. Could you please clarify us on issue status rather than ping-pong it? :-)
  4. Ingo Muschenetz 2015-04-13

    We will investigate, but we do not currently have an ETA available.
  5. Joshua Quick 2021-09-21

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/13078

JSON Source