Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-10 Thread Gastón Dall' Oglio
Hi Paul, thanks for remark my post! :) The important here is that David Lewis has confirmed it fix the problem, http://forum.world.st/OSProcess-error-in-1-3-tp4602389p4607494.html But I don't know if you guys have here the same problem I had, because the issue was in Windows (). Just test change

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-10 Thread Sabine Manaa
and it seems that on windows the problem does not exist. So I could use OSSubprocess on unix and OSProcess on windows. 2016-06-10 9:25 GMT+02:00 Sabine Manaa : > Hi Nicolai, > > Thanks! I stopped all ZnServers with > WAServerManager default stopAll. > > Then I can do > Delay delaySchedulerClass:

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-10 Thread Sabine Manaa
Hi Nicolai, Thanks! I stopped all ZnServers with WAServerManager default stopAll. Then I can do Delay delaySchedulerClass: DelayMillisecondScheduler. without problems. 20 timesRepeat: [OSProcess command: ('echo "Hi there"').] . here, the problem persists -> locking image your code with OSSubpro

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-09 Thread Nicolai Hess
2016-06-09 15:42 GMT+02:00 Sabine Manaa : > Hi > > @mariano: > "Did you test if the one-liner (Delay delaySchedulerClass: > DelayMillisecondScheduler.) fixes these lookups? " > > -> my config loads materialDesignLite (which loads seaside and magritte). > after loading this > and trying the one li

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-09 Thread Sabine Manaa
Hi @mariano: "Did you test if the one-liner (Delay delaySchedulerClass: DelayMillisecondScheduler.) fixes these lookups? " -> my config loads materialDesignLite (which loads seaside and magritte). after loading this and trying the one liner, my image does not respond anymore. you can reproduce i

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Sabine Manaa
Hi Mariano, Great, I will try this tomorrow! Regards Sabine Am Mittwoch, 8. Juni 2016 schrieb Mariano Martinez Peck [via Smalltalk] : > Sabine, > > I did not yet tested OSProcess but with OSSubprocess (in 5.0) I cannot > reproduce the issue: > > *Polling strategy works:* > > Delay delaySchedulerC

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Paul DeBruicker
Hi Sabine, I had a Pharo 5 image where running OSProcess waitForCommand:'ls' twice would lock everything up. Following Gaston's suggestion here: http://forum.world.st/Problem-with-delay-waiting-OSSubprocess-code-on-Pharo-5-0-td4895780.html#a4898158 Fixed it for me. Maybe we hit the same issu

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Mariano Martinez Peck
Sabine, I did not yet tested OSProcess but with OSSubprocess (in 5.0) I cannot reproduce the issue: *Polling strategy works:* Delay delaySchedulerClass: DelayMillisecondScheduler. 20 timesRepeat: [OSSUnixSubprocess new command: 'echo'; arguments: { ' }; redirectStdout; *runAndWaitPollingEvery: (

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Sabine Manaa
Hi Mariano, if you take the download Image from the Pharo website, then load commandShell and then zinc from the catalog browser and then do Delay delaySchedulerClass: DelayMillisecondScheduler. and then 20 timesRepeat: [OSProcess command: ('echo "Hi there"').] Then you will get the lock. Does

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Sabine Manaa
Hi Mariano, ok, now I understand. But it is not clear to me, why "Delay delaySchedulerClass: DelayMillisecondScheduler" creates the locked image in my case. With a new Pharo5 image, there is no lock. I have to find out, what is causing this locks and report this to you, I hope tomorrow. Sabine

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Mariano Martinez Peck
As I said in a previous email I found out a bug in Pharo 5.0 related to delays. This affected OSSubprocess but could affect OSProcess as well. The workaround is setting ANOTHER kind of delay scheduler than the one that has the bug. I thought that the "locks" you were having could have been because

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Sabine Manaa
I dont understand Am Mittwoch, 8. Juni 2016 schrieb Mariano Martinez Peck [via Smalltalk] : > > > On Wed, Jun 8, 2016 at 10:33 AM, Sabine Manaa <[hidden email] > > wrote: > >> Hi Mariano, >> >> yes, I tried this. It creates a non-responding i

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Mariano Martinez Peck
On Wed, Jun 8, 2016 at 10:33 AM, Sabine Manaa wrote: > Hi Mariano, > > yes, I tried this. It creates a non-responding image. I have to kill it. > > Uhhh too bad :( I thought we were talking about the same issue. > Regards > Sabine > > 2016-06-08 15:26 GMT+02:00 Mariano Martinez Peck [via Sma

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Sabine Manaa
Hi Mariano, yes, I tried this. It creates a non-responding image. I have to kill it. Regards Sabine 2016-06-08 15:26 GMT+02:00 Mariano Martinez Peck [via Smalltalk] < ml-node+s1294792n489992...@n4.nabble.com>: > Sabine, > > Did you test if the one-liner (Delay delaySchedulerClass: > DelayMillis

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Mariano Martinez Peck
Sabine, Did you test if the one-liner (Delay delaySchedulerClass: DelayMillisecondScheduler.) fixes these lookups? Thanks On Wed, Jun 8, 2016 at 5:31 AM, Sabine Manaa wrote: > Hi Thierry, all, > > you were right, it was not so complicated to write my own version for > calling an external prog

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-08 Thread Sabine Manaa
Hi Thierry, all, you were right, it was not so complicated to write my own version for calling an external program based on your Github code. It worked fine on Pharo3+4 but on Pharo5 there are the locking problems described, also in your code. Until there is a decision if supporting windows in OS

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Thierry Goubier
2016-06-07 15:21 GMT+02:00 Peter Uhnak : > On Tue, Jun 07, 2016 at 01:22:04PM +0200, Thierry Goubier wrote: > > 2016-06-07 11:47 GMT+02:00 Peter Uhnak : > > > > > It's strange that I was using GitFileTree over OSProcess for a long > time > > > without issue and yet every time I tried to use OSProc

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Thierry Goubier
Hi Mariano, 2016-06-07 16:04 GMT+02:00 Mariano Martinez Peck : > Hi guys, > > I will try to answer many things at once: > > 1) Sabine, OSSubprocess works for Unix derived, not only Linux, that > includes OSX as well. > > 2) Tierry,Sabine for the case of loosing signals, the most trustful > soluti

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Sabine Manaa
Hi Thierry, Peter and Mariano, thank you for your feedback. I have to look at your suggestions and come back then. It is always great to get so immediate answers! Regards Sabine -- View this message in context: http://forum.world.st/OSProcess-command-non-responding-image-when-calling-often-t

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Mariano Martinez Peck
Hi guys, I will try to answer many things at once: 1) Sabine, OSSubprocess works for Unix derived, not only Linux, that includes OSX as well. 2) Tierry,Sabine for the case of loosing signals, the most trustful solution (in OSSubprocess) is to rely on a delay pooling instead of on the child reape

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Peter Uhnak
On Tue, Jun 07, 2016 at 01:22:04PM +0200, Thierry Goubier wrote: > 2016-06-07 11:47 GMT+02:00 Peter Uhnak : > > > It's strange that I was using GitFileTree over OSProcess for a long time > > without issue and yet every time I tried to use OSProcess directly I had > > this locking up. > > > > > Yes

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Thierry Goubier
2016-06-07 11:47 GMT+02:00 Peter Uhnak : > It's strange that I was using GitFileTree over OSProcess for a long time > without issue and yet every time I tried to use OSProcess directly I had > this locking up. > > Yes. This is a bit worrying; the low-level OSProcess call was a bit of a stopgap whi

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Thierry Goubier
2016-06-07 10:44 GMT+02:00 Sabine Manaa : > Hi Thierry, hi Pharo Team, > > Thierry, thank you! I switched to Pharo5 a few days ago. I am not yet > productive/online. I had a look at your code in a Pharo 3 image. It is the > code after >>runGitCommand:in:, right? > Yes. I'm not sure I backported i

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Peter Uhnak
It's strange that I was using GitFileTree over OSProcess for a long time without issue and yet every time I tried to use OSProcess directly I had this locking up. > So I am asking polite to the pharo developers team if there are plans to > provide a stable solution for calling external program

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Sabine Manaa
Hi Thierry, hi Pharo Team, Thierry, thank you! I switched to Pharo5 a few days ago. I am not yet productive/online. I had a look at your code in a Pharo 3 image. It is the code after >>runGitCommand:in:, right? Puh, I don't want to go so deep and implement that again for a small feature like my p

Re: [Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Thierry Goubier
Hi Sabine, which version of Pharo are you using? I had similar issues, and I managed to reduce those occurrences to a reasonable level by changing the way I called OSProcess (and a lot of help from Dave). I do have sometime lockups with OSSubprocess as well, but those are also rare. (I do think t

[Pharo-users] OSProcess command - non responding image when calling often

2016-06-07 Thread Sabine Manaa
Hi, sorry but I have another issue with OSProcess. For my app, I want to show small .png previews from my .pdfs. For this reason, I use an external software, currently pdfbox. It works fine, but regularly, I get a hanging image. I tried to reproduce it and found out, that it is not a problem with