[Gambas-devel] SVN broken?

Gareth Bult gareth at ...560...
Fri Jan 23 02:08:09 CET 2009


Ok, here's the crash on;

pic.Picture = img.Picture

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7f6c8c0 (LWP 7922)]
free_image (img=0x99127b0, image=0x0) at gshare.h:46
46	  void unref() { nref--; if (nref <= 0) delete this; else if (tag) tag->unref(); }
Current language:  auto; currently c++

(gdb) bt
#0  free_image (img=0x99127b0, image=0x0) at gshare.h:46
#1  0xb7ed8e11 in IMAGE_convert (img=0x99127b0, format=10) at image.c:338
#2  0xb7ed9108 in IMAGE_check (img=0x99127b0, temp_owner=0xb7f4258c, format=10) at image.c:353
#3  0xb7f21621 in CIMAGE_get (_object=0x99127b0) at CImage.cpp:68
#4  0xb7f21c42 in CIMAGE_picture (_object=0x99127b0, _param=0x0) at CImage.cpp:147
#5  0x0804f2f8 in EXEC_call_native (exec=0xb7f21c26 <CIMAGE_picture(void*, void*)>, object=0x99127b0, 
    type=156747576, param=0x0) at gbx_exec.c:967
#6  0x08051d94 in EXEC_push_unknown (code=1024) at gbx_exec_push.c:287
#7  0x080538d3 in EXEC_loop () at gbx_exec_loop.c:522
#8  0x080507ff in EXEC_function_loop () at gbx_exec.c:789
#9  0x08050b95 in EXEC_function_real () at gbx_exec.c:776
#10 0x08062060 in raise_event (observer=<value optimized out>, object=0x965ced8, 
    func_id=<value optimized out>, nparam=0) at gbx_api.c:496
#11 0x08062604 in GB_Raise (object=0x965ced8, event_id=0, nparam=0) at gbx_api.c:602
#12 0x0807055e in CTIMER_raise (_object=0x965ced8) at gbx_c_timer.c:41
#13 0xb7f32570 in my_timer_function (timer=0x965ced8) at main.cpp:324
#14 0xb7cc0e26 in ?? () from /usr/lib/libglib-2.0.so.0
#15 0xb7cc06f8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#16 0xb7cc3da3 in ?? () from /usr/lib/libglib-2.0.so.0
#17 0xb7cc3f61 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#18 0x4d82f193 in gtk_main_iteration_do () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb7f32500 in do_iteration (do_not_block=false, do_not_sleep=false) at main.cpp:452
#20 0xb7f328ad in my_loop () at main.cpp:380
#21 0x08066920 in main (argc=Cannot access memory at address 0x0
) at gbx.c:363




----- Original Message -----
From: "Benoit Minisini" <gambas at ...1...>
To: "mailing list for gambas developers" <gambas-devel at lists.sourceforge.net>
Sent: Thursday, 22 January, 2009 9:49:15 PM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [Gambas-devel] SVN broken?

On jeudi 22 janvier 2009, Gareth Bult wrote:
> Ok,
>
> Getting closer ..
>
>   img = $device.Image         => this works
>   pic.Picture = img.Picture   => this is generating the Segfault ..
>
> So the image create code itself isn't crashing, but it looks like it's
> generating something that's causing the image->picture format conversion to
> die horribly ..
>
> Gareth.
>

When you get a segfault, you should provide me the backtrace of the segfault 
by using gdb and the core dump. As I don't have any webcam, I can't test 
directly. 

Unless Video4Linux has a dummy video device that would return the same image 
for each frame?

-- 
Benoit Minisini

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Gambas-devel mailing list
Gambas-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel

-- 
Managing Director, Encryptec Limited
Tel: 0845 5082719, Mob: 0785 3305393
Email: gareth at ...560... 
Statements made are at all times subject to Encryptec's Terms and Conditions of Business, which are available upon request.




More information about the Devel mailing list