Clipboard VM crash

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Clipboard VM crash

Chris Petsos
 
I used this...
 
 
and the VM crashes when i try to copy the code of a method.
To reproduce:
 
1) Open a Browser.
2) Select the code of any method.
3) Try to copy...boom.
 
Now, the copy/paste method works fine for Workspace data.
The crash looks like a faulty memory allocation. Listen what i encountered a few days ago...
 
Many of the methods inside the squeak image have "return character" proper CrLf ( 13 & 10 ).
Andreas,
i feel that in your VM code you either count less bytes with ClipboardSize or you allocate small buffer for translating to UTF8...
I had encountered this when i was implementing the clipboard functionality... take a look at the sqWin32Window.c that i have inside the zip file i've posted.
It works OK...It must be a detail you've missed there...
 
Christos.
 
Reply | Threaded
Open this post in threaded view
|

Re: Clipboard VM crash

Andreas.Raab
 
Chris Petsos wrote:
> To reproduce:
>  
> 1) Open a Browser.
> 2) Select the code of any method.
> 3) Try to copy...boom.

Any method? Or a particular one? I have used copy quite a bit without
ill effects so if you point out:
a) Which image you use (so I can get a copy)
b) Which method explodes (so I can try for myself)
this would be great.


Cheers,
   - Andreas
Reply | Threaded
Open this post in threaded view
|

Re: Clipboard VM crash

Chris Petsos
 

> Chris Petsos wrote:
> > To reproduce:
> >
> > 1) Open a Browser.
> > 2) Select the code of any method.
> > 3) Try to copy...boom.
>
> Any method? Or a particular one? I have used copy quite a bit without
> ill effects so if you point out:
> a) Which image you use (so I can get a copy)
> b) Which method explodes (so I can try for myself)
> this would be great.

I use the image here...
    http://tinlizzie.org/olpc/etoys-2.0-latest.zip

Silly me...i can't reproduce the problem! :-(
Now...let me see if i get things right...
When i download the *bin.zip file from squeakvm repository there are two
files in there the .exe and the ffiprims .dll thingy.
I execute the .exe file from the unzipped folder...do you think there can be
problems because i am running other versions of the VM too?
Do i have to copy the unzipped files inside the installed Squeak plugin
directory...just in case it is searching for other things too?
If all these are nonsense then i was mis-running the wrong version of the VM
when i encountered the problem and i am sorry...

Christos.

Reply | Threaded
Open this post in threaded view
|

Re: Clipboard VM crash

Andreas.Raab
 
Hi Chris -

I just found and fixed this problem. Pure stupidity on my part. The fix
is checked into squeakvm.org - I'll make an updated VM when I find the
time (I also added UTF-8 support for drop and async file support).

Cheers,
   - Andreas

Chris Petsos wrote:

>  
>> Chris Petsos wrote:
>>> To reproduce:
>>>
>>> 1) Open a Browser.
>>> 2) Select the code of any method.
>>> 3) Try to copy...boom.
>> Any method? Or a particular one? I have used copy quite a bit without
>> ill effects so if you point out:
>> a) Which image you use (so I can get a copy)
>> b) Which method explodes (so I can try for myself)
>> this would be great.
>
> I use the image here...
>     http://tinlizzie.org/olpc/etoys-2.0-latest.zip
>
> Silly me...i can't reproduce the problem! :-(
> Now...let me see if i get things right...
> When i download the *bin.zip file from squeakvm repository there are two
> files in there the .exe and the ffiprims .dll thingy.
> I execute the .exe file from the unzipped folder...do you think there can be
> problems because i am running other versions of the VM too?
> Do i have to copy the unzipped files inside the installed Squeak plugin
> directory...just in case it is searching for other things too?
> If all these are nonsense then i was mis-running the wrong version of the VM
> when i encountered the problem and i am sorry...
>
> Christos.
>