Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9082307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:31:42+00:00 2026-06-16T20:31:42+00:00

I’m developing a GTK# application using a SOAP service to get the data. Errors

  • 0

I’m developing a GTK# application using a SOAP service to get the data. Errors are occurring on retrieving items and putting them in a Gtk.ComboBox.

Types of errors seen:

  • gmem.c:170: failed to allocate x bytes, followed by SIGTRAP/SIGSEV/whatever
  • glibc detected * /usr/bin/mono: double free or corruption (fasttop): 0x00007f27100e85a0 *
    Gdk:ERROR:gdkregion-generic.c:1110:miUnionNonO: assertion failed: (y1 < y2)
    followed by SIGIOT
    *just a SIGSEGV with a long stracktrace

I do also see these quite often:

  • (KvkManager:11471): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
  • (KvkManager:11506): Gtk-WARNING **: gtktreemodel.c:2114: bad row reference, proxy has no outstanding row references

This is the main part of my code:

using System;
using Gtk;
using KvkWsProxy;

public partial class MainWindow: Gtk.Window
{
    private KvkSoapServerService kvkProxy;
    private NodeStore productsStore;

    protected Gdk.PixbufAnimation loadingTrobber;

    public MainWindow (): base (Gtk.WindowType.Toplevel)
    {
        Build ();

        this.tabs.CurrentPage = 0;

        this.loadingTrobber = new Gdk.PixbufAnimation("ajax-loader.gif");

        this.productsStore = new Gtk.NodeStore(typeof(KvkManager.SimpleProductTreeNode));

        this.kvkProxy = new KvkSoapServerService();
        this.kvkProxy.getSimpleProductsCompleted += this.putProducts;
        this.kvkProxy.getCollectionsCompleted += this.putProductCollections;
        this.kvkProxy.getTypesCompleted += this.putProductTypes;

        this.productsList.NodeStore = productsStore;
        this.productsList.AppendColumn("Nummer", new Gtk.CellRendererText(), "text", 0);
        this.productsList.AppendColumn("Naam", new Gtk.CellRendererText(), "text", 1);
        this.productsList.AppendColumn("Prijs", new Gtk.CellRendererText(), "text", 2);
        this.productsList.ShowAll();

        this.getProductCollections();
        this.getProductTypes();
    }

    protected void OnDeleteEvent (object sender, DeleteEventArgs a)
    {
        Application.Quit ();
        a.RetVal = true;
    }

    protected void putProductCollections(object sender, getCollectionsCompletedEventArgs args)
    {       
        this.productCollectionsComboBox.Clear();

        CellRendererText cell = new CellRendererText();
        this.productCollectionsComboBox.PackStart(cell, false);
        this.productCollectionsComboBox.AddAttribute(cell, "markup", 1);

        ListStore store = new ListStore(typeof(int), typeof(string));
        this.productCollectionsComboBox.Model = store;
        store.AppendValues(-1, "<span font-style=\"italic\">alle collecties</span>");

        foreach(Product_ProductCollection collection in args.Result)
        {
            store.AppendValues(collection.id, collection.name);
        }

        this.productCollectionsComboBox.Active = 0;
        this.productCollectionsComboBox.Sensitive = true;
        this.getCollectionsAnimation.Visible = false;
    }

    protected void putProductTypes(object sender, getTypesCompletedEventArgs args)
    {
        ... like putProductCollections() ...
    }

    protected void OnSearchButtonClicked (object sender, System.EventArgs e)
    {
        this.productSearchButton.Sensitive = false;
        this.searchAnimation.PixbufAnimation = this.loadingTrobber;
        this.searchAnimation.Visible = true;

        productsStore.Clear();

        this.kvkProxy.getSimpleProductsAsync();
    }

    protected void putProducts(object sender, getSimpleProductsCompletedEventArgs args)
    {       
        foreach(Product_SimpleProduct product in args.Result)
        {
            productsStore.AddNode(new KvkManager.SimpleProductTreeNode(product));
        }

        this.productSearchButton.Sensitive = true;
        this.searchAnimation.Visible = false;
    }

    protected void getProductCollections()
    {
        this.productCollectionsComboBox.Sensitive = false;
        this.getCollectionsAnimation.PixbufAnimation = this.loadingTrobber;
        this.getCollectionsAnimation.Visible = true;

        this.kvkProxy.getCollectionsAsync();
    }

    protected void getProductTypes()
    {
        ... like putProductCollections() ...
    }

    protected void getProductSizegroups()
    {
        ... like putProductCollections() ...
    }

    protected void getProductBrands()
    {
        ... like putProductCollections() ...
    }
}

You can download the whole project on http://home.vdslikke.net:8090/~johan/KvkManager.zip.

Versions of my software:

  • MonoDevelop 2.8.1
  • Mono 2.10.5 (tarball Mon Sep 5 19:35:47 UTC 2011) (64-bit)
  • GTK 2.24.8 (GTK# 2.12.0.0)

If there is any information you need to help me with this problem, please let me know.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T20:31:43+00:00Added an answer on June 16, 2026 at 8:31 pm

    I found out what I was doing wrong here

    The thread that happens to run the event loop is said to “own” Gtk. This means that all Gtk operations should be perfomed from this thread and no other thread. Failure to restrict the use of Gtk to this thread will result in unpredictable behavior, and most often will lead to a crash.

    After wrapping all GUI operations in Gtk.Application.Invoke() I get no errors anymore.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I am using jsonparser to parse data and images obtained from json response. When
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am using JSon response to parse title,date content and thumbnail images and place
I am trying to find ID3V2 tags from MP3 file using jid3lib in Java.
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.