Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pango font_cache assert when doing parallel downloads #70

Open
AllegroGavin opened this issue Jan 28, 2013 · 1 comment
Open

Pango font_cache assert when doing parallel downloads #70

AllegroGavin opened this issue Jan 28, 2013 · 1 comment

Comments

@AllegroGavin
Copy link

The following simple example works fine in original Shoes, but fails in green_shoes (Environment is Vista 64-bit, RailsInstaller, gem install green_shoes)

require 'green_shoes'

sites = %w(google amazon yahoo msn)

Shoes.app do
  stack do
    @status = {}
    sites.each do |site|
      @status[site] = para("Retrieving site #{site}...")
      download "http://www.#{site}.com" do |page|
        @status[site].text = "Ok, #{site} homepage is #{page.length} bytes long."
      end
    end
  end
end

Typically after displaying the result for the second site, it bombs with:

(eval): line 1
Pango-CRITICAL *:pango_win32_font_map_get_font_cache: assertion `font_map != NULL' failed
*

Pango:ERROR:pangowin32.c:831:pango_win32_font_finalize: assertion failed: (win32font->fontmap != NULL)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

So something is not compatible/safe with whatever sort of threading download invokes I think.

G.

@ashbb
Copy link
Owner

ashbb commented Jan 29, 2013

@AllegroGavin Thanks for the post. But, umm... It works for me. I can't get the error on my Windows 7 32-bit. Sorry, I'm not sure this issue is dependent on Vista or 64-bit pc or other reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants