[Vm-dev] [Bug][Spur][Mac] Drag-n-drop broken

John McIntosh johnmci at smalltalkconsulting.com
Fri Apr 1 16:51:40 UTC 2016


- (BOOL) performDragOperation: (id<NSDraggingInfo>)info {

if (self.dragCount) {

self.dragItems = [self filterOutSqueakImageFilesFromDraggedFiles: info];

[(sqSqueakOSXApplication *) gDelegateApp.squeakApplication recordDragEvent:
DragDrop numberOfFiles: self.dragCount where: [info draggingLocation]
windowIndex: self.windowLogic.windowIndex];

}


Mmmm
I'll see if I can get a debuggable VM up.


On Fri, Apr 1, 2016 at 9:03 AM, Bert Freudenberg <bert at freudenbergs.de>
wrote:

>
> On 01.04.2016, at 17:51, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> > On Apr 1, 2016, at 6:41 AM, Bert Freudenberg <bert at freudenbergs.de>
> wrote:
> >>
> >> When I drop a file into Squeak, the current VM locks up.
> >
> > :-(. If you start from the command line (launch Contents/MacOS/Squeak,
> don't use "open") and send the process SIGUSR1
>
> I don’t even have to send SIGUSR1. As soon as dragging something over the
> window, this gets printed in the terminal:
>
>
> 2016-04-01 18:01:40.268 Squeak[37074:2981792] -[sqSqueakOSXApplication
> recordDragEvent:numberOfFiles:where:windowIndex:]: unrecognized selector
> sent to instance 0x7c416d30
> 2016-04-01 18:01:40.268 Squeak[37074:2981792] -[sqSqueakOSXApplication
> recordDragEvent:numberOfFiles:where:windowIndex:]: unrecognized selector
> sent to instance 0x7c416d30
> 2016-04-01 18:01:40.269 Squeak[37074:2981792] (
>         0   CoreFoundation                      0x9e318a69 __raiseError +
> 201
>         1   libobjc.A.dylib                     0x928e2fd1
> objc_exception_throw + 276
>         2   CoreFoundation                      0x9e31c513
> -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
>         3   CoreFoundation                      0x9e20ce9c
> ___forwarding___ + 1020
>         4   CoreFoundation                      0x9e20ca7e
> _CF_forwarding_prep_0 + 14
>         5   Squeak                              0x000fbf61
> -[sqSqueakOSXOpenGLView draggingEntered:] + 298
>         6   AppKit                              0x91c1c1b5
> -[NSDragDestination _draggingEntered] + 49
>         7   AppKit                              0x919301e2
> NSCoreDragTrackingProc + 2466
>         8   HIServices                          0x98b22a43
> DoTrackingMessage + 357
>         9   HIServices                          0x98b29ca9
> CoreDragMessageHandler + 616
>         10  CoreFoundation                      0x9e2becbe
> __CFMessagePortPerform + 718
>         11  CoreFoundation                      0x9e21a185
> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
>         12  CoreFoundation                      0x9e21a0f0
> __CFRunLoopDoSource1 + 512
>         13  CoreFoundation                      0x9e211639 __CFRunLoopRun
> + 2649
>         14  CoreFoundation                      0x9e210976
> CFRunLoopRunSpecific + 390
>         15  CoreFoundation                      0x9e2107db
> CFRunLoopRunInMode + 123
>         16  Foundation                          0x97b0bbbc
> -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 296
>         17  Squeak                              0x000ff7ba
> -[sqSqueakMainApplication(events) pumpRunLoop] + 99
>         18  Squeak                              0x000f2c18
> -[sqSqueakOSXApplication(events) pumpRunLoop] + 50
>         19  Squeak                              0x000fd4d0
> nativeIoProcessEvents + 208
>         20  Squeak                              0x000fd524 ioProcessEvents
> + 35
>         21  Squeak                              0x00097a28
> checkForEventsMayContextSwitch + 884
>         22  Squeak                              0x00098ff6
> ceCheckForInterrupts + 16
>         23  ???                                 0x045f4afb 0x0 + 73353979
>         24  Squeak                              0x0008c01a interpret + 741
>         25  Squeak                              0x001001d4
> -[sqSqueakMainApplication runSqueak] + 489
>         26  Foundation                          0x97bd85b9
> __NSFirePerformWithOrder + 416
>         27  CoreFoundation                      0x9e23390e
> __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
>         28  CoreFoundation                      0x9e23386e
> __CFRunLoopDoObservers + 398
>         29  CoreFoundation                      0x9e210f92 __CFRunLoopRun
> + 946
>         30  CoreFoundation                      0x9e210976
> CFRunLoopRunSpecific + 390
>         31  CoreFoundation                      0x9e2107db
> CFRunLoopRunInMode + 123
>         32  HIToolbox                           0x99bed2f1
> RunCurrentEventLoopInMode + 267
>         33  HIToolbox                           0x99becfc5
> ReceiveNextEventCommon + 201
>         34  HIToolbox                           0x99beceec
> _BlockUntilNextEventMatchingListInModeWithFilter + 99
>         35  AppKit                              0x9165044e _DPSNextEvent +
> 1053
>         36  AppKit                              0x9164f9c7 -[NSApplication
> _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1057
>         37  AppKit                              0x9164f59e -[NSApplication
> nextEventMatchingMask:untilDate:inMode:dequeue:] + 121
>         38  AppKit                              0x91642cb3 -[NSApplication
> run] + 1063
>         39  AppKit                              0x916095a9
> NSApplicationMain + 1630
>         40  libdyld.dylib                       0x965146ad start + 1
>         41  ???                                 0x00000002 0x0 + 2
> )
> 2016-04-01 18:01:42.265 Squeak[37074:2981792] -[sqSqueakOSXApplication
> recordDragEvent:numberOfFiles:where:windowIndex:]: unrecognized selector
> sent to instance 0x7c416d30
> 2016-04-01 18:01:42.265 Squeak[37074:2981792] *** Canceling drag because
> exception 'NSInvalidArgumentException' (reason '-[sqSqueakOSXApplication
> recordDragEvent:numberOfFiles:where:windowIndex:]: unrecognized selector
> sent to instance 0x7c416d30') was raised during a dragging session
>
>
>
>
> - Bert -
>
>
>
>
>


-- 
===========================================================================
John M. McIntosh. Corporate Smalltalk Consulting Ltd
https://www.linkedin.com/in/smalltalk
===========================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160401/02724ba9/attachment-0001.htm


More information about the Vm-dev mailing list