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 issue. Paul
|
In reply to this post by Mariano Martinez Peck
Hi Mariano,
Great, I will try this tomorrow! Regards Sabine
Am Mittwoch, 8. Juni 2016 schrieb Mariano Martinez Peck [via Smalltalk] :
|
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 it when taking a new image and loading material design lite (no catalog entry yet) Gofer new package: 'ConfigurationOfMaterialDesignLite'; load. ((Smalltalk at: #ConfigurationOfMaterialDesignLite) project version: #development) load. (proceed at the deprecated warnings for subString:) then try the one liner. Image does not respond anymore. @Paul, I took a new image, I loaded OSProcess from catalog browser and did the change. | aio | (aio := Smalltalk at: #AioEventHandler) ifNotNil: [ aio startUp: resuming ]. OSProcessAccessor initialize. "resuming ifTrue: [" self initializeThisOSProcess "]" (problem persists with and without code in ") 20 timesRepeat: [OSProcess command: ('echo "Hi there"').] No - the problem persists. I will stay at pharo4 for several weeks and the try again. If I can help fixing the problem I will do - please tell me what to do. Regards Sabine |
2016-06-09 15:42 GMT+02:00 Sabine Manaa <[hidden email]>:
I think there is a running ZnServer, that does not like this change on the delay class. Can you stop (terminate) the server and try again the change on the Delay scheduler class. @ben, do you think the call to the scheduler class change needs another step to make sure no process (like the ZnServer) is hanging?
|
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 OSSubprocess is working fine. @Mariano: it seems to be another problem with the locks in OSProcess because after changing the delaySchedulerClass, I get locking images with the OSProcess command: .... Regards Sabine 2016-06-09 19:13 GMT+02:00 Nicolai Hess-3-2 [via Smalltalk] <[hidden email]>:
|
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 <[hidden email]>:
|
In reply to this post by Paul DeBruicker
Hi Paul, thanks for remark my post! :) The important here is that David Lewis has confirmed it fix the problem, But I don't know if you guys have here the same problem I had, because the issue was in Windows (). Just test change ThisOSProcess>>startUp: and see what happens :) ThisOSProcess>>startUp: resuming | aio | (aio := Smalltalk at: #AioEventHandler) ifNotNil: [ aio startUp: resuming ]. *OSProcessAccessor initialize.* self initializeThisOSProcess HTH Regards. 2016-06-08 15:12 GMT-03:00 Paul DeBruicker <[hidden email]>: Hi Sabine, |
Free forum by Nabble | Edit this page |