Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#3857 closed Bug (fixed)

Contextual Menu generates console error - "Show in Finder" not checked properly

Reported by: x190 Owned by: livings124
Priority: Normal Milestone: 2.20
Component: Mac Client Version: 2.13
Severity: Normal Keywords: HIToolbox, Contextual Menu
Cc:

Description (last modified by charles)

12/28/10 1:35:50 PM	Transmission[334]	HIToolbox: ignoring exception '*** -[NSCFArray objectAtIndex:]: index (9) beyond bounds (8)' that raised inside Carbon event dispatch
(
	0   CoreFoundation                      0x00007fff864317b4 __exceptionPreprocess + 180
	1   libobjc.A.dylib                     0x00007fff801ff0f3 objc_exception_throw + 45
	2   CoreFoundation                      0x00007fff864315d7 +[NSException raise:format:arguments:] + 103
	3   CoreFoundation                      0x00007fff86431564 +[NSException raise:format:] + 148
	4   Foundation                          0x00007fff8509dba4 _NSArrayRaiseBoundException + 122
	5   Foundation                          0x00007fff85000d45 -[NSCFArray objectAtIndex:] + 75
	6   Transmission                        0x0000000100041100 -[FileOutlineController validateMenuItem:] + 227
	7   AppKit                              0x00007fff83977341 -[NSMenu _enableItem:] + 510
	8   AppKit                              0x00007fff8397709e -[NSCarbonMenuImpl _carbonUpdateStatusEvent:handlerCallRef:] + 510
	9   AppKit                              0x00007fff8395a95c NSSLMMenuEventHandler + 321
	10  HIToolbox                           0x00007fff8427b997 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1002
	11  HIToolbox                           0x00007fff8427aee6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 395
	12  HIToolbox                           0x00007fff84298ba9 SendEventToEventTarget + 45
	13  HIToolbox                           0x00007fff842c7cd1 _ZL18SendHICommandEventjPK9HICommandjjhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef + 387
	14  HIToolbox                           0x00007fff842db1f7 UpdateHICommandStatusWithCachedEvent + 45
	15  HIToolbox                           0x00007fff842778ad _ZN13HIApplication12EventHandlerEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 1115
	16  HIToolbox                           0x00007fff8427b997 _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec + 1002
	17  HIToolbox                           0x00007fff8427aee6 _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec + 395
	18  HIToolbox                           0x00007fff84298ba9 SendEventToEventTarget + 45
	19  HIToolbox                           0x00007fff842da83b _ZL15SendMenuOpeningP14MenuSelectDataP8MenuDatadjP14__CFDictionaryhPh + 678
	20  HIToolbox                           0x00007fff843fd7ba _ZL19PopUpMenuSelectCoreP8MenuData5PointdS1_tjPK4RecttjS4_S4_PK10__CFStringPP13OpaqueMenuRefPt + 919
	21  HIToolbox                           0x00007fff843fddce _HandlePopUpMenuSelection7 + 665
	22  AppKit                              0x00007fff83aaaf29 _NSSLMPopUpCarbonMenu3 + 3710
	23  AppKit                              0x00007fff83aab2d9 -[NSCarbonMenuImpl _popUpContextMenu:withEvent:forView:withFont:] + 239
	24  AppKit                              0x00007fff83bfc0bc -[NSMenu _popUpContextMenu:withEvent:forView:withFont:] + 205
	25  AppKit                              0x00007fff83b00a50 -[NSControl _rightMouseUpOrDown:] + 472
	26  AppKit                              0x00007fff838f906f -[NSWindow sendEvent:] + 8769
	27  AppKit                              0x00007fff8382da86 -[NSApplication sendEvent:] + 4719
	28  AppKit                              0x00007fff837c44da -[NSApplication run] + 474
	29  AppKit                              0x00007fff837bd1a8 NSApplicationMain + 364
	30  Transmission                        0x0000000100001179 main + 111
	31  Transmission                        0x00000001000010e8 start + 52
	32  ???                                 0x0000000000000002 0x0 + 2
)

This is triggered by rt-clicking on a file in Inspector->Files.

Attachments (1)

Documentation.zip (36.8 KB) - added by x190 11 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 Changed 11 years ago by x190

To test find a large multi-folder torrent. Error occurs with items well down the list. I'm testing with a 68GB (21% selected) torrent.

comment:2 Changed 11 years ago by livings124

I can't replicate this. To try to replicate I'm removing a file from a multi-file transfer in Finder, then right-clicking that file in the inspector's file window. When I do this, the item is correctly dimmed and nothing shows up in Console.

comment:3 Changed 11 years ago by x190

I think this is related to a large number of items in the list (index (9) beyond bounds (8)) as opposed to anything to do with torrent size or data manipulation.

Try to find a torrent with many files/folders and test with an item well down the list. I could PM you mine, if you want.

comment:4 Changed 11 years ago by x190

Tested some more. Apparently, you need a large torrent with 8 or more subfolders. Expand a folder near the beginning of the list. Rt-click on an item (folder will do it) towards the end of the list and error will appear.

comment:5 Changed 11 years ago by x190

Testing with 11605. Still there.

comment:6 Changed 11 years ago by livings124

I'll update the ticket when there has been work on the issue.

comment:7 Changed 11 years ago by charles

  • Description modified (diff)

comment:8 Changed 11 years ago by x190

This crash reported in the forum looks similar.

https://forum.transmissionbt.com/viewtopic.php?f=2&t=11071

comment:9 follow-up: Changed 11 years ago by jordan

x190, does this cause any trouble other than the console message?

Changed 11 years ago by x190

comment:10 in reply to: ↑ 9 ; follow-up: Changed 11 years ago by x190

Replying to jordan:

x190, does this cause any trouble other than the console message?

I spend countless hours researching stuff for you guys; I sure hope you're not trying to avoid fixing a line or two of code.

Reliably, the exception will be thrown when rt-clicking on item 9 (or higher) in Inspector->Files when the list contains folders which contain files when expanded. Please find the relevant code and change it so that rt-click can handle more than 8 items (rows) in a list of folders containing files. index (9) beyond bounds (8) So make the bounds expandable, I guess. You know, I just realized that the torrent I'm testing with has exactly 8 folders, so that would explain the initial setting to 8 rows but allowance needs to be made for expansion.

FileOutlineView?, and InfoFileViewController? might be involved.

Last edited 11 years ago by x190 (previous) (diff)

comment:11 in reply to: ↑ 10 Changed 11 years ago by jordan

Replying to x190:

x190, does this cause any trouble other than the console message?

I spend countless hours researching stuff for you guys; I sure hope you're not trying to avoid fixing a line or two of code.

I don't know anything about this error message -- as you know, I don't even own a Mac. I'm just going through trac, finding stuck bug reports, and trying to unstick them.

I could be more useful on #3900 though. If the patch there works for you, let me know and I'll check it in.

Last edited 11 years ago by jordan (previous) (diff)

comment:12 Changed 11 years ago by livings124

  • Status changed from new to assigned

comment:13 Changed 11 years ago by livings124

  • Resolution set to fixed
  • Status changed from assigned to closed
  • Summary changed from Contextual Menu generates console error to Contextual Menu generates console error - "Show in Finder" not checked properly

comment:14 Changed 11 years ago by livings124

  • Milestone changed from None Set to 2.20

comment:15 Changed 11 years ago by x190

Thanks guy! It's amazing what a couple of well chosen words can do for a piece of code. :)

Note: See TracTickets for help on using tickets.