Windows CLI Commands in Ruby freeze Wine application
Windows CLI Commands in Ruby freeze Wine application
I use a Wine application (Google SketchUp) that has Ruby as scripting language. I want to issue commands to the Windows cmd from within SketchUp/Ruby. When I write on the Ruby console in SketchUp:
puts `dir`
or
puts `cd`
it should return the result of that command, but it freezes SketchUp and the gnome-terminal gives this error after some seconds:
err:ntdll:RtlpWaitForCriticalSection section 0x136d24 "?" wait timed out in thread 0009, blocked by 0000, retrying (60 sec)
The command does work in wine cmd, and SketchUp has the correct path to find cmd.exe:
ENV["ComSpec"]
C:\windows\system32\cmd.exe
What could I do to solve this?
puts `dir`
or
puts `cd`
it should return the result of that command, but it freezes SketchUp and the gnome-terminal gives this error after some seconds:
err:ntdll:RtlpWaitForCriticalSection section 0x136d24 "?" wait timed out in thread 0009, blocked by 0000, retrying (60 sec)
The command does work in wine cmd, and SketchUp has the correct path to find cmd.exe:
ENV["ComSpec"]
C:\windows\system32\cmd.exe
What could I do to solve this?
Re: Windows CLI Commands in Ruby freeze Wine application
Try starting your program from wineconsole instead of regular *nix terminal.Aerilius wrote:it should return the result of that command, but it freezes SketchUp and the gnome-terminal gives this error after some seconds:
I tried in gnome-terminal with
and it opened a cmd window which opened SketchUp, but putting the above command on SketchUp's ruby console still freezes SketchUp and gives the same error in gnome-terminal.
I also started directly cmd.exe and launched SketchUp.exe from there, but same result.
Code: Select all
wineconsole "C:\Programme\Google\Google SketchUp 8\SketchUp.exe"
I also started directly cmd.exe and launched SketchUp.exe from there, but same result.
Same error in Wine 1.3.29 with SketchUp's Ruby (1.86) and latest Ruby.
Code: Select all
$ wine cmd
CMD Version 1.3.29
C:\>Ruby186\bin\ruby.exe -e 'puts %x[dir]'
err:ntdll:RtlpWaitForCriticalSection section 0x1116ac "?" wait timed out in thread 002b, blocked by 0000, retrying (60 sec)
Hi,
the errors persist (Wine 1.3.37, ruby 1.8.7)
Probably all cmd commands give this error (error message repeats after 60s, doesn't stop). I tested echo, dir, cd, date, path, reg.
While cmd commands don't work, launching applications works by giving the file path to the program or to a batch file. Example in Ruby:
the errors persist (Wine 1.3.37, ruby 1.8.7)
Code: Select all
err:ntdll:RtlpWaitForCriticalSection section 0x1135e4 "?" wait timed out in thread 0026, blocked by 0000, retrying (60 sec)
While cmd commands don't work, launching applications works by giving the file path to the program or to a batch file. Example in Ruby:
Off-topic, @jaspo: I used a workaround. I wrote the commands to a batch file and launched the batch file. If necessary, the batch file writes the results back to a text file that I then read into Ruby. You can find some code in the ImageMagick.rb here: forums.sketchucation.com/viewtopic.php?f=323&t=40720puts %x[C:\\users\\username\\batch.bat]
-
- Level 7
- Posts: 823
- Joined: Thu Aug 27, 2009 6:23 am
-
- Moderator
- Posts: 1153
- Joined: Wed Apr 27, 2011 11:01 pm
Windows CLI Commands in Ruby freeze Wine application
On Sat, Feb 4, 2012 at 1:55 PM, lahmbi5678 <[email protected]> wrote:
Thus the next release after 1.4 will be 1.6.
James
AFIK: All releases of Wine are even. Development releases are odd.Hi Airilius,
you probably should file a bug. Unfortunately wine is in code freeze for the 1.4 release, so even if a wine dev tackles that
bug and prepares a solution, it may not be fixed in the next few weeks, you may have to wait for a 1.5 release.
Thus the next release after 1.4 will be 1.6.
James
Re: Windows CLI Commands in Ruby freeze Wine application
Stable releases are even, development releases are odd. The next release after 1.4 will be a development release, 1.5.0.jjmckenzie wrote:AFIK: All releases of Wine are even. Development releases are odd.