pharo-graphics / Bloc

Low-level UI infrastructure & framework for Pharo
MIT License
80 stars 40 forks source link

SDL Error when image saved and moved to another PC #418

Open labordep opened 7 months ago

labordep commented 7 months ago

Hi, I'm not sure if this issue should be here.

The problem appears when we used an image with showed spaces (with SDL backend). I transfert the image from my PC to another PC with another location:

From PC A with the VM in the location C:/users/personA/vm => To PC B C:/users/personB/vm

In the blured part of the exception screenshot below (sorry for that), vars module and stackTop are always linked to C:/users/personA/vm instead of C:/users/personB/vm.

And I have this error with a freeze of the image. Need to kill the Pharo process because the image is completly freeze.

CaptureSDLError

Very difficult to reproduce, don't hesitate to give yours suggestions to reproduce! Note: I can do some evaluations in the original image in PC A.

Config:

tinchodias commented 7 months ago

This is Pharo generic, not Bloc, but we are affected. The SDL_PollEvent function belongs to the 'OSWindow-SDL2' package and is called every 5ms to retrieve any new system event. The loop is in OSSDL2Driver>>#eventLoopProcessWithoutPlugin

labordep commented 7 months ago

Thanks @tinchodias, what is your suggestion to help fixing this issue? Moving the issue to another place?

tinchodias commented 7 months ago

It belongs to pharo project, anyway I take note for a pair-programming session with Pablo, we can look at this.

tinchodias commented 7 months ago

@labordep After talking with Pablo we don't have an hypothesis about why this happened. Did it happen more than once? We would need to have a way to reproduce. Changing the PC shouldn't be necessary to reproduce, just moving from a folder to another in the same disk should be enough.

labordep commented 7 months ago

thanks @tinchodias for your analyse. I will have a look on this issue next week to find something to share.