Re: Segmentation fault when passing Poppler objects

2018-11-06 Thread Emmanuele Bassi via gtk-app-devel-list
On Tue, 6 Nov 2018 at 09:55, Радомир Хаџић via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > Hi. I get segmentation fault if I try to access a Poppler object whose > pointer is passed through g_signal_connect. There is no such problem > with normal pointers, though.

Segmentation fault when passing Poppler objects

2018-11-06 Thread Радомир Хаџић via gtk-app-devel-list
Hi. I get segmentation fault if I try to access a Poppler object whose pointer is passed through g_signal_connect. There is no such problem with normal pointers, though. For example, if I run the following code... #include struct Colors { double red; double green; double

Re: gdk_threads_leave is possible to cause segmentation fault?

2017-03-28 Thread Rúben Rodrigues
Thanks! So i could replate enter and leave to g_iddle_add, right? gdk_threads_enter(); g_printf("UpdateConfigNow\n"); iUpdateConfigNow(); gdk_threads_leave(); To g_idle_add((GCallback)iUpdateConfigNow, NULL); Why i get this error? Main.c:1824: undefined reference to `g_iddle_add' Thanks À

Re: gdk_threads_leave is possible to cause segmentation fault?

2017-03-28 Thread Gabriele Greco
> But now this functions aren't running. This is my main thread > void *vGtkMain_Thread(gpointer data) > { > gdk_threads_enter(); > gtk_main(); > gdk_threads_leave(); > return NULL; > } > You should remove everywhere in your code gtk_threads_ calls. You cannot call gtk_label_get_

Re: gdk_threads_leave is possible to cause segmentation fault?

2017-03-28 Thread Gabriele Greco
> > > In gdk manual i see thath gdk_threads_enter and leave has been > deprecated and alll gdk and gtk+ calls should be made from main thread. > How we do this? Someone have any example? > > You have to call g_idle_add (that is thread safe) every time you need to update one or more widgets from an

gdk_threads_leave is possible to cause segmentation fault?

2017-03-28 Thread Rúben Rodrigues
Hi guys, My application sometimes have segmentation fault error. In debug mode and using g_print() i see that the applications stops in gdk_thread_leave function. In gdk manual i see thath gdk_threads_enter and leave has been deprecated and alll gdk and gtk+ calls should be made from main

Re: Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread Marcus Karlsson
untu:~/gtk$ ./4 > > (4:4221): Gtk-CRITICAL **: gtk_entry_get_text: assertion 'GTK_IS_ENTRY > (entry)' failed > Segmentation fault (core dumped) This basically means that the pointer that you passed to gtk_entry_get_text was not pointing to a GtkEntry. > ---

Re: Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread zz
On Tuesday 01 July 2014 10:39:03 Anoop Neem wrote: Hi, try: p->two = label = gtk_label_new(a); p->one = textEntry = gtk_entry_new() hope this helps, zz ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.o

Re: Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread David Nečas
On Tue, Jul 01, 2014 at 01:39:03AM -0700, Anoop Neem wrote: > p->one = textEntry; > p->two = label; Here the unititialised textEntry and label pointers are assigned to the struct fields. > textEntry = gtk_entry_new(); > calButton = gtk_button_new_with_label("Calculate");

Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread Anoop Neem
dgets. But when i click on the button application closes giving me some error: xxx@ubuntu:~/gtk$ gcc `pkg-config --cflags gtk+-3.0` -o 4 4.c `pkg-config --libs gtk+-3.0` xxx@ubuntu:~/gtk$ ./4 (4:4221): Gtk-CRITICAL **: gtk_entry_get_text: assertion 'GTK_IS_ENTRY (entry)' failed Segmentatio

spice-gtk 0.19 crashed (Segmentation fault) with gtk-directfb

2013-05-10 Thread jojo
_screen_height_mm() assumes a screen resolution of 72 dpi (spicy:663): Gdk-DirectFB-WARNING **: gdk_display_request_selection_notification Unimplemented function (spicy:663): Gdk-DirectFB-WARNING **: gdk_display_request_selection_notification Unimplemented function (spicy:663): Gdk-DirectFB-WARNING

spice-gtk 0.19 crashed (Segmentation fault) with gtk-directfb

2013-05-09 Thread jojo
_screen_height_mm() assumes a screen resolution of 72 dpi (spicy:663): Gdk-DirectFB-WARNING **: gdk_display_request_selection_notification Unimplemented function (spicy:663): Gdk-DirectFB-WARNING **: gdk_display_request_selection_notification Unimplemented function (spicy:663): Gdk-DirectFB-WARNING

pango_font_description_copy Segmentation fault

2012-07-09 Thread Weitian Leung
Hi, I wonder how pango_font_description_copy make a segmentation fault, I use it like this: /pango_font_description_free(priv->current_font); priv->current_font = pango_font_description_copy(priv->default_font);/ default_font comes from: /priv->

Re: Segmentation fault debug help needed

2009-03-06 Thread Emmanuel Rodriguez
On Fri, Feb 27, 2009 at 10:41 PM, Josh Roesslein wrote: > Here is a snippet of code part of my application's UI toolkit abstraction > layer. For some reason the line of code I've marked > is throwing a segmentation fault and I'm a bit stumped as to why. I'm > thinki

Segmentation fault debug help needed

2009-03-06 Thread Josh Roesslein
Here is a snippet of code part of my application's UI toolkit abstraction layer. For some reason the line of code I've marked is throwing a segmentation fault and I'm a bit stumped as to why. I'm thinking the way I'm passing the "this" pointer might have somethin

Re: Segmentation Fault [Newbie]

2008-10-30 Thread Sulabh Bista
Thank you. My problem is solved now. On Thu, Oct 30, 2008 at 2:20 PM, Larry Reaves <[EMAIL PROTECTED]> wrote: > Running through gdb, we can see it crashes on this line: > > gtk_container_add(GTK_CONTAINER(window),menu_bar); > > glancing through the code, this makes perfect sense because window is

Re: Segmentation Fault [Newbie]

2008-10-30 Thread Larry Reaves
Running through gdb, we can see it crashes on this line: gtk_container_add(GTK_CONTAINER(window),menu_bar); glancing through the code, this makes perfect sense because window is never initialized. The pointer window points to some random address. Adding: window = gtk_window_new(GTK_WINDOW_TOPLE

Segmentation Fault [Newbie]

2008-10-29 Thread Sulabh Bista
program which is supposed to display a simple menu. It compiles but when I run it, it gives a segmentation fault. Please review the program and suggest some solution: - #include int main(int argc, char

Re: Segmentation fault while using g_thread_init

2008-10-23 Thread Dan Saul
Hi Aparna, Forgive me if I am wrong, but g_thread_init(NULL); gdk_threads_init(); might duplicate the call. I recall when using gnet (which initiates the threads itself it segfaulted if I called g_thread_init. Perhaps taking one of those out would fix your problem? Dan On 18-Oct-08, at 7

Segmentation fault while using g_thread_init

2008-10-18 Thread Aparna V
Hi, I am compiling a gtk application using gcc-3.4.5-glibc-2.3.6 for arm platform. My application compiles fine while cross compiling but I want to know why the inclusion of g_thread_init() gives me a segmentation fault while i run the application on the target platform. My gtk application

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Szymon Ząbkiewicz
The problem was in the callback's arguments, thanks. PS. Nickolai: I cut out most of the code to make things clearer, don't worry I did add the widgets to a table and the table to the window. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.o

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Nickolai Dobrynin
Szymon, In addition to what Yeti has pointed out, one thing that's obviously wrong is that you don't seem to have anything in your code that adds the text entry to the window, i.e. gtk_container_add(GTK_CONTAINER(windowP), widgetP); Also, why not use gtk_entry_get_text(...) to read the content o

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Yeti
floating point number parser? You have a whole range of functions from atof and strtod to sscanf to g_ascii_strtod() available. > but I can't even read from the entry using > gtk_editable_get_chars because I get Segmentation Fault. I don't know > what is the reason for this, so

Segmentation fault while reading from entry.

2007-06-03 Thread Szymon Ząbkiewicz
Hello. I'm am new to gtk+ and I try to write a simple application, I need to read a double from an entry, I've already written a parsing *char->double function but I can't even read from the entry using gtk_editable_get_chars because I get Segmentation Fault. I don't know

Segmentation fault on log

2007-02-09 Thread José Antonio Sánchez
Hello, I'm developing an application using glib's data structures. I also I'm using glib's log capabilities but I'm having a problem. My application dies at one log point and I don't know why. My code is as follow: g_debug("Executing operation %d over %s",op,path); I know that path is not null an

Re: Segmentation fault

2006-10-21 Thread Allin Cottrell
On Sat, 21 Oct 2006, Lorenzo Marcon wrote: > Program is running without any problem under Linux, while under > Windows, when clicking STOP I get segmentation fault. > > Here is the backtrace. > > Program received signal SIGSEGV, Segmentation fault. > 0x0040279e in enter_c

Segmentation fault

2006-10-21 Thread Lorenzo Marcon
. If *stop == TRUE, function returns, otherwise the recursion continues. Clicking on button STOP, the variable *stop is setted to TRUE. Program is running without any problem under Linux, while under Windows, when clicking STOP I get segmentation fault. Here is the backtrace. Program received

Re: Why ? When segmentation fault,there has no "core" file

2006-07-09 Thread Atanas Atanasov
My best advice is to read the GDB Manual - http://www.gnu.org/software/gdb/documentation/. Chapters 4 and 5 should give you a fairly good idea how to perform simple debugging on your program. If you don't feel like get some GUI debugger like Insight (http://sources.redhat.com/insight/). Atanas ___

Re: Why ? When segmentation fault,there has no "core" file

2006-07-09 Thread Valdis . Kletnieks
On Fri, 07 Jul 2006 19:51:53 +0800, chao yeaj said: > Hello everyone > I compiled my application with the ``-g '' options > and when debug with gdb, i can list the source file You can also say 'gdb my_program' at the shell prompt, and then issue the gdb command 'run'. When th

Re: Why ? When segmentation fault,there has no "core" file

2006-07-07 Thread Andrey Dubravin
On Fri, 7 Jul 2006 13:01:06 +0100 "John Cupitt" <[EMAIL PROTECTED]> wrote: > On 7/7/06, chao yeaj <[EMAIL PROTECTED]> wrote: > > The problem is : when segmentation fault ,there has no > > core file if the has a core file ,i can debug it, but there has

Re: Why ? When segmentation fault,there has no "core" file

2006-07-07 Thread John Cupitt
On 7/7/06, chao yeaj <[EMAIL PROTECTED]> wrote: > The problem is : when segmentation fault ,there has nocore file > if the has a core file ,i can debug it, but there has nocore file You probably have coredumps turned off. Try ulimit -c unlimited before running

Why ? When segmentation fault,there has no "core" file

2006-07-07 Thread chao yeaj
Hello everyone I compiled my application with the ``-g '' options and when debug with gdb, i can list the source file The problem is : when segmentation fault ,there has nocore file if the has a core file ,i can debug it, but there has nocore fi

Re: Segmentation Fault

2006-04-04 Thread Wallace Owen
he completion details At this time segmentation > > fault occurs. > > Is there anyway to trace the exact cause of the segmentation fault... > > I tried gdb, but it didn't show any error while executing the code..The > > segmentation fault occured when the execution w

Re: Segmentation Fault

2006-04-04 Thread John Vetterli
On Tue, 4 Apr 2006, Sandeep KS wrote: I have written a program using GTK which executes some shellscripts in the background...After the shellscripts complete executing, a window is displayed showing the completion details At this time segmentation fault occurs. Is there anyway to trace

Segmentation Fault

2006-04-04 Thread Fernando Apesteguía
Are you dealing with threads? Maybe it's a problem of concurrency. Could you be more precise? Best regards! -- Forwarded message -- From: Sandeep KS <[EMAIL PROTECTED]> Date: 04-abr-2006 19:31 Subject: Segmentation Fault To: Gtk Hello everyone, I have writte

Segmentation Fault

2006-04-04 Thread Sandeep KS
Hello everyone, I have written a program using GTK which executes some shellscripts in the background...After the shellscripts complete executing, a window is displayed showing the completion details At this time segmentation fault occurs. Is there anyway to trace the exact cause of

Re: GtktreeView & Model segmentation fault

2006-03-13 Thread David Necas (Yeti)
On Mon, Mar 13, 2006 at 11:16:04AM -0800, Van H Tran wrote: > I get a "Segmentation fault" in a gtktreeview i'm > using. Basically, it's a Treeview with expandable > folders (like a file browser) > > The problem is: The program crashes very randomly when >

GtktreeView & Model segmentation fault

2006-03-13 Thread Van H Tran
Hi all, I get a "Segmentation fault" in a gtktreeview i'm using. Basically, it's a Treeview with expandable folders (like a file browser) The problem is: The program crashes very randomly when i just try to click to expand/collapse the folders, particularly when the tree has

segmentation fault in g_object_run_dispose

2005-09-27 Thread Boncek, John
Using GTK 2.2.4, we are getting a segmentation fault in g_object_run_dispose called from gtk_widget_destroy on a fixed container. The context is a screen that works fine when operated on slowly, such that all widgets are displayed before any action is taken. The problem only occurs if you "

Re: gtk label segmentation fault

2005-08-08 Thread Iago Rubio
abel_new("i put something here"); Or even: const char* ch = "i put something here"; label=gtk_label_new(ch); Or even: char *ch; ch = g_strdup("i put something here"); label=gtk_label_new((const char*)ch); g_free(ch); > ok, it works first time, miraculous

Re: gtk label segmentation fault

2005-08-08 Thread Stefan Kost
hat code makes no sense at all > const ch; > const char *cch; > > ch==cch; > strcpy(ch,"i put some thing here"); first line has no type 4th line is a comparission 5th line copys to unallocated space ok, it works first time, but when the program executes this func

gtk label segmentation fault

2005-08-07 Thread Yogesh M
tion again it creates a segmentation fault. also label=gtk_label_new((const char*)ch); doesnt work either, I get segmentation fault when, i destroy the dialog which contain the label. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam

Re: Segmentation fault in GHashTable

2005-06-24 Thread Uzytkownik
Dnia 24-06-2005, pią o godzinie 17:25 +0100, Tim Müller napisał(a): > On Friday 24 June 2005 16:59, Uzytkownik wrote: > > I've problem with GHashTable: > > (...) > > self->private->check = g_hash_table_new(g_int_hash, g_int_equal); > > g_hash_table_insert(self->private->check, GINT_TO_POINTER(3), "

Re: Segmentation fault in GHashTable

2005-06-24 Thread Tim Müller
On Friday 24 June 2005 16:59, Uzytkownik wrote: > I've problem with GHashTable: > (...) > self->private->check = g_hash_table_new(g_int_hash, g_int_equal); > g_hash_table_insert(self->private->check, GINT_TO_POINTER(3), "%%(.*)"); > (...) g_int_hash() expects a _pointer_ to an int, not an int (see

Re: Segmentation fault in GHashTable

2005-06-24 Thread David Necas (Yeti)
..) > > In unit test(I use check) it show: > (...) > check-plik.c:30:E:Core:funkcja: (after this point) Received signal 11 > (Segmentation fault) > > And I know that error is in seconde line. > > What is wrong? g_int_equal() and g_int_hash() take *pointers* to integers.

Segmentation fault in GHashTable

2005-06-24 Thread Uzytkownik
s point) Received signal 11 (Segmentation fault) And I know that error is in seconde line. What is wrong? Regards -- Linux user: #376500 (patrz http://counter.li.org/) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mai

Re: segmentation fault when trying to save a pixbuf into a file

2005-06-21 Thread Tim Müller
bmp", "bmp", NULL); > > Program received signal SIGSEGV, Segmentation fault. > ... gdk_pixbuf_save() is a vararg function. Compare your function call to the API reference - you're missing a NULL terminator there in the vararg part. Cheers -Tim

segmentation fault when trying to save a pixbuf into a file

2005-06-21 Thread y g
eived signal SIGSEGV, Segmentation fault. [Switching to Thread -1208932672 (LWP 8874)] 0x00b9d8c5 in IA__g_strdup (str=0x258 ) at gstrfuncs.c:90 ~/Downloads/gtk2.6/glib-2.6.4/glib/gstrfuncs.c:90:2850:beg:0xb9d8c5 As a first sign I am noticing that ~/Downloads/gtk2.6/glib-2.6.4/glib/gstrfuncs.c:90:2850:

Re: notebook causes segmentation fault

2005-03-25 Thread Antonio Gomes
Hi , try this: 1) while connecting the signal (on main function, I don't know), pass the "notebook" widget as a "user pointer" argument ... something like that : gtk_signal_connect(GTK_OBJECT(my_button), "clicked", GTK_SIGNAL_FUNC(close_current_tab_cb), my_notebookPointer); 2) on callbac

Re: notebook causes segmentation fault

2005-03-22 Thread Raj
{ GtkWidget *notebook1; gint = page; page=gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook1)); gtk_notebook_remove_page(GTK_NOTEBOOK(notebook1) , page); } Seems like you missed a step in setting the notebook1 pointer to a valid widget. As of now, it is a stray pointer & obviously you

notebook causes segmentation fault

2005-03-22 Thread Eljin
Hello, I'm new to the list and admittedly a novice to programming. I'm trying to use "gtk_notebook_remove _page" or any other "notebook" function and am not understanding why my program keeps crashing with a segmentation fault. I'm using GTK 2.4.3, Glade a

Re: segmentation fault

2005-02-10 Thread Olexiy Avramchenko
Aaron Yang wrote: hi, thanks for replying after changing, segmentation fault still follows. there's an additional error saying warning: passing arg 2 of `g_timeout_add' from incompatible pointer type Use typecast: g_timeout_add (100, (GSourceFunc)real_draw, drawing_area); compil

Re: segmentation fault

2005-02-10 Thread Aaron Yang
hi, thanks for replying after changing, segmentation fault still follows. there's an additional error saying warning: passing arg 2 of `g_timeout_add' from incompatible pointer type in this case arg 2 is static gint real_draw ( GtkWidget * ) i figure the error occurred because

Re: segmentation fault

2005-02-09 Thread Olexiy Avramchenko
Aaron Yang wrote: > void draw_button_clicked ( void ) { 1. You're passing NULL as a parameter for timeout's callback. g_timeout_add (100, real_draw, NULL); } 2. window parameter is NULL (see above). static gint real_draw ( gpointer window ) { GtkWidget *widget; 3. Variable widget is undefined,

segmentation fault

2005-02-09 Thread Aaron Yang
+; return TRUE; } in this case, each time i clicked on draw button, program will start to draw using points stored in x and y array. but each time i run the program, i will get segmentation fault. does anyone know why? thank you all for your help! ___