Pharo image freeze and "Alt-." has no effect

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

Pharo image freeze and "Alt-." has no effect

Steven Rémot
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot
Reply | Threaded
Open this post in threaded view
|

Re: Pharo image freeze and "Alt-." has no effect

alistairgrant
Hi Steven,

Can you tell us which platform you're on, and the output of pharo --version

Cheers, 
Alistair


On 7 Apr. 2017 12:48, "Steven Rémot" <[hidden email]> wrote:
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot

Reply | Threaded
Open this post in threaded view
|

Re: Pharo image freeze and "Alt-." has no effect

Steven Rémot
I'm on Linux (Ubuntu 15.10), and the output of pharo -v is:

5.0 #1 Wed May  4 11:54:28 CEST 2016 gcc 4.6.3 [Production Spur ITHB VM]
CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
https://github.com/pharo-project/pharo-vm.git Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #589
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
plugin path: /home/steven/Documents/Programmes/pharo5.0/bin [default: /home/steven/Documents/Programmes/pharo5.0/bin/]


Le ven. 7 avr. 2017 à 12:54, Alistair Grant <[hidden email]> a écrit :
Hi Steven,

Can you tell us which platform you're on, and the output of pharo --version

Cheers, 
Alistair


On 7 Apr. 2017 12:48, "Steven Rémot" <[hidden email]> wrote:
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot

Reply | Threaded
Open this post in threaded view
|

Re: Pharo image freeze and "Alt-." has no effect

Steven Rémot
I think I got rid of the freeze by removing my implementation of layoutChanged in my morph:

  CreakoutMorph>>layoutChanged
      super layoutChanged.
      surface := AthensCairoSurface extent: self extent.

I used it to always have a surface that fits my morph whenever it's resized.

I can totally live without it, but I'm really curious to know what makes this code freeze my image sometimes, if ever someone knows it!

Le ven. 7 avr. 2017 à 13:05, Steven Rémot <[hidden email]> a écrit :
I'm on Linux (Ubuntu 15.10), and the output of pharo -v is:

5.0 #1 Wed May  4 11:54:28 CEST 2016 gcc 4.6.3 [Production Spur ITHB VM]
CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
https://github.com/pharo-project/pharo-vm.git Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #589
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
plugin path: /home/steven/Documents/Programmes/pharo5.0/bin [default: /home/steven/Documents/Programmes/pharo5.0/bin/]


Le ven. 7 avr. 2017 à 12:54, Alistair Grant <[hidden email]> a écrit :
Hi Steven,

Can you tell us which platform you're on, and the output of pharo --version

Cheers, 
Alistair


On 7 Apr. 2017 12:48, "Steven Rémot" <[hidden email]> wrote:
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot

Reply | Threaded
Open this post in threaded view
|

Re: Pharo image freeze and "Alt-." has no effect

Ben Coman
In reply to this post by Steven Rémot
Just for starters, can you try with dev-latest VM & Image...

cheers -ben

On Fri, Apr 7, 2017 at 7:05 PM, Steven Rémot <[hidden email]> wrote:
I'm on Linux (Ubuntu 15.10), and the output of pharo -v is:

5.0 #1 Wed May  4 11:54:28 CEST 2016 gcc 4.6.3 [Production Spur ITHB VM]
CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
https://github.com/pharo-project/pharo-vm.git Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #589
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
plugin path: /home/steven/Documents/Programmes/pharo5.0/bin [default: /home/steven/Documents/Programmes/pharo5.0/bin/]


Le ven. 7 avr. 2017 à 12:54, Alistair Grant <[hidden email]> a écrit :
Hi Steven,

Can you tell us which platform you're on, and the output of pharo --version

Cheers, 
Alistair


On 7 Apr. 2017 12:48, "Steven Rémot" <[hidden email]> wrote:
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot


Reply | Threaded
Open this post in threaded view
|

Re: Pharo image freeze and "Alt-." has no effect

Steven Rémot
It looks like the freeze is not present on the latest dev release Ben. I will tell you if it just takes time to appear but it looks much more stable.

Thanks!
Steven Rémot

Le sam. 8 avr. 2017 à 02:46, Ben Coman <[hidden email]> a écrit :

On Fri, Apr 7, 2017 at 7:05 PM, Steven Rémot <[hidden email]> wrote:
I'm on Linux (Ubuntu 15.10), and the output of pharo -v is:

5.0 #1 Wed May  4 11:54:28 CEST 2016 gcc 4.6.3 [Production Spur ITHB VM]
CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
https://github.com/pharo-project/pharo-vm.git Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #589
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
plugin path: /home/steven/Documents/Programmes/pharo5.0/bin [default: /home/steven/Documents/Programmes/pharo5.0/bin/]


Le ven. 7 avr. 2017 à 12:54, Alistair Grant <[hidden email]> a écrit :
Hi Steven,

Can you tell us which platform you're on, and the output of pharo --version

Cheers, 
Alistair


On 7 Apr. 2017 12:48, "Steven Rémot" <[hidden email]> wrote:
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot


Reply | Threaded
Open this post in threaded view
|

Re: Pharo image freeze and "Alt-." has no effect

Stephane Ducasse-3
Steven

welcome. I hope that you will make a great implementation. 
If you have a reproducible case where alt+ does not work we are interested. 
Denis improved the situation but we lack of a case that we can reproduce to 
improve it again.

Stef

On Sat, Apr 8, 2017 at 1:39 PM, Steven Rémot <[hidden email]> wrote:
It looks like the freeze is not present on the latest dev release Ben. I will tell you if it just takes time to appear but it looks much more stable.

Thanks!
Steven Rémot

Le sam. 8 avr. 2017 à 02:46, Ben Coman <[hidden email]> a écrit :

On Fri, Apr 7, 2017 at 7:05 PM, Steven Rémot <[hidden email]> wrote:
I'm on Linux (Ubuntu 15.10), and the output of pharo -v is:

5.0 #1 Wed May  4 11:54:28 CEST 2016 gcc 4.6.3 [Production Spur ITHB VM]
CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
https://github.com/pharo-project/pharo-vm.git Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #589
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
plugin path: /home/steven/Documents/Programmes/pharo5.0/bin [default: /home/steven/Documents/Programmes/pharo5.0/bin/]


Le ven. 7 avr. 2017 à 12:54, Alistair Grant <[hidden email]> a écrit :
Hi Steven,

Can you tell us which platform you're on, and the output of pharo --version

Cheers, 
Alistair


On 7 Apr. 2017 12:48, "Steven Rémot" <[hidden email]> wrote:
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot



Reply | Threaded
Open this post in threaded view
|

Re: Pharo image freeze and "Alt-." has no effect

Steven Rémot
Thanks Stephane ! I still get the freeze sometimes, but it's still really random, I can't find a way to reproduce it for sure. I had much less freezes on Pharo 5 the moment I stopped dumping and recreating athens surfaces at each layoutUpdate, that's all... I tell you if I find how to make it freeze for sure on Pharo 5 and on the dev snapshot.

Le dim. 16 avr. 2017 à 14:22, Stephane Ducasse <[hidden email]> a écrit :
Steven

welcome. I hope that you will make a great implementation. 
If you have a reproducible case where alt+ does not work we are interested. 
Denis improved the situation but we lack of a case that we can reproduce to 
improve it again.

Stef

On Sat, Apr 8, 2017 at 1:39 PM, Steven Rémot <[hidden email]> wrote:
It looks like the freeze is not present on the latest dev release Ben. I will tell you if it just takes time to appear but it looks much more stable.

Thanks!
Steven Rémot

Le sam. 8 avr. 2017 à 02:46, Ben Coman <[hidden email]> a écrit :

On Fri, Apr 7, 2017 at 7:05 PM, Steven Rémot <[hidden email]> wrote:
I'm on Linux (Ubuntu 15.10), and the output of pharo -v is:

5.0 #1 Wed May  4 11:54:28 CEST 2016 gcc 4.6.3 [Production Spur ITHB VM]
CoInterpreter VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
StackToRegisterMappingCogit VMMaker.oscog-eem.1855 uuid: d8e4a3c2-a3bf-4adc-b224-8012903a1ef4 May  4 2016
https://github.com/pharo-project/pharo-vm.git Commit: b8ec25a570d7539653e1d793e97609adb509aaed Date: 2016-05-04 11:14:22 +0200 By: Esteban Lorenzano <[hidden email]> Jenkins build #589
Linux pharo-linux 3.2.0-31-generic-pae #50-Ubuntu SMP Fri Sep 7 16:39:45 UTC 2012 i686 i686 i386 GNU/Linux
plugin path: /home/steven/Documents/Programmes/pharo5.0/bin [default: /home/steven/Documents/Programmes/pharo5.0/bin/]


Le ven. 7 avr. 2017 à 12:54, Alistair Grant <[hidden email]> a écrit :
Hi Steven,

Can you tell us which platform you're on, and the output of pharo --version

Cheers, 
Alistair


On 7 Apr. 2017 12:48, "Steven Rémot" <[hidden email]> wrote:
Hello everyone,

I'm new to pharo, and was writing a simple 2D game with Athens for rendering to practice a bit. I'm loving the environment so far, developing the game while it's running is really enjoyable :-) .

However, when the game is running, the pharo image will freeze at a random time. Alt-. doesn't make my image back to normal, the only solution I found is closing my image and opening it again, until the next freeze...

I don't really know what to do to investigate this bug, there is no output from pharo about this. The only thing I thought about is starting from a fresh image, importing my code and running it again to ensure it wasn't some messy state in the image I was using, and it froze even when running my code from a fresh image.

What can I do to debug it? Do you need more information to give me a direction?

Just in case you need it, here is the source: https://www.dropbox.com/s/pfn7ccw27i4nqr7/Creakout-debug.st?dl=0

Thanks,
Steven Rémot