[#47409] [ruby-trunk - Feature #6973][Open] Add an #integral? method to Numeric to test for whole-number values — "regularfry (Alex Young)" <alex@...>

12 messages 2012/09/03

[#47481] [ruby-trunk - Bug #7008][Open] rake is crashing when trying to compile ffi gem — "drookie (Eugene M. Zheganin Eugene M. Zheganin)" <eugene@...>

10 messages 2012/09/12

[#47505] [ruby-trunk - Feature #7019][Open] allow `private` and `protected` keywords to take blocks — "alexeymuranov (Alexey Muranov)" <redmine@...>

15 messages 2012/09/13

[#47582] [ruby-trunk - Bug #7037][Open] float formatting inconsistently rounds half to even — "headius (Charles Nutter)" <headius@...>

14 messages 2012/09/19

[#47638] [ruby-trunk - Bug #7046][Open] ERB#run and ERB#result are not safe for concurrent use — "headius (Charles Nutter)" <headius@...>

11 messages 2012/09/21

[#47655] [ruby-trunk - Feature #7051][Open] Extend caller_locations API to include klass and bindings. Allow caller_locations as a method hanging off Thread. — "sam.saffron (Sam Saffron)" <sam.saffron@...>

13 messages 2012/09/23

[#47657] [ruby-trunk - Feature #7055][Open] Allow `.foo=` as a synonym of `self.foo=` — "alexeymuranov (Alexey Muranov)" <redmine@...>

11 messages 2012/09/23

[#47730] [ruby-trunk - Bug #7085][Open] Subversion → GitHub gateway stops. — "shyouhei (Shyouhei Urabe)" <shyouhei@...>

27 messages 2012/09/29

[#47735] [ruby-trunk - Bug #7087][Open] ::ConditionVariable#wait does not work with Monitor because Monitor#sleep does not exist — "rklemme (Robert Klemme)" <shortcutter@...>

10 messages 2012/09/29

[#47759] [ruby-trunk - Bug #7092][Open] StringScanner start-of-line matches false positives, while lookbehind for a newline gives false negatives — "jayferd (Jay Adkisson)" <jjmadkisson@...>

8 messages 2012/09/30

[ruby-core:47723] [ruby-trunk - Bug #7070] sometimes backticks can fail to return data

From: "rogerdpack (Roger Pack)" <rogerpack2005@...>
Date: 2012-09-28 08:45:39 UTC
List: ruby-core #47723
Issue #7070 has been updated by rogerdpack (Roger Pack).


yes in the few limited tests I've tried (I still need to try a c-based popen that also spawn a new cmd shell IIRC) I am not able to get it to fail if I just capture "ffmpeg.exe 2>&1", only with that exact command line does it fail.  Interestingly Python's io.popen fails the same way, so I'm also wondering if it's a cmd.exe bug, when cmd.exe is spanwed with redirection.  I haven't tried COM-in-C-in-ffi because...dang that sounds hard though I suppose it would be possible... :)
=roger=
----------------------------------------
Bug #7070: sometimes backticks can fail to return data
https://bugs.ruby-lang.org/issues/7070#change-29772

Author: rogerdpack (Roger Pack)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20) [i386-mingw32]


Basically, if you have ffmpeg for windows, ex: http://ffmpeg.zeranoe.com/builds


Then run it like this:

 enum = `ffmpeg.exe -list_devices true -f dshow -i dummy 2>&1`

"every so often" the value returned is "" (presumably in error).

Example:

39 times you'll get this:

>>  enum = `temp\\ffmpeg.exe -list_devices true -f dshow -i dummy 2>&1`
=> "ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers\n  built on Sep  2 2012 20:23:29 with gcc 4.7.1 (GCC)\n  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass --enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib\n  libavutil      51. 70.100 / 51. 70.100\n  libavcodec     54. 55.100 / 54. 55.100\n  libavformat    54. 25.104 / 54. 25.104\n  libavdevice    54.  2.100 / 54.  2.100\n  libavfilter     3. 15.102 /  3. 15.102\n  libswscale      2.  1.101 /  2.  1.101\n  libswresample   0. 15.100 /  
 0. 15.100\n  libpostproc    52.  0.100 / 52.  0.100\n[dshow @ 003cc3a0] DirectShow video
 devices\n[dshow @ 003cc3a0]  \"screen-capture-recorder\"\n[dshow @ 003cc3a0] DirectShow audio devices\n[dshow @ 003cc3a0]  \"Microphone (USB Audio Device)\"\n[dshow @ 003cc3a0]  \"virtual-audio-capturer\"\ndummy: Immediate exit requested\n"
irb(main):036:0>  enum = `temp\\ffmpeg.exe -list_devices true -f dshow -i dummy 2>&1`

then the 40th will be
>>  enum = `temp\\ffmpeg.exe -list_devices true -f dshow -i dummy 2>&1`
=> ""

Running using C's "popen" seems to work reliably.
https://gist.github.com/3784971
I would note that jruby seems to suffer from the same difficulty for whatever reason.  Running it with other executables 
Thanks!


-- 
http://bugs.ruby-lang.org/

In This Thread