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.
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
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
À
> 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_
>
>
> 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
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
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.
> ---
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
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");
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
_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
_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
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->
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
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
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
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
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
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
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
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
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
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
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
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
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
. 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
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
___
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
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
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
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
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
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
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
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
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
>
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
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 "
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
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
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
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), "
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
..)
>
> 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.
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
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
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:
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
{
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
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
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
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
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,
+;
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!
___
55 matches
Mail list logo