David Buck | 1 May 2011 18:46
Favicon
Gravatar

Searchlight issue with Parcels

I get a walkback from Searchlight when I try to load a parcel.  In this 
case, I took a bundle from Store, published it as a parcel (Include 
bundle structure and save source file) but I named the parcel a 
different name than the bundle itself.  When I try to load this bundle 
into a clean image with Searchlight loaded, I get a walkback:

Unhandled exception: Message not understood: #postLoadBlock
UndefinedObject(Object)>>doesNotUnderstand:
Searchlight.SearchDatabase>>loadPundleModel:
Searchlight.SearchDatabase>>loadParcel:
...

Apparently the loadParcel: method assumes that the parcel name and the 
bundle name are the same but then can't find the bundle with that name.

David Buck
Dave Stevenson | 2 May 2011 22:16

endless loop printing a line

I've got an endless loop in VW 7.6 trying to print the border of a widget to a scaled MockMedium. In particular, the problem happens when printing the bottom of line of the border. Here is the repeating part of the stack:
    ScreenGraphicsContext(GraphicsContext)>>displayClippedPolygon:
    ScreenGraphicsContext>>roundedDisplayPolygon:at:
    ScreenGraphicsContext>>primDisplayPolygon:at:
    ScreenGraphicsContext(GraphicsContext)>>displayPolygon:at:
    ScreenGraphicsContext(GraphicsContext)>>displayPolygon:
     ScreenGraphicsContext(GraphicsContext)>>displayClippedPolygon:
    ...

And the relevant data:
    pointCollection = #(3 <at> 25 3 <at> 24 797 <at> 24 797 <at> 25)
    clippingBounds = 0 <at> 0 corner: 800 <at> 25
Note that the pointCollection is aligned with the bottom of the clippingBounds.

At issue is an apparent mismatch between Rectangle and GraphicsContext as to whether the bottom points (3 <at> 25 or 797 <at> 25) are inside the clippingBounds. Rectangle thinks it is out:
    Rectangle>>containsPoint:
    optimized [] in GraphicsContext>>isPolygon:inside:
    Array(ArrayedCollection)>>allSatisfy:
    ScreenGraphicsContext(GraphicsContext)>>isPolygon:inside:
    ScreenGraphicsContext(GraphicsContext)>>displayClippedPolygon:

because it checks for aPoint < corner, bu t aPoint y is not less than corner y, so it answers false:

    Rectangle>>containsPoint: aPoint
        "Answer whether the argument aPoint is within the receiver."
        ^origin <= aPoint and: [aPoint < corner]

    Point>>< aPoint
        "Answer whether the receiver is 'above and to the left' of the
        argument, aPoint."
        | p |
        p := aPoint asPoint.
        ^x < p x and: [y < p y]

But GraphicsContext thinks it is in:
    ScreenGraphicsContext(GraphicsContext)>>clipPolygon:toBottom:
    ScreenGraphicsContext(GraphicsContext)>>displayClippedPolygon:

because it checks for point y <= aNumber, and they are indeed equal:

    GraphicsContext>>clipPolygon: pointCollection toBottom: aNumber
        ^self
            clipPolygon: pointCollection
            insideBlock: [:point | point y <= aNumber]
            intersectionBlock: [:point1 :point2 | aNumber - point1 y * (point2 x - point1 x) // (point2 y - point1 y) + point1 x <at> aNumber]

So the difference of #< in #containsPoint: and #<= in #clipPolygon:toBottom: means the pointCollection never gets clipped, and we happily spin the cpu. The relevant code appears unchanged in the 7.8 beta.

Any recommendations as to how to fix or work around this?

Thanks,

Dave Stevenson
dave.stevenson <at> pacbell.net
_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Rick Hedin | 3 May 2011 03:19
Picon

Wonderful exploration tool -- spy

This seems like a wondeful way to find out what's going on:
 
It seems to be implied it will be part of VisualWorks 7.8, but I don't see a mention of "Spy" in the 7.8 release document.  Is this feature available?
 
 
            Regards,
 
            Rick
_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
James Robertson | 3 May 2011 04:05
Picon

Re: Wonderful exploration tool -- spy

Well, you have to look carefully, but at the very bottom of that post they tag it as ObjectStudio - it's not a VW tool

On May 2, 2011, at 9:19 PM, Rick Hedin wrote:

This seems like a wondeful way to find out what's going on:
 
It seems to be implied it will be part of VisualWorks 7.8, but I don't see a mention of "Spy" in the 7.8 release document.  Is this feature available?
 
 
            Regards,
 
            Rick
_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Boris Popov, DeepCove Labs | 3 May 2011 04:09
Gravatar

Re: Wonderful exploration tool -- spy

That’s not quite  true, I see VisualWorks as a tag as well, plus the following,

 

Where is the spy output?

 

Output is written to the transcript. Look at the transcript window for  Cincom® ObjectStudio® and the launcher window for Cincom® VisualWorks®.

 

There’s no reason this needs to be ObjectStudio specific, looks like simply a user-friendly tool built on top of existing Method Wrappers.

 

-Boris

 

From: vwnc-bounces <at> cs.uiuc.edu [mailto:vwnc-bounces <at> cs.uiuc.edu] On Behalf Of James Robertson
Sent: 02 May 2011 22:05
To: VWNC NC
Subject: Re: [vwnc] Wonderful exploration tool -- spy

 

Well, you have to look carefully, but at the very bottom of that post they tag it as ObjectStudio - it's not a VW tool

 

On May 2, 2011, at 9:19 PM, Rick Hedin wrote:



This seems like a wondeful way to find out what's going on:

 

It seems to be implied it will be part of VisualWorks 7.8, but I don't see a mention of "Spy" in the 7.8 release document.  Is this feature available?

 

 

            Regards,

 

            Rick

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

 

 

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
McNeil, Andrew | 3 May 2011 04:56
Favicon

Re: Wonderful exploration tool -- spy

You will have to install ObjectStudio to find the parcel though…  (in C:\Program Files\Cincom\ObjectStudio8.3\ObjectStudio\parcels\contributed  by default).

 

Jun also has some sort of MessageSpy though I am not familiar with what it does.

 

Regards

Andrew

 

From: vwnc-bounces <at> cs.uiuc.edu [mailto:vwnc-bounces <at> cs.uiuc.edu] On Behalf Of Boris Popov, DeepCove Labs
Sent: Tuesday, 3 May 2011 12:09 PM
To: James Robertson; VWNC NC
Subject: Re: [vwnc] Wonderful exploration tool -- spy

 

That’s not quite  true, I see VisualWorks as a tag as well, plus the following,

 

Where is the spy output?

 

Output is written to the transcript. Look at the transcript window for  Cincom® ObjectStudio® and the launcher window for Cincom® VisualWorks®.

 

There’s no reason this needs to be ObjectStudio specific, looks like simply a user-friendly tool built on top of existing Method Wrappers.

 

-Boris

 

From: vwnc-bounces <at> cs.uiuc.edu [mailto:vwnc-bounces <at> cs.uiuc.edu] On Behalf Of James Robertson
Sent: 02 May 2011 22:05
To: VWNC NC
Subject: Re: [vwnc] Wonderful exploration tool -- spy

 

Well, you have to look carefully, but at the very bottom of that post they tag it as ObjectStudio - it's not a VW tool

 

On May 2, 2011, at 9:19 PM, Rick Hedin wrote:

 

This seems like a wondeful way to find out what's going on:

 

It seems to be implied it will be part of VisualWorks 7.8, but I don't see a mention of "Spy" in the 7.8 release document.  Is this feature available?

 

 

            Regards,

 

            Rick

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

 

 

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Boris Popov, DeepCove Labs | 3 May 2011 05:00
Gravatar

Re: Wonderful exploration tool -- spy

Not cool.

Sent from my iPhone

On 2011-05-02, at 22:58, "McNeil, Andrew" <AMcNeil <at> cincom.com> wrote:

You will have to install ObjectStudio to find the parcel though…  (in C:\Program Files\Cincom\ObjectStudio8.3\ObjectStudio\parcels\contributed  by default).

 

Jun also has some sort of MessageSpy though I am not familiar with what it does.

 

Regards

Andrew

 

From: vwnc-bounces <at> cs.uiuc.edu [mailto:vwnc-bounces <at> cs.uiuc.edu] On Behalf Of Boris Popov, DeepCove Labs
Sent: Tuesday, 3 May 2011 12:09 PM
To: James Robertson; VWNC NC
Subject: Re: [vwnc] Wonderful exploration tool -- spy

 

That’s not quite  true, I see VisualWorks as a tag as well, plus the following,

 

Where is the spy output?

 

Output is written to the transcript. Look at the transcript window for  Cincom® ObjectStudio® and the launcher window for Cincom® VisualWorks®.

 

There’s no reason this needs to be ObjectStudio specific, looks like simply a user-friendly tool built on top of existing Method Wrappers.

 

-Boris

 

From: vwnc-bounces <at> cs.uiuc.edu [mailto:vwnc-bounces <at> cs.uiuc.edu] On Behalf Of James Robertson
Sent: 02 May 2011 22:05
To: VWNC NC
Subject: Re: [vwnc] Wonderful exploration tool -- spy

 

Well, you have to look carefully, but at the very bottom of that post they tag it as ObjectStudio - it's not a VW tool

 

On May 2, 2011, at 9:19 PM, Rick Hedin wrote:

 

This seems like a wondeful way to find out what's going on:

 

It seems to be implied it will be part of VisualWorks 7.8, but I don't see a mention of "Spy" in the 7.8 release document.  Is this feature available?

 

 

            Regards,

 

            Rick

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

 

 

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
intrader | 3 May 2011 06:09
Picon

Using #deepCopy, I have trouble understanding why it the code fails.

The code I have trouble with is in my workspace where I execute via 'DoIt'
<code>
|contacts copy|
contacts := MyContact contacts.
copy := contacts deepCopy.
(contacts = copy) ifTrue: [true inspect]
ifFalse: [false inspect]
</copy>
When I use #copy instead of #deepCopy the code correctly enters the ifTrue path. Both contacts and copy show the same under inspection and explore.
all inst vars:
array:     an Array(nil nil a MyContact a MyContact nil nil nil nil nil nil)
firstIndex:     3
lastIndex:     4

Class methods for MyContact:
<code>
contacts
    "Answers the storage for contacts"
    Database isNil ifTrue: [self createSampleDatabase].
    ^ Database
createSampleDatabase
    Database := (OrderedCollection new)
        add: (self name: 'Bob Jones' emailAddress: 'bob <at> gmail.com');
        add: (self name: 'Steve Smith' emailAddress: 'steveS <at> gmail.com');
        yourself
</code>
Database is an instance variable of MyContact.
The code failing is in the method
<code>
hasEqualElements: otherCollection
    "Answer whether the receiver's size is the same as otherCollection's
    size, and each of the receiver's elements equal the corresponding
    element of otherCollection.
    This should probably replace the current definition of #= ."

    | size |
    (otherCollection isKindOf: SequenceableCollection) ifFalse: [^ false].
    (size := self size) = otherCollection size ifFalse: [^ false].
    1 to: size do:
        [:index |
        (self at: index) = (otherCollection at: index) ifFalse: [^ false]].
    ^ true
= anObject
    "Answer whether the receiver and the argument represent the same
    object. If = is redefined in any subclass, consider also redefining the
    message hash."

    ^self == anObject
</code>
The '#=' code executes a '#==' and fails. Why is it excuting '#==' ? Obviously it would fail for deepCopy.

Thanks


_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Linh Dinh | 3 May 2011 06:50
Picon
Favicon

http upload error

Hi,

 

We’ve a web server running Windows 2K3-SP1 with IIS6 and VW-7.2.1 ISAPI (localhost <at> 2223.dll, 40,960 bytes, created on 7/28/04).  VW External Web Server is configured with Hostname: localhost, Port: 2223, Virtual Directories: cgi. 

 

The setup work fine until we applied the latest Windows security updates.  Unloading the Windows security updates didn’t resolve the problem.

 

In VW 7.2.1 client app, we get the following error message dialog when trying to upload a small file, ~24kb.  “Error handling HTTP request: Net.HttpObjectNotFound (404 Not Found)”

 

In Windows IIS log, we see the following error message.

“date time hostIP POST /cgi/upload – 80 cgi destIP HTTP/1.1 – hostIP 404  2  1772  24848”

 

We’ve check and re-check the Web Service Extension (localhost <at> 2223.dll) is added and allowed.  We’ve verified NETWORK SERVICES account has read/write access to the upload area and is the identity defined in IIS application pool.  Short of throwing the server out the window, we can’t seem to get the old setup working again.  If anyone can shed some more light into our uploading issue, much will be appreciated.

 

Thanks,

Linh

 

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Linh Dinh | 3 May 2011 07:48
Picon
Favicon

Re: http upload error

Found a dim light at the end of the road...
 
For future reference...In configuring the Application Extension Mapping, do NOT place a check mark on "Verify that file exists".

From: Linh Dinh <linhpdinh <at> yahoo.com>
To: vwnc NC <vwnc <at> cs.uiuc.edu>
Sent: Mon, May 2, 2011 9:50:35 PM
Subject: [vwnc] http upload error

Hi,

 

We’ve a web server running Windows 2K3-SP1 with IIS6 and VW-7.2.1 ISAPI (localhost <at> 2223.dll, 40,960 bytes, created on 7/28/04).  VW External Web Server is configured with Hostname: localhost, Port: 2223, Virtual Directories: cgi. 

 

The setup work fine until we applied the latest Windows security updates.  Unloading the Windows security updates didn’t resolve the problem.

 

In VW 7.2.1 client app, we get the following error message dialog when trying to upload a small file, ~24kb.  “Error handling HTTP request: Net.HttpObjectNotFound (404 Not Found)”

 

In Windows IIS log, we see the following error message.

“date time hostIP POST /cgi/upload – 80 cgi destIP HTTP/1.1 – hostIP 404  2  1772  24848”

 

We’ve check and re-check the Web Service Extension (localhost <at> 2223.dll) is added and allowed.  We’ve verified NETWORK SERVICES account has read/write access to the upload area and is the identity defined in IIS application pool.  Short of throwing the server out the window, we can’t seem to get the old setup working again.  If anyone can shed some more light into our uploading issue, much will be appreciated.

 

Thanks,

Linh

 

_______________________________________________
vwnc mailing list
vwnc <at> cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

Gmane