Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding property borderWidth and borderColor are crashing the app #38

Open
arifje opened this issue May 15, 2015 · 2 comments
Open

adding property borderWidth and borderColor are crashing the app #38

arifje opened this issue May 15, 2015 · 2 comments

Comments

@arifje
Copy link

arifje commented May 15, 2015

adding these properties when creating the list, crashes the app and gives this error:

[ERROR] : The application has crashed with an uncaught exception 'org.trending.DeMarcelpociotCollectionviewCollectionView'.
[ERROR] : Reason:
[ERROR] : Invalid type passed to function
[ERROR] : Stack trace:
[ERROR] :
[ERROR] : 0 CoreFoundation 0x05b9172a exceptionPreprocess + 154
[ERROR] : 1 libobjc.A.dylib 0x05764a97 objc_exception_throw + 44
[ERROR] : 2 Trending 0x001c1c68 TiExceptionThrowWithNameAndReason + 232
[ERROR] : 3 Trending 0x0011dfef -[TiUIView throwException:subreason:location:] + 143
[ERROR] : 4 Trending 0x006c6562 -[DeMarcelpociotCollectionviewCollectionView collectionView] + 2390
[ERROR] : 5 Trending 0x006c93fd -[DeMarcelpociotCollectionviewCollectionView setCanScroll_:] + 39
[ERROR] : 6 libobjc.A.dylib 0x0577a771 -[NSObject performSelector:withObject:] + 70
[ERROR] : 7 Trending 0x00186151 DoProxyDelegateReadKeyFromProxy + 321
[ERROR] : 8 Trending 0x001867b7 DoProxyDelegateReadValuesWithKeysFromProxy + 1239
[ERROR] : 9 Trending 0x001232e1 -[TiUIView readProxyValuesWithKeys:] + 65
[ERROR] : 10 Trending 0x000f9807 -[TiViewProxy firePropertyChanges] + 167
[ERROR] : 11 Trending 0x000f73f2 -[TiViewProxy view] + 706
[ERROR] : 12 Trending 0x006cf81c -[DeMarcelpociotCollectionviewCollectionViewProxy listView] + 33
[ERROR] : 13 Trending 0x006d0557 __64-[DeMarcelpociotCollectionviewCollectionViewProxy setTemplates:]_block_invoke121 + 38
[ERROR] : 14 Trending 0x001c29fc __TiThreadPerformOnMainThread_block_invoke + 60
[ERROR] : 15 Trending 0x001c2e70 TiThreadProcessPendingMainThreadBlocks + 528
[ERROR] : 16 Trending 0x001c2c49 __TiThreadPerformOnMainThread_block_invoke208 + 57
[ERROR] : 17 libdispatch.dylib 0x061e5d8a _dispatch_call_block_and_release + 15
[ERROR] : 18 libdispatch.dylib 0x06202ecf _dispatch_client_callout + 14
[ERROR] : 19 libdispatch.dylib 0x061ebee3 _dispatch_main_queue_callback_4CF + 677
[ERROR] : 20 CoreFoundation 0x05aea8ee __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
+ 14
[ERROR] : 21 CoreFoundation 0x05aa85f0 **CFRunLoopRun + 2256
[ERROR] : 22 CoreFoundation 0x05aa7a5b CFRunLoopRunSpecific + 443
[ERROR] : 23 CoreFoundation 0x05aa788b CFRunLoopRunInMode + 123
[ERROR] : 24 GraphicsServices 0x069582c9 GSEventRunModal + 192
[ERROR] : 25 GraphicsServices 0x06958106 GSEventRun + 104
[ERROR] : 26 UIKit 0x0256c106 UIApplicationMain + 1526
[ERROR] : 27 Trending 0x000b1ee8 main + 408
[ERROR] : 28 libdyld.dylib 0x06228ac9 start + 1
[ERROR] :
[ERROR] : 2015-05-15 09:48:42.431 Trending[65358:6469667] *** Terminating app due to uncaught exception 'org.trending.DeMarcelpociotCollectionviewCollectionView', reason: 'Invalid type passed to function'
[ERROR] : * First throw call stack:
[ERROR] : (
[ERROR] : 0 CoreFoundation 0x05b91746 _exceptionPreprocess + 182
[ERROR] : 1 libobjc.A.dylib 0x05764a97 objc_exception_throw + 44
[ERROR] : 2 Trending 0x001c1c68 TiExceptionThrowWithNameAndReason + 232
[ERROR] : 3 Trending 0x0011dfef -[TiUIView throwException:subreason:location:] + 143
[ERROR] : 4 Trending 0x006c6562 -[DeMarcelpociotCollectionviewCollectionView collectionView] + 2390
[ERROR] : 5 Trending 0x006c93fd -[DeMarcelpociotCollectionviewCollectionView setCanScroll
:] + 39
[ERROR] : 6 libobjc.A.dylib 0x0577a771 -[NSObject performSelector:withObject:] + 70
[ERROR] : 7 Trending 0x00186151 DoProxyDelegateReadKeyFromProxy + 321
[ERROR] : 8 Trending 0x001867b7 DoProxyDelegateReadValuesWithKeysFromProxy + 1239
[ERROR] : 9 Trending 0x001232e1 -[TiUIView readProxyValuesWithKeys:] + 65
[ERROR] : 10 Trending 0x000f9807 -[TiViewProxy firePropertyChanges] + 167
[ERROR] : 11 Trending 0x000f73f2 -[TiViewProxy view] + 706
[ERROR] : 12 Trending 0x006cf81c -[DeMarcelpociotCollectionviewCollectionViewProxy listView] + 33
[ERROR] : 13 Trending 0x006d0557 __64-[DeMarcelpociotCollectionviewCollectionViewProxy setTemplates:]_block_invoke121 + 38
[ERROR] : 14 Trending 0x001c29fc __TiThreadPerformOnMainThread_block_invoke + 60
[ERROR] : 15 Trending 0x001c2e70 TiThreadProcessPendingMainThreadBlocks + 528
[ERROR] : 16 Trending 0x001c2c49 __TiThreadPerformOnMainThread_block_invoke208 + 57
[ERROR] : 17 libdispatch.dylib 0x061e5d8a _dispatch_call_block_and_release + 15
[ERROR] : 18 libdispatch.dylib 0x06202ecf _dispatch_client_callout + 14
[ERROR] : 19 libdispatch.dylib 0x061ebee3 _dispatch_main_queue_callback_4CF + 677
[ERROR] : 20 CoreFoundation 0x05aea8ee __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
+ 14
[ERROR] : 21 CoreFoundation 0x05aa85f0 __CFRunLoopRun + 2256
[ERROR] : 22 CoreFoundation 0x05aa7a5b CFRunLoopRunSpecific + 443
[ERROR] : 23 CoreFoundation 0x05aa788b CFRunLoopRunInMode + 123
[ERROR] : 24 GraphicsServices 0x069582c9 GSEventRunModal + 192
[ERROR] : 25 GraphicsServices 0x06958106 GSEventRun + 104
[ERROR] : 26 UIKit 0x0256c106 UIApplicationMain + 1526
[ERROR] : 27 Trending 0x000b1ee8 main + 408
[ERROR] : 28 libdyld.dylib 0x06228ac9 start + 1
[ERROR] : )
[ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException
[DEBUG] : [ioslib] [ios-sim] [DEBUG] Session did end with error (null)
[DEBUG] : [ioslib] [ios-sim] [DEBUG] Removing named pipe at /var/folders/35/7ch48n6n01x111_gx9zkwqpw0000gn/T//ios-sim-stderr-pipe-1431676112' [DEBUG] : [ioslib] [ios-sim] [DEBUG] Removing named pipe at/var/folders/35/7ch48n6n01x111_gx9zkwqpw0000gn/T//ios-sim-stdout-pipe-1431676112'
[DEBUG] : [ioslib] [ios-sim] Exited with code: 0
-- End simulator log ---------------------------------------------------------

SDK: 3.5.1.GA iOS

@nuno
Copy link
Owner

nuno commented Jun 9, 2015

@skoften, for this kinda of stuff I do always one Ti.View wrapper:

ex:
XML

<View id="containerView">
  <ListView id="listView" defaultItemTemplate="template" module="CollectionView" method="createCollectionView" onItemclick="listItemClicked">
     ...
  </ListView>
</View>

TSS

"#containerView": {
    left:0,
    right:0,
    top: 0,
    bottom: 0,
    width: Titanium.UI.FILL,
    height: Titanium.UI.FILL,
    backgroundColor:"#ffffff",
    borderWidth: 1,
    borderColor: '#CCCCCC',
    layout: 'vertical'
}

@nuno
Copy link
Owner

nuno commented Oct 8, 2016

It is save to close?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants