cocos2d / CocosBuilder

CocosBuilder, the visual editor for cocos2d
forum.cocos2d-objc.org
Other
1.01k stars 595 forks source link

Exception when opening a child folder of added folder (as Resource path). #280

Open MKGitHub opened 11 years ago

MKGitHub commented 11 years ago

• Add a folder to your "Resource path". • Open a child folder (blue color) of that folder in the Project view -> BOOM!

Exception Name: NSRangeException Description: *\ -[NSPathStore2 substringFromIndex:]: Range or index out of bounds User Info: (null)

0 CoreFoundation 0x00007fff93f34b06 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff9387d3f0 objc_exception_throw + 43 2 CoreFoundation 0x00007fff93f348dc +[NSException raise:format:] + 204 3 Foundation 0x00007fff90ab2001 -[NSString substringFromIndex:] + 103 4 CocosBuilder 0x0000000109c18b2a +[ResourceManagerUtil relativePathFromAbsolutePath:] + 490 5 CocosBuilder 0x0000000109c0f5be -[RMDirectory isDynamicSpriteSheet] + 78 6 CocosBuilder 0x0000000109ce5b35 -[ResourceManagerOutlineHandler outlineView:willDisplayCell:forTableColumn:item:] + 261 7 AppKit 0x00007fff8f7ef469 -[NSTableView preparedCellAtColumn:row:] + 1573 8 AppKit 0x00007fff8f7eec4c -[NSOutlineView preparedCellAtColumn:row:] + 56 9 AppKit 0x00007fff8fd83aec -[NSTableView(NSTableViewViewBased) _copiedCellForColumn:row:] + 48 10 AppKit 0x00007fff8fd83fe3 -[NSTableView(NSTableViewViewBased) _makeViewWrapperForTableColumn:row:] + 254 11 AppKit 0x00007fff8f8039a2 -[NSTableRowData _addViewToRowView:atColumn:row:] + 324 12 AppKit 0x00007fff8f80366f -[NSTableRowData _addViewsToRowView:atRow:] + 151 13 AppKit 0x00007fff8f801c05 -[NSTableRowData _addRowViewForVisibleRow:withPriorView:] + 415 14 AppKit 0x00007fff8f5f5c1a -[NSTableRowData _slideInsertRow:intoClipView:] + 50 15 AppKit 0x00007fff8f5f36b4 -[NSTableRowData _updateVisibleViewsBasedOnUpdateItems] + 1879 16 AppKit 0x00007fff8f5f2de1 -[NSTableRowData _updateVisibleViewsBasedOnUpdateItemsAnimated] + 188 17 AppKit 0x00007fff8f7f929c -[NSTableRowData _doWorkAfterEndUpdates] + 108 18 AppKit 0x00007fff8f7e6e54 -[NSOutlineView _batchExpandItemsWithItemEntries:expandChildren:] + 456 19 AppKit 0x00007fff8f7e6903 -[NSOutlineView expandItem:expandChildren:] + 374 20 AppKit 0x00007fff8fac4d4f -[NSOutlineView _doUserExpandOrCollapseOfItem:isExpand:optionKeyWasDown:] + 555 21 AppKit 0x00007fff8fac5cd7 -[NSOutlineView mouseTracker:didStopTrackingWithEvent:] + 532 22 AppKit 0x00007fff8f7f5840 -[NSMouseTracker stopTrackingWithEvent:] + 233 23 AppKit 0x00007fff8f7f4c74 -[NSMouseTracker trackWithEvent:inView:withDelegate:] + 372 24 AppKit 0x00007fff8fac464a -[NSOutlineView mouseDown:] + 423 25 AppKit 0x00007fff8f76353e -[NSWindow sendEvent:] + 6853 26 AppKit 0x00007fff8f75f674 -[NSApplication sendEvent:] + 5761 27 Afloat 0x000000011046a479 Afloat + 13433 28 AppKit 0x00007fff8f67524a -[NSApplication run] + 636 29 AppKit 0x00007fff8f619c06 NSApplicationMain + 869 30 CocosBuilder 0x0000000109baa2b2 main + 34 31 CocosBuilder 0x0000000109baa284 start + 52

vlidholt commented 11 years ago

Will try to replicate this bug. It may be an issue with invalid resource paths (these should be separate and not sub paths of each other), but either way there should at least be a warning!