cocoa - NSOpenPanel exception *** Assertion failure in -[NSRemoteView serviceViewSubservice] -
if try this:
nsopenpanel * openpanel = [nsopenpanel openpanel]; openpanel.canchoosedirectories = yes; openpanel.canchoosefiles = yes; openpanel.cancreatedirectories = no; openpanel.allowsmultipleselection = yes; openpanel.title = @"select files or folders import"; [openpanel beginsheetmodalforwindow: self.window completionhandler: ^(nsinteger result) { if (result != nsfilehandlingpanelokbutton) { return; } }];
it works, error messages such as:
*** assertion failure in -[nsremoteview serviceviewsubservice], /sourcecache/viewbridge/viewbridge-46.2/nsremoteview.m:2679 2014-03-10 09:34:35.592 appwage[52168:303] uncaught exception raised 2014-03-10 09:34:35.593 appwage[52168:303] invalid 2014-03-10 09:34:35.593 appwage[52168:303] ( 0 corefoundation 0x00007fff8a59825c __exceptionpreprocess + 172 1 libobjc.a.dylib 0x00007fff881fce75 objc_exception_throw + 43 2 corefoundation 0x00007fff8a598038 +[nsexception raise:format:arguments:] + 104 3 foundation 0x00007fff925ebd41 -[nsassertionhandler handlefailureinmethod:object:file:linenumber:description:] + 189 4 viewbridge 0x00007fff8736f8b0 -[nsremoteview serviceviewsubservice] + 149 5 viewbridge 0x00007fff873716d6 -[nsremoteview viewservicemarshalproxy:witherrorhandler:] + 43 6 viewbridge 0x00007fff87366a40 -[nsremoteview syncservicewindow] + 32 7 viewbridge 0x00007fff87367054 -[nsremoteview didsetoriginorsize:] + 201 8 viewbridge 0x00007fff87367706 -[nsremoteview setframesize:] + 231 9 appkit 0x00007fff9042df3e -[nswindow _oldplacewindow:] + 1644 10 appkit 0x00007fff9042cf8c -[nswindow _setframecommon:display:stashsize:] + 1633 11 viewbridge 0x00007fff87373711 -[nsremoteview servicewindowdidresizeinprogress:] + 440 12 viewbridge 0x00007fff873737d0 -[nsremoteview servicewindowdidresize:] + 180 13 viewbridge 0x00007fff873707cf -[nsremoteview advancetoconfigphase] + 2458 14 viewbridge 0x00007fff8737177c -[nsremoteview viewservicemarshalproxy:witherrorhandler:] + 209 15 viewbridge 0x00007fff8736d9b7 -[nsremoteview sendfontsmoothingbackgroundcolortoservice:] + 436 16 viewbridge 0x00007fff8736e725 -[nsremoteview viewdidmovetowindow] + 197 17 appkit 0x00007fff90323320 -[nsview _setwindow:] + 2899 18 appkit 0x00007fff90320964 -[nsview addsubview:] + 364 19 appkit 0x00007fff90334ac3 -[nsframeview addsubview:] + 45 20 appkit 0x00007fff90342df5 -[nswindow setcontentview:] + 511 21 appkit 0x00007fff90ba9563 -[nsvbsavepanel init] + 287 22 appkit 0x00007fff9092b389 +[nssavepanel newremotepanel] + 309 23 appkit 0x00007fff9092b445 +[nssavepanel _crunchyrawunbonedpanel] + 120 24 appwage 0x000000010006c99a -[appdelegate onimportsalesreports:] + 714 25 appkit 0x00007fff9052a340 -[nsapplication sendaction:to:from:] + 327 26 appkit 0x00007fff905452a8 -[nsmenuitem _coreperformaction] + 394 27 appkit 0x00007fff90544fe4 -[nscarbonmenuimpl performactionwithhighlightingforitematindex:] + 117 28 appkit 0x00007fff9059448d -[nsmenu _internalperformactionforitematindex:] + 35 29 appkit 0x00007fff90594309 -[nscarbonmenuimpl _carboncommandprocessevent:handlercallref:] + 104 30 appkit 0x00007fff9053b0d6 nsslmmenueventhandler + 716 31 hitoolbox 0x00007fff8f5b91d4 _zl23dispatcheventtohandlersp14eventtargetrecp14opaqueeventrefp14handlercallrec + 892 32 hitoolbox 0x00007fff8f5b8787 _zl30sendeventtoeventtargetinternalp14opaqueeventrefp20opaqueeventtargetrefp14handlercallrec + 385 33 hitoolbox 0x00007fff8f5cc880 sendeventtoeventtarget + 40 34 hitoolbox 0x00007fff8f602640 _zl18sendhicommandeventjpk9hicommandjjhpkvp20opaqueeventtargetrefs5_pp14opaqueeventref + 420 35 hitoolbox 0x00007fff8f635238 sendmenucommandwithcontextandmodifiers + 59 36 hitoolbox 0x00007fff8f6351e0 sendmenuitemselectedevent + 178 37 hitoolbox 0x00007fff8f6350bf _zl19finishmenuselectionp13selectiondatap10menuresults2_ + 94 38 hitoolbox 0x00007fff8f63d095 _zl14menuselectcorep8menudata5pointdjpp13opaquemenurefpt + 718 39 hitoolbox 0x00007fff8f63ccc1 _handlemenuselection2 + 446 40 appkit 0x00007fff904ad73c _nshandlecarbonmenuevent + 284 41 appkit 0x00007fff9030c6be _dpsnextevent + 2170 42 appkit 0x00007fff9030ba2b -[nsapplication nexteventmatchingmask:untildate:inmode:dequeue:] + 122 43 appkit 0x00007fff902ffb2c -[nsapplication run] + 553 44 appkit 0x00007fff902ea913 nsapplicationmain + 940 45 appwage 0x000000010009a872 main + 34 46 libdyld.dylib 0x00007fff8cfb15fd start + 1 47 ??? 0x0000000000000003 0x0 + 3
if switch open panel be:
[openpanel beginwithcompletionhandler: ^(nsinteger result) { if (result != nsfilehandlingpanelokbutton) { return; } }];
it works no error, open panel no longer sheet on main window.
am not using correct way launch nsopenpanel
?
this stopped happening after reboot of system. mac developers forum suggestion submitting bug report has been done.
Comments
Post a Comment