{ "id": "76166", "key": "TIMOB-4757", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-02-07T10:14:57.000+0000", "created": "2011-06-10T01:26:52.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [ { "id": "15101", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "85826", "key": "TIMOB-7507", "fields": { "summary": "Android: ImageView is broken when compiling project in Windows with FastDev", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:33:51.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "I've added an ImageView to the Window and the image doesn't show in the emulator. I've tested it on a Nexus S device and in the device the app crashes. If I remove the ImageView, the app doesn't crash in the device.\r\n\r\nThe same code works in mobile SDK 1.6.2 on Windows and using the same 1.7 SDK in Linux, it works well so it could be a bug that only affects Windows version of the SDK?\r\n\r\n{code:lang=javascript}\r\nTi.UI.backgroundColor = \"#FFFFFF\";\r\n\r\nvar win = Ti.UI.createWindow({\r\n modal:true\r\n});\r\n\r\nvar myimage = Ti.UI.createImageView({\r\n image: '/image.jpg'\r\n});\r\n\r\nwin.add(myimage);\r\nwin.open();\r\n{code}", "attachment": [ { "id": "21456", "filename": "image.jpg", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-25T04:56:54.000+0000", "size": 692, "mimeType": "image/jpeg" } ], "flagged": false, "summary": "Android: ImageView doesn't show the image", "creator": { "name": "aleix", "key": "aleix", "displayName": "Aleix Casagolda", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aleix", "key": "aleix", "displayName": "Aleix Casagolda", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium 1.7.1 (2011/06/21 14:28 293a6d)\r\n* Platform & version: Windows 7 64 bits (in Linux seems to work well)\r\n* Device Details: Android Emulator & Samsung Nexus S device\r\n* Titanium Studio, build: 1.0.1.201106171427", "comment": { "comments": [ { "id": "156612", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Aleix\r\n\r\nPlease try this using the latest Titanium SDK 1.7.X, and report back stating the build date and hash tested.\r\n\r\nMany thanks\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-13T11:12:19.000+0000", "updated": "2011-06-13T11:12:19.000+0000" }, { "id": "156700", "author": { "name": "aleix", "key": "aleix", "displayName": "Aleix Casagolda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\n\r\nI've tested it again with Titanim SDK 1.7.1 06/13/11 15:33 with hash 84a68cc\r\n\r\nStill doesn't load the image in the Emulator (tested on Android SDK 2.3.1 and 2.3.3) and crashes when the app loads in device Nexus S (Android 2.3.4)\r\n\r\nThanks.", "updateAuthor": { "name": "aleix", "key": "aleix", "displayName": "Aleix Casagolda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-14T05:02:58.000+0000", "updated": "2011-06-14T05:03:22.000+0000" }, { "id": "157786", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Aleix\r\n\r\nYour code works without issue on my system, a Android 2.3.3 emulator and Titanium 1.7.1 (2011/06/17 00:13 293a6d...).\r\n\r\nHowever, I really do think it's a false economy when you reduce the code's readability by saving a line or two of code. I have updated the usecase with what I would use. Would you mind confirming that you still experience the same issue using it?\r\n\r\nThe only thing I can think of is that your image file is not in a valid format. I have attached an image file that works on my system.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-25T04:55:46.000+0000", "updated": "2011-06-25T04:55:46.000+0000" }, { "id": "157837", "author": { "name": "aleix", "key": "aleix", "displayName": "Aleix Casagolda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\n\r\nThank you for your reply.\r\n\r\nI've tested again using your code and your image with the latest version of Titanium I've found (1.7.1 06/21/11 14:28 1293a6d) and I'm still having the same error using the emulator (Android 2.3.3): image doesn't show and I'm still having the same issue on my device (Samsung Nexus S with Android 2.3.4): the app crashes on startup.\r\n\r\nI've seen this message in the stackTrace (I don't know if it's useful for you): W/TiDrawableReference( 673): (main) [5,616] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.\r\n\r\nI'm using Windows 7 64 bits and of course, Titanium mobile SDK for Windows. I tested it some days ago using the Linux SDK in an Ubuntu VM and it worked well.\r\n\r\nThanks.", "updateAuthor": { "name": "aleix", "key": "aleix", "displayName": "Aleix Casagolda", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-27T08:42:47.000+0000", "updated": "2011-06-27T08:42:47.000+0000" }, { "id": "157897", "author": { "name": "deshuth", "key": "deshuth", "displayName": "Derrick Huth", "active": true, "timeZone": "Europe/London" }, "body": "I can confirm Aleix's findings.\r\n\r\nI installed Studio on my Windows Vista development computer as I was keen to try the Blackberry SDK, after a number of failures in getting it to work I decided that the three year old machine was due a clean up. I have re-installed Windows Vista from scratch, clean install on reformated drive, not a repair or upgrade. The only software installed other than Titanium Studio and it's dependancies is MS Office.\r\n\r\nI have imported a project that previously worked (as far as it had got) and all imageViews are blank. They are all there and respond to touch events, they just don't show the image.\r\n\r\nI initially assumed that it was an issue with the images so tried converting the png to jpg and gif, no luck. As the image was being resized and 1.7 raises some issues with resizing I created images in all three formats at the correct size, still no luck.\r\n\r\nAfter that I decided that Titanium had to be the issue and followed the advice on the Titanium Q&A to disable FastDev and that made the app work correctly, but only once. When I altered the app and redeployed it was broken again.\r\n\r\nWhilst I appreciate that you cannot test every environment, and Vista is not a supported OS (XP & 7 are ??!!) I assumed that this would mean a loss of functionality like FastDev not working, not my apps being trashed.\r\n\r\nThis sort of catastrophic failure deserves a serious warning, (like DO NOT UNDER ANY CIRCUMSTANCES INSTALL ON WINDOWS VISTA IT WON'T WORK AND YOUR APP WILL NOT RUN), not 'Vista is not supported'.\r\n\r\nAnd whilst you cannot duplicate this on Windows 7, it is real, and it is a showstopper, IT NEEDS FIXING.\r\n", "updateAuthor": { "name": "deshuth", "key": "deshuth", "displayName": "Derrick Huth", "active": true, "timeZone": "Europe/London" }, "created": "2011-06-27T17:42:12.000+0000", "updated": "2011-06-27T17:42:12.000+0000" }, { "id": "159041", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "OK, Aleix\r\n\r\nWhat we need is a full trace log when running 1.7.X + Android 2.3.3 in an emulator. Would you be able to provide this? Once this is done, I will move the ticket over to the mobile project. Just to note, see the [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist] to see what is required for most tickets.\r\n\r\nMany thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-08T10:50:12.000+0000", "updated": "2011-07-08T10:50:12.000+0000" }, { "id": "159646", "author": { "name": "aleix", "key": "aleix", "displayName": "Aleix Casagolda", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Paul,\r\n\r\nThanks. The log. Let me know if you need something more.\r\n\r\n{code}\r\nD/dalvikvm( 134): GC_EXPLICIT freed 59K, 47% free 3177K/5895K, external 6275K/7568K, paused 134ms\r\nD/dalvikvm( 219): GC_EXPLICIT freed 19K, 52% free 3025K/6279K, external 1625K/2137K, paused 238ms\r\nD/AndroidRuntime( 507): \r\nD/AndroidRuntime( 507): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<\r\nD/AndroidRuntime( 507): CheckJNI is ON\r\nD/AndroidRuntime( 507): Calling main entry com.android.commands.pm.Pm\r\nD/dalvikvm( 394): GC_EXPLICIT freed 2K, 51% free 2726K/5511K, external 1625K/2137K, paused 51ms\r\nW/ActivityManager( 64): No content provider found for: \r\nW/ActivityManager( 64): No content provider found for: \r\nD/PackageParser( 64): Scanning package: /data/app/vmdl1346280695.tmp\r\nI/PackageManager( 64): Removing non-system package:com.agilogy.prova\r\nI/ActivityManager( 64): Force stopping package com.agilogy.prova uid=10038\r\nI/Process ( 64): Sending signal. PID: 483 SIG: 9\r\nE/InputDispatcher( 64): channel '4082f6c8 com.agilogy.prova/com.agilogy.prova.ProvaActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x8\r\nE/InputDispatcher( 64): channel '4082f6c8 com.agilogy.prova/com.agilogy.prova.ProvaActivity (server)' ~ Channel is unrecoverably broken and will be disposed!\r\nI/ActivityManager( 64): Force finishing activity HistoryRecord{40663ca0 com.agilogy.prova/.ProvaActivity}\r\nI/WindowManager( 64): WIN DEATH: Window{4082f6c8 com.agilogy.prova/com.agilogy.prova.ProvaActivity paused=false}\r\nI/WindowManager( 64): WIN DEATH: Window{40706bc8 com.agilogy.prova/org.appcelerator.titanium.TiModalActivity paused=false}\r\nE/InputDispatcher( 64): Received spurious receive callback for unknown input channel. fd=168, events=0x8\r\nW/InputManagerService( 64): Got RemoteException sending setActive(false) notification to pid 483 uid 10038\r\nD/PackageManager( 64): Scanning package com.agilogy.prova\r\nI/PackageManager( 64): Package com.agilogy.prova codePath changed from /data/app/com.agilogy.prova-2.apk to /data/app/com.agilogy.prova-1.apk; Retaining data and using new\r\nI/PackageManager( 64): Unpacking native libraries for /data/app/com.agilogy.prova-1.apk\r\nD/installd( 35): DexInv: --- BEGIN '/data/app/com.agilogy.prova-1.apk' ---\r\nD/dalvikvm( 516): DexOpt: 'Lorg/apache/commons/codec/binary/Base64;' has an earlier definition; blocking out\r\nD/dalvikvm( 516): DexOpt: 'Lorg/apache/commons/codec/binary/Hex;' has an earlier definition; blocking out\r\nD/dalvikvm( 516): DexOpt: 'Lorg/w3c/dom/UserDataHandler;' has an earlier definition; blocking out\r\nD/dalvikvm( 516): DexOpt: not verifying 'Lorg/apache/commons/codec/binary/Base64;': multiple definitions\r\nD/dalvikvm( 516): DexOpt: not verifying 'Lorg/apache/commons/codec/binary/Hex;': multiple definitions\r\nI/dalvikvm( 516): DexOpt: not resolving ambiguous class 'Lorg/apache/commons/codec/binary/Hex;'\r\nI/dalvikvm( 516): DexOpt: not resolving ambiguous class 'Lorg/apache/commons/codec/binary/Base64;'\r\nI/dalvikvm( 516): DexOpt: not resolving ambiguous class 'Lorg/apache/commons/codec/binary/Base64;'\r\nD/dalvikvm( 516): DexOpt: not verifying 'Lorg/w3c/dom/UserDataHandler;': multiple definitions\r\nD/dalvikvm( 394): GC_EXPLICIT freed 7K, 51% free 2724K/5511K, external 1625K/2137K, paused 1390ms\r\nI/dalvikvm( 516): DexOpt: not resolving ambiguous class 'Lorg/apache/commons/codec/binary/Base64;'\r\nD/dalvikvm( 516): DexOpt: load 784ms, verify+opt 6886ms\r\nD/installd( 35): DexInv: --- END '/data/app/com.agilogy.prova-1.apk' (success) ---\r\nW/PackageManager( 64): Code path for pkg : com.agilogy.prova changing from /data/app/com.agilogy.prova-2.apk to /data/app/com.agilogy.prova-1.apk\r\nW/PackageManager( 64): Resource path for pkg : com.agilogy.prova changing from /data/app/com.agilogy.prova-2.apk to /data/app/com.agilogy.prova-1.apk\r\nD/PackageManager( 64): Services: org.appcelerator.titanium.analytics.TiAnalyticsService\r\nD/PackageManager( 64): Activities: com.agilogy.prova.ProvaActivity org.appcelerator.titanium.TiActivity org.appcelerator.titanium.TiModalActivity ti.modules.titanium.ui.TiTabActivity ti.modules.titanium.ui.android.TiPreferencesActivity\r\nI/ActivityManager( 64): Force stopping package com.agilogy.prova uid=10038\r\nI/installd( 35): move /data/dalvik-cache/data@app@com.agilogy.prova-1.apk@classes.dex -> /data/dalvik-cache/data@app@com.agilogy.prova-1.apk@classes.dex\r\nD/PackageManager( 64): New package installed in /data/app/com.agilogy.prova-1.apk\r\nI/ActivityManager( 64): Force stopping package com.agilogy.prova uid=10038\r\nD/dalvikvm( 64): GC_EXPLICIT freed 928K, 44% free 4886K/8647K, external 3901K/4872K, paused 119ms\r\nD/dalvikvm( 134): GC_EXPLICIT freed 117K, 49% free 3060K/5895K, external 6102K/7568K, paused 114ms\r\nW/RecognitionManagerService( 64): no available voice recognition services found\r\nD/GTalkService( 219): handlePackageInstalled: re-initialize providers\r\nD/GTalkService( 219): [RawStanzaProvidersMgr] ##### searchProvidersFromIntent\r\nD/GTalkService( 219): [RawStanzaProvidersMgr] no intent receivers found\r\nD/dalvikvm( 64): GC_EXPLICIT freed 283K, 45% free 4798K/8647K, external 3226K/4029K, paused 103ms\r\nI/installd( 35): unlink /data/dalvik-cache/data@app@com.agilogy.prova-2.apk@classes.dex\r\nD/AndroidRuntime( 507): Shutting down VM\r\nD/dalvikvm( 507): GC_CONCURRENT freed 100K, 72% free 293K/1024K, external 0K/0K, paused 3ms+1ms\r\nD/jdwp ( 507): adbd disconnected\r\nI/AndroidRuntime( 507): NOTE: attach of thread 'Binder Thread #3' failed\r\nD/AndroidRuntime( 521): \r\nD/AndroidRuntime( 521): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<\r\nD/AndroidRuntime( 521): CheckJNI is ON\r\nD/AndroidRuntime( 521): Calling main entry com.android.commands.am.Am\r\nI/ActivityManager( 64): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.agilogy.prova/.ProvaActivity } from pid 521\r\nI/ActivityManager( 64): Start proc com.agilogy.prova for activity com.agilogy.prova/.ProvaActivity: pid=529 uid=10038 gids={1015, 3003}\r\nD/AndroidRuntime( 521): Shutting down VM\r\nD/dalvikvm( 521): GC_CONCURRENT freed 101K, 69% free 318K/1024K, external 0K/0K, paused 2ms+1ms\r\nI/AndroidRuntime( 521): NOTE: attach of thread 'Binder Thread #3' failed\r\nD/jdwp ( 521): adbd disconnected\r\nD/dalvikvm( 64): GC_EXTERNAL_ALLOC freed 60K, 45% free 4781K/8647K, external 3826K/4029K, paused 213ms\r\nI/TiApplication( 529): (main) [0,0] checkpoint, app created.\r\nI/TiApplication( 529): (main) [202,202] Titanium 1.7.1 (2011/06/21 14:28 293a6d)\r\nD/TiDeployData( 529): (main) [80,282] Read deploy data: {\"debuggerPort\":-1,\"debuggerEnabled\":false,\"fastdevPort\":53196}\r\nI/TiRootActivity( 529): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\nE/TiApplication( 529): (main) [293,293] APP PROXY: [Ti.App]\r\nD/TiCommonContactsApi( 529): (main) [28,321] Using newer contacts api. Android SDK level: 10\r\nD/TiFastDev( 529): (kroll$1: app://app.js) [605,926] Enabling Fastdev on port 53196\r\nD/TiFastDev( 529): (kroll$1: app://app.js) [13,939] sent tokens successfully\r\nD/TiFastDev( 529): (kroll$1: app://app.js) [27,966] Fastdev session handshake succesful.\r\nD/TiFastDev( 529): (kroll$1: app://app.js) [27,993] sent tokens successfully\r\nD/KrollContext( 529): (kroll$1: app://app.js) [2,995] Running evaluated script: file:///android_asset/Resources/app.js\r\nD/dalvikvm( 529): GC_CONCURRENT freed 1045K, 52% free 3267K/6727K, external 1625K/2137K, paused 8ms+8ms\r\nI/ActivityManager( 64): Starting: Intent { cmp=com.agilogy.prova/org.appcelerator.titanium.TiModalActivity (has extras) } from pid 529\r\nI/TiRootActivity( 529): (main) [0,0] checkpoint, on root activity resume. context = org.appcelerator.titanium.TiContext@40587470\r\nI/ActivityManager( 64): Displayed com.agilogy.prova/.ProvaActivity: +4s495ms\r\nD/TiFastDev( 529): (main) [616,616] sent tokens successfully\r\nD/skia ( 529): --- decoder->decode returned false\r\nW/TiDrawableReference( 529): (main) [4,620] Bitmap bounds could not be determined. If bitmap is loaded, it won't be scaled.\r\nD/TiFastDev( 529): (main) [7,627] sent tokens successfully\r\nD/skia ( 529): --- decoder->decode returned false\r\nI/ActivityManager( 64): Displayed com.agilogy.prova/org.appcelerator.titanium.TiModalActivity: +712ms\r\nW/TiAnalyticsSvc( 529): (Thread-14) [1933,2560] Analytics Service Started\r\nI/TiAnalyticsSvc( 529): (Thread-14) [1540,4100] Sending 1 analytics events.\r\nD/dalvikvm( 529): GC_CONCURRENT freed 540K, 51% free 3331K/6727K, external 1967K/2137K, paused 6ms+6ms\r\n{code}", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-15T01:59:34.000+0000", "updated": "2011-07-24T14:34:57.000+0000" }, { "id": "160422", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Aleix\r\n\r\nPlease remember to use the code block markup provided. Thanks.\r\n\r\nI'm moving this to the main project for the core team to review.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-07-24T15:03:47.000+0000", "updated": "2011-07-24T15:03:47.000+0000" }, { "id": "182188", "author": { "name": "joengel", "key": "joengel", "displayName": "Johannes Engel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Still seeing this in SDK 1.8.1 on win64 (image not displaying in ImageView on the android-emulator)\r\n\r\n2 observations:\r\n# it works with remote URLs (even when fastdev is enabled): {code}image: 'http://www.appcelerator.com/wp-content/uploads/2009/06/titanium_desk.png'{code} \r\n# it works with local URLs only when fastdev is disabled\r\n\r\nSo it seems this is a problem with fastdev on the windows platform:\r\n[http://developer.appcelerator.com/question/121031/titanium-studio-and-mobile-sdk-17-createimageview-no-longer-works]\r\n", "updateAuthor": { "name": "joengel", "key": "joengel", "displayName": "Johannes Engel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-02-07T02:08:02.000+0000", "updated": "2012-02-07T02:12:29.000+0000" }, { "id": "182220", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Worked on in the newer ticket.", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-02-07T10:14:42.000+0000", "updated": "2012-02-07T10:14:42.000+0000" }, { "id": "415688", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the linked issues.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:33:51.000+0000", "updated": "2017-03-24T18:33:51.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }