Titanium.UI.createImageView crashes my iphone simulator

76 views
Skip to first unread message

Sam Doyle

unread,
Mar 16, 2011, 6:11:11 PM3/16/11
to appcelerat...@googlegroups.com
I'm using the below line of code to load an image and add it to my view:

var image = Titanium.UI.createImageView({url:'/assets/images/webpageonelogo.png'});

I've checked and double checked and I just don't understand the issue :S

This is the log from console:

[INFO] Compiling JavaScript...one moment
[INFO] No JavaScript errors detected.
[INFO] One moment, building ...
[INFO] Titanium SDK version: 1.6.0
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 4.3
[INFO] iPhone simulated device: iphone
[INFO] Launching application in Simulator
[INFO] Launched application in Simulator (3.05 seconds)
[INFO] Application started
[INFO] SEO App/1.0 (1.6.0.9882e81)
[WARN] attempted to load: TiUIImageViewProxy
[ERROR] The application has crashed with an unhandled exception. Stack trace:
0 CoreFoundation 0x021e958c __exceptionPreprocess + 156
1 libobjc.A.dylib 0x0233d313 objc_exception_throw + 44
2 SEO App 0x000989cd -[TiModule createProxy:forName:context:] + 941
3 CoreFoundation 0x02159c7d __invoking___ + 29
4 CoreFoundation 0x02159b51 -[NSInvocation invoke] + 145
5 SEO App 0x000434fd -[KrollMethod call:] + 973
6 SEO App 0x00042b1e KrollCallAsFunction + 542
7 SEO App 0x00208948 _ZN2TI16TiCallbackObjectINS_8TiObjectEE4callEPNS_10TiExcStateEPS1_NS_7TiValueERKNS_7ArgListE + 552
8 SEO App 0x001cc908 cti_op_call_NotTiFunction + 632
9 ??? 0x069edc20 0x0 + 111074336
10 SEO App 0x0017c515 _ZN2TI11Interpreter7executeEPNS_17ProgramExecutableEPNS_10TiExcStateEPNS_14ScopeChainNodeEPNS_8TiObjectEPNS_7TiValueE + 597
11 SEO App 0x001354d4 _ZN2TI8evaluateEPNS_10TiExcStateERNS_10ScopeChainERKNS_10SourceCodeENS_7TiValueE + 436
12 SEO App 0x001df324 TiEvalScript + 388
13 SEO App 0x00038fec -[KrollBridge evalFileOnThread:context:] + 2412
14 SEO App 0x0003fb37 -[KrollInvocation invoke:] + 135
15 SEO App 0x0003dabe -[KrollContext invokeOnThread:method:withObject:callback:selector:] + 286
16 SEO App 0x0003866e -[KrollBridge evalFile:callback:selector:] + 126
17 SEO App 0x00038094 -[KrollBridge didStartNewContext:] + 2596
18 SEO App 0x0003c55b -[KrollContext main] + 3083
19 Foundation 0x004bdcf4 -[NSThread main] + 81
20 Foundation 0x004bdc80 __NSThread__main__ + 1387
21 libSystem.B.dylib 0x970a685d _pthread_start + 345
22 libSystem.B.dylib 0x970a66e2 thread_start + 34
2011-03-16 22:09:50.283 SEO App[16207:5d03] *** Terminating app due to uncaught exception 'org.seoapp.module', reason: 'invalid method (createImageView) passed to UIModule'
*** Call stack at first throw:
(
0 CoreFoundation 0x021e95a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x0233d313 objc_exception_throw + 44
2 SEO App 0x000989cd -[TiModule createProxy:forName:context:] + 941
3 CoreFoundation 0x02159c7d __invoking___ + 29
4 CoreFoundation 0x02159b51 -[NSInvocation invoke] + 145
5 SEO App 0x000434fd -[KrollMethod call:] + 973
6 SEO App 0x00042b1e KrollCallAsFunction + 542
7 SEO App 0x00208948 _ZN2TI16TiCallbackObjectINS_8TiObjectEE4callEPNS_10TiExcStateEPS1_NS_7TiValueERKNS_7ArgListE + 552
8 SEO App 0x001cc908 cti_op_call_NotTiFunction + 632
9 ??? 0x069edc20 0x0 + 111074336
10 SEO App 0x0017c515 _ZN2TI11Interpreter7executeEPNS_17ProgramExecutableEPNS_10TiExcStateEPNS_14ScopeChainNodeEPNS_8TiObjectEPNS_7TiValueE + 597
11 SEO App 0x001354d4 _ZN2TI8evaluateEPNS_10TiExcStateERNS_10ScopeChainERKNS_10SourceCodeENS_7TiValueE + 436
12 SEO App 0x001df324 TiEvalScript + 388
13 SEO App 0x00038fec -[KrollBridge evalFileOnThread:context:] + 2412
14 SEO App 0x0003fb37 -[KrollInvocation invoke:] + 135
15 SEO App 0x0003dabe -[KrollContext invokeOnThread:method:withObject:callback:selector:] + 286
16 SEO App 0x0003866e -[KrollBridge evalFile:callback:selector:] + 126
17 SEO App 0x00038094 -[KrollBridge didStartNewContext:] + 2596
18 SEO App 0x0003c55b -[KrollContext main] + 3083
19 Foundation 0x004bdcf4 -[NSThread main] + 81
20 Foundation 0x004bdc80 __NSThread__main__ + 1387
21 libSystem.B.dylib 0x970a685d _pthread_start + 345
22 libSystem.B.dylib 0x970a66e2 thread_start + 34
)
terminate called after throwing an instance of 'NSException'
[INFO] Application has exited from Simulator
Reply all
Reply to author
Forward
0 new messages