Mousewheel issue on Icon Tree List

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Mousewheel issue on Icon Tree List

Postby tstalzer » Thu Mar 26, 2009 7:51 am

Hi

when I use the mousewheel while having the focus on a AbtContainerIconTreeView, I get the following walkback.

I can't imagine, that this has not come up yet on another persons system. Am I missing a config map to load?

Code: Select all
Debugger Stack Trace Report:
Error String: 'OSComposite does not understand wmScroll:with:'
Resumable: false

UIProcess
   Name: (26.03.2009 16:42:27)
   Process State: suspended
   Priority: 7

Executing in: OSComposite(OSScrollable)>>#wmVscroll:with:

System Configuration Dump


Copyright:

   VA Smalltalk V7.5.2 ; Image: 7.5.2
   VM Timestamp: 4.0,(NC) 6/12/2007 (74)
   (C) Copyright Instantiations 1994, 2007.  All rights reserved.
   (C) Copyright International Business Machines Corp. 1994, 2006.  All rights reserved.
   
   VASER - 7.0.11
   0193806300110101014
   (C) Copyright 1994-2005, OBJECT dynamics Software GmbH
   Loaded image "abtnet_vEdit.icx", Size 21832444, Date/Time 21.03.2009 21:42:31

Time:  16:46:26
Date:  26.03.2009

Platform:

   Virtual machine:  ES
   Bytecode version:  4.0
   Manager version:  4.00
   'OS' subsystem:  'WIN32s'
   'CLIM' subsystem:  'ES'
   'CP' subsystem:  'WIN32s'
   'CLDT' subsystem:  'ES'
   'CFS' subsystem:  'WIN32s'
   'SCI' subsystem:  'WIN'
   'CW' subsystem:  'WIN32s'
   'CPM' subsystem:  'ES'
   'CG' subsystem:  'WIN32s'
   'CPIC' subsystem:  'WIN32s'

Current user:  VASER Manager

Connected Library:

   Pathname:  ODSServ :: c:\emsrv\libraries\VASmt70\mgr70.dat
   Library version:  6
   Size of library:  854782032 bytes
   Has consistent EOF:  true
   Acquire read locks:  false
   Single user mode:  false
   Server address:  'ODSServ'

Library Access:

   Host system name:  None
   Use release lock mode:  true
   Native primitives library:  emntv50
   Emsrv primitives library:  emsrv50

Memory:

   Total allocation:  38596820 bytes
   Available:  2149608 bytes
   Fixed Space:  36040 bytes
   New Space:  297884 bytes
   Old Space:  1851112 bytes

=============<STACK TRACE BEGINS>============
[] in <optimized block>(ExceptionalEvent class)>>#initializeSystemExceptions
   signal=Signal on Exception: (ExError) An error has occurred.
Signal>>#evaluate:
   self=Signal on Exception: (ExError) An error has occurred.
   aBlock=[] in ExceptionalEvent class>>#initializeSystemExceptions
ExceptionalEvent>>#applyDefaultHandler:
   self=Exception: (ExError) An error has occurred.
   aSignal=Signal on Exception: (ExError) An error has occurred.
   exception=Exception: (ExError) An error has occurred.
ExceptionalEvent>>#signalWithArguments:
   self=Exception: (ExError) An error has occurred.
   arguments=('OSComposite does not understand wmScroll:with:')
   signal=Signal on Exception: (ExError) An error has occurred.
   handler=nil
ExceptionalEvent>>#signalWith:
   self=Exception: (ExError) An error has occurred.
   arg1='OSComposite does not understand wmScroll:with:'
OSComposite(Object)>>#error:
   self=OSComposite()
   aString='OSComposite does not understand wmScroll:with:'
OSComposite(Object)>>#doesNotUnderstand:
   self=OSComposite()
   aMessage=Message (#wmScroll:with:, (1 3803144))
OSComposite(OSScrollable)>>#wmVscroll:with:
   self=OSComposite()
   wParam=1
   lParam=3803144
   hwnd=OSHwnd {3803144}
   child=OSComposite()
OSComposite(OSWidget)>>#windowProc:with:with:
   self=OSComposite()
   msg=277
   arg1=1
   arg2=3803144
   selector=#wmVscroll:with:
   result=nil
OSEventManager class>>#windowProc:msg:with:with:
   self=OSEventManager
   hwnd=3803144
   msg=277
   arg1=1
   arg2=3803144
   object=OSComposite()
OSMsg>>#dispatchMessage
   self=*OSMsg {
hwnd: OSHwnd {3475820}
message: 273
wParam: 182
lParam: 0
time: 30062156
pt: *OSPoint {
x: 750
y: 396
}
}
OSEventManager class>>#dispatchEvent
   self=OSEventManager
   state=false
OSWidget class>>#readAndDispatch
   self=OSWidget
   state=true
   gotEvent=true
CwAppContext>>#readAndDispatch
   self=a CwAppContext
AbtWindowSystemStartUp class(EsWindowSystemStartUp class)>>#messageLoop
   self=AbtWindowSystemStartUp
   lastEventTime=29822687
   appContext=a CwAppContext
[] in <optimized block>(UIProcess class)>>#forkUserInterface
[] in UIProcess(Process)>>#executeBlock:withArguments:
   self=UIProcess:(26.03.2009 16:30:03){dead,3}
   aBlock=[] in UIProcess class>>#forkUserInterface
   args=()
UIProcess(Process)>>#executeBlock:withArguments:
   self=UIProcess:(26.03.2009 16:30:03){dead,3}
   aBlock=[] in UIProcess class>>#forkUserInterface
   args=()
UIProcess(Process)>>#newProcessOn:stackSize:withArguments:named:
   self=UIProcess:(26.03.2009 16:30:03){dead,3}
   aBlock=[] in UIProcess class>>#forkUserInterface
   stackSize=1024
   args=()
   procName='(26.03.2009 16:30:03)'
==============<STACK TRACE ENDS>=============
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Mousewheel issue on Icon Tree List

Postby tc » Thu Mar 26, 2009 6:46 pm

Hello,

What type of mouse are you using, the brand (MS, Logitech, etc.) and which mouse driver and version are you using?

Thanks.

--tc
tc
Moderator
 
Posts: 304
Joined: Tue Oct 17, 2006 7:40 am
Location: Raleigh, NC

Re: Mousewheel issue on Icon Tree List

Postby benvandijk » Thu Mar 26, 2009 11:24 pm

Hi Thomas,

My AbtContainerIconTreeView's work correctly.
My first guess would be to look at the "scrolling / scrollbar" settings of your AbtContainerIconTreeView.
Maybe changing those settings will solve your problem.

Greetings, Ben.
benvandijk
 
Posts: 45
Joined: Sun Feb 25, 2007 7:14 am
Location: Arnhem, Netherlands

Re: Mousewheel issue on Icon Tree List

Postby koschate » Fri Mar 27, 2009 5:44 am

If the mousewheel is working correctly everywhere else, you've got everything loaded that you need - there's only the one application. I also implemented support for WkPro spreadsheets, but that wasn't part of the goodie submission.

I've seen this DNU on occasion, but I was never able to figure out why. Strictly speaking, the #wmScroll:with: message is never supposed to get to an OSComposite. Sometimes, just building a new image will clear it, but, if it's really a problem, you can implement a #wmScroll:with: on OSComposite that does nothing.
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: Mousewheel issue on Icon Tree List

Postby tstalzer » Mon Mar 30, 2009 4:48 am

Hi

>>What type of mouse are you using, the brand (MS, Logitech, etc.) and which mouse driver and version are you using?
<<

I am using a "Microsoft Intellimouse Explorer 4.0 USB". Driver ist the official driver from MS (5.1.2600.0)

I "solved" (please note the quote) by implementing a "wmscroll:with:" method which does... nothing.

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Mousewheel issue on Icon Tree List

Postby tstalzer » Wed Apr 01, 2009 12:46 am

I could reproduce the problem in a standard installation.

I just did a Standard Installation of VAST 7.5.2. If I use the Mousewheel in the right list of the Organizer (List with Parts of an application after selecting "show all applications" and selecting a random one), I get the "OSComposite dnu wmScroll:with:").

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Mousewheel issue on Icon Tree List

Postby koschate » Wed Apr 01, 2009 5:25 am

tstalzer wrote:I just did a Standard Installation of VAST 7.5.2. If I use the Mousewheel in the right list of the Organizer (List with Parts of an application after selecting "show all applications" and selecting a random one), I get the "OSComposite dnu wmScroll:with:").


Which just proves that using the organizer is a bad idea... :{)

I loaded the MouseWheelAdditionsApp into a new abt.icx, and was unable to replicate the problem. What version of the MouseWheelAdditionsApp do you have loaded?
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: Mousewheel issue on Icon Tree List

Postby tstalzer » Wed Apr 01, 2009 11:30 pm

Hi Thomas

I get the error just in the base image without loading MouseWheelAdditionsApp. However, I cannot find this application in my installation :?: I looked for MouseWheelAdditionsApp , AbtMouseWheelAdditionsApp , EsMouseWheelAdditionsApp , etc. but the application is missing in my Manager.

Is it part of the standard VA/ST installation?

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Mousewheel issue on Icon Tree List

Postby bonndias » Thu Apr 02, 2009 12:59 am

tstalzer wrote:Is it part of the standard VA/ST installation?


Hi Thomas
it's not, but you can find it here:
http://www.instantiations.com/VAST/more/goodies.html
bonndias
 
Posts: 16
Joined: Mon Jun 09, 2008 4:15 am

Re: Mousewheel issue on Icon Tree List

Postby tstalzer » Thu Apr 02, 2009 3:43 am

Thanks Joa for the link (could have thought of that - somehow I assumed, it was part of the base package as the mousewheel support was already partially available)

However, I am still getting the error... :(

I loaded the app, scrubbed the image, saved, loaded and used the mousewheel and got the debugger again

I also saw, that in the application does nothing to the wmScroll:with: implementation.

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Mousewheel issue on Icon Tree List

Postby koschate » Thu Apr 02, 2009 9:38 am

tstalzer wrote:I loaded the app, scrubbed the image, saved, loaded and used the mousewheel and got the debugger again


I have a vague recollection of having exchanged an email or two with John O'Keefe about the OsComposite>>wmScroll:with: thing a few years ago, but we didn't really get anywhere with it because it's so hard to replicate. Have you actually tried to build up a new image that still has the problem? Your note suggests otherwise.

Either way, it has nothing to do with the Mousewheel Goodie, which lets me off the hook. :D

tstalzer wrote:I also saw, that in the application does nothing to the wmScroll:with: implementation.


That's true. Basically, it adds a listener for the WmMousewheel event in OSWidget's event table, and adds handlers for that event.
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: Mousewheel issue on Icon Tree List

Postby wembley » Thu Apr 02, 2009 1:14 pm

tstalzer wrote:I could reproduce the problem in a standard installation.
I just did a Standard Installation of VAST 7.5.2. If I use the Mousewheel in the right list of the Organizer (List with Parts of an application after selecting "show all applications" and selecting a random one), I get the "OSComposite dnu wmScroll:with:").

I don't see this behavior in VA8 Beta1 (where the mouse wheel support has been integrated). The code is a bit different than what is in the Goodie -- I don't know if this means the problem isn't there or it just means I can't reproduce it in my environment.
John O'Keefe [|], Principal Smalltalk Architect, Instantiations Inc.
wembley
Moderator
 
Posts: 405
Joined: Mon Oct 16, 2006 3:01 am
Location: Durham, NC

Re: Mousewheel issue on Icon Tree List

Postby koschate » Thu Apr 02, 2009 3:01 pm

koschate wrote:I don't see this behavior in VA8 Beta1 (where the mouse wheel support has been integrated). The code is a bit different than what is in the Goodie -- I don't know if this means the problem isn't there or it just means I can't reproduce it in my environment.


I wasn't able to reproduce it in 7.5 with or without MousewheelApp. I've seen it back when I was first doing MousewheelApp, either in 4.5 or 6.0, but it always went away with an image rebuild.
koschate
[|]
 
Posts: 102
Joined: Thu Feb 01, 2007 7:24 am

Re: Mousewheel issue on Icon Tree List

Postby tstalzer » Thu Apr 09, 2009 10:11 am

I tried it on another computer in our network and it worked. I connected the mouse (Logitech Premium optical Wheel mouse) of the other computer to my computer and it worked as well. I then tried my mouse on the other computer and the error appeared again.

So it seems, that the current implementation does not go well with the "Microsoft 4.0 USB" mouse. I verified that I have the latest drivers, etc.

I sort of "fixed" the problem with implementing the method wmScroll:with: on OSComposite doing nothing. Interesting enough, the mousewheel still scrolls in the lists.... :?: So it seems to be some kind of "Event gone wild" in the system.

--Thomas
tstalzer
[|]
 
Posts: 65
Joined: Mon Oct 16, 2006 12:07 am
Location: Palma de Mallorca - Spain

Re: Mousewheel issue on Icon Tree List

Postby Michael Keppler » Mon Apr 20, 2009 8:40 am

In our installations this error only occured, if the option "microsoft compatible scrolling" was activated in the Logitech mouse driver. So besides patching with an empty method implementation, you may also advice your customers to disable that option to get around the issue.
Michael Keppler
 
Posts: 28
Joined: Wed Feb 27, 2008 4:33 am


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest