Skip to content

Instantly share code, notes, and snippets.

Created April 5, 2013 13:29
Show Gist options
  • Save anonymous/5319263 to your computer and use it in GitHub Desktop.
Save anonymous/5319263 to your computer and use it in GitHub Desktop.
gdk-pixbuf: Windowsでjpgとgitを同時に使うとSegmentation fault
C:\Users\myokoym\Downloads\ruby-gnome2-master\gtk3\sample\gtk-demo>ruby -v
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
C:\Users\myokoym\Downloads\ruby-gnome2-master\gtk3\sample\gtk-demo>gem list
*** LOCAL GEMS ***
atk (1.2.6 x86-mingw32)
bigdecimal (1.2.0)
cairo (1.12.4 x86-mingw32)
gdk3 (1.2.6 x86-mingw32)
gdk_pixbuf2 (1.2.6 x86-mingw32)
gio2 (1.2.6 x86-mingw32)
glib2 (1.2.6 x86-mingw32)
gtk3 (1.2.6 x86-mingw32)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
pango (1.2.6 x86-mingw32)
pkg-config (1.1.4)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
test-unit (2.0.0.0)
C:\Users\myokoym\Downloads\ruby-gnome2-master\gtk3\sample\gtk-demo>type jpg-and-gif-together.rb
#!/usr/bin/env ruby
require 'gtk3'
Gdk::Pixbuf.new("background.jpg")
Gdk::Pixbuf.new("gtk-logo-rgb.gif")
C:\Users\myokoym\Downloads\ruby-gnome2-master\gtk3\sample\gtk-demo>ruby jpg-and-gif-together.rb
jpg-and-gif-together.rb: line 6
GLib-GObject-WARNING **:cannot register existing type `GdkPixbufGdipAnim'
jpg-and-gif-together.rb: line 6
GLib-CRITICAL **:g_once_init_leave: assertion `result != 0' failed
jpg-and-gif-together.rb: line 6
GLib-GObject-CRITICAL **:g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
jpg-and-gif-together.rb:6: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
-- Control frame information -----------------------------------------------
c:0004 p:---- s:0010 e:000009 CFUNC :initialize
c:0003 p:---- s:0008 e:000007 CFUNC :new
c:0002 p:0039 s:0004 E:0020bc EVAL jpg-and-gif-together.rb:6 [FINISH]
c:0001 p:0000 s:0002 E:0019b4 TOP [FINISH]
jpg-and-gif-together.rb:6:in `<main>'
jpg-and-gif-together.rb:6:in `new'
jpg-and-gif-together.rb:6:in `initialize'
-- C level backtrace information -------------------------------------------
C:\Windows\SysWOW64\ntdll.dll(ZwWaitForSingleObject+0x15) [0x77DDF8B1]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObjectEx+0x43) [0x77621194]
C:\Windows\syswow64\kernel32.dll(WaitForSingleObject+0x12) [0x77621148]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_vm_bugreport+0xa7) [0x668F5927]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_name_err_mesg_new+0x69d) [0x667BD97D]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_bug+0x2e) [0x667BE77E]
C:\Ruby200\bin\msvcrt-ruby200.dll(rb_check_safe_str+0x17c) [0x6687D0FC]
[0x00401866]
C:\Windows\SysWOW64\ntdll.dll(RtlKnownExceptionFilter+0xb7) [0x77E374DF]
-- Other runtime information -----------------------------------------------
* Loaded script: jpg-and-gif-together.rb
* Loaded features:
0 enumerator.so
1 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/enc/encdb.so
2 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/enc/windows_31j.so
3 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/enc/trans/transdb.so
4 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/rbconfig.rb
5 C:/Ruby200/lib/ruby/2.0.0/rubygems/compatibility.rb
6 C:/Ruby200/lib/ruby/2.0.0/rubygems/defaults.rb
7 C:/Ruby200/lib/ruby/2.0.0/rubygems/deprecate.rb
8 C:/Ruby200/lib/ruby/2.0.0/rubygems/errors.rb
9 C:/Ruby200/lib/ruby/2.0.0/rubygems/version.rb
10 C:/Ruby200/lib/ruby/2.0.0/rubygems/requirement.rb
11 C:/Ruby200/lib/ruby/2.0.0/rubygems/platform.rb
12 C:/Ruby200/lib/ruby/2.0.0/rubygems/specification.rb
13 C:/Ruby200/lib/ruby/2.0.0/rubygems/exceptions.rb
14 C:/Ruby200/lib/ruby/2.0.0/rubygems/defaults/operating_system.rb
15 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/enc/utf_16le.so
16 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/enc/trans/utf_16_32.so
17 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_gem.rb
18 C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb
19 C:/Ruby200/lib/ruby/2.0.0/rubygems.rb
20 C:/Ruby200/lib/ruby/2.0.0/rubygems/path_support.rb
21 C:/Ruby200/lib/ruby/2.0.0/rubygems/dependency.rb
22 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/pathname.so
23 C:/Ruby200/lib/ruby/2.0.0/pathname.rb
24 C:/Ruby200/lib/ruby/2.0.0/English.rb
25 C:/Ruby200/lib/ruby/2.0.0/thread.rb
26 C:/Ruby200/lib/ruby/gems/2.0.0/gems/glib2-1.2.6-x86-mingw32/lib/glib2/deprecatable.rb
27 C:/Ruby200/lib/ruby/2.0.0/i386-mingw32/enc/trans/japanese_sjis.so
28 C:/Ruby200/lib/ruby/gems/2.0.0/gems/glib2-1.2.6-x86-mingw32/lib/2.0/glib2.so
29 C:/Ruby200/lib/ruby/gems/2.0.0/gems/glib2-1.2.6-x86-mingw32/lib/glib2.rb
30 C:/Ruby200/lib/ruby/gems/2.0.0/gems/atk-1.2.6-x86-mingw32/lib/2.0/atk.so
31 C:/Ruby200/lib/ruby/gems/2.0.0/gems/atk-1.2.6-x86-mingw32/lib/atk.rb
32 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/color.rb
33 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/paper.rb
34 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/2.0/cairo.so
35 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/constants.rb
36 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/point.rb
37 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/colors.rb
38 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/papers.rb
39 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/context/rectangle.rb
40 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/context/triangle.rb
41 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/context/circle.rb
42 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/context/path.rb
43 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/context/blur.rb
44 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/context/color.rb
45 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/context.rb
46 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/device.rb
47 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/surface.rb
48 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/pattern.rb
49 C:/Ruby200/lib/ruby/2.0.0/forwardable.rb
50 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo/path.rb
51 C:/Ruby200/lib/ruby/gems/2.0.0/gems/cairo-1.12.4-x86-mingw32/lib/cairo.rb
52 C:/Ruby200/lib/ruby/gems/2.0.0/gems/pango-1.2.6-x86-mingw32/lib/2.0/pango.so
53 C:/Ruby200/lib/ruby/gems/2.0.0/gems/pango-1.2.6-x86-mingw32/lib/pango.rb
54 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gdk_pixbuf2-1.2.6-x86-mingw32/lib/2.0/gdk_pixbuf2.so
55 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gdk_pixbuf2-1.2.6-x86-mingw32/lib/gdk_pixbuf2.rb
56 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gdk3-1.2.6-x86-mingw32/lib/2.0/gdk3.so
57 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gdk3-1.2.6-x86-mingw32/lib/gdk3/base.rb
58 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gdk3-1.2.6-x86-mingw32/lib/gdk3/deprecated.rb
59 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gdk3-1.2.6-x86-mingw32/lib/gdk3.rb
60 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gtk3-1.2.6-x86-mingw32/lib/2.0/gtk3.so
61 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gtk3-1.2.6-x86-mingw32/lib/gtk3/base.rb
62 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gtk3-1.2.6-x86-mingw32/lib/gtk3/deprecated.rb
63 C:/Ruby200/lib/ruby/gems/2.0.0/gems/gtk3-1.2.6-x86-mingw32/lib/gtk3.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
C:\Users\myokoym\Downloads\ruby-gnome2-master\gtk3\sample\gtk-demo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment