[Gambas-devel] Out of the frying pan ...

Gareth Bult gareth at ...560...
Tue Jan 27 12:08:26 CET 2009


Doh! 

Ok, found the problem .. my fault .. however .. feature request; 

Can we add a test to the start debug routines to check that the debug session actually starts ? 

Scenario; 

a. Inadvertently add GB.UI=qt to your preferences -> environment for a project 
b. Start debug 
c. Execution of gbx3 immediately quits because "GB.UI=qt" is attempted and found to be invalid 
d. IDE continues then blocks becuase the debug process / session is now defunct 
e. Only solution is to kill the IDE 

I think pretty much anything "invalid" entered into the environment section of a project can cause this issue ... 

:( 

Gareth. 

----- Original Message ----- 
From: "Gareth Bult" <gareth at ...560...> 
To: "mailing list for gambas developers" <gambas-devel at lists.sourceforge.net> 
Sent: Friday, 23 January, 2009 7:39:40 PM GMT +00:00 GMT Britain, Ireland, Portugal 
Subject: Re: [Gambas-devel] Out of the frying pan ... 


Mmm, 

I've traced this to; 

_fdw = open(output_fifo(path) , O_WRONLY); 

In CDebug.c ... effectively the process is blocking when trying to open the fifo for write ... but I don't know what could cause this ?! 

I've tried switching the order of the read/write open's, but it still hangs on opening the write ... ???? 

Gareth. 

----- Original Message ----- 
From: "Gareth Bult" <gareth at ...560...> 
To: "mailing list for gambas developers" <gambas-devel at lists.sourceforge.net> 
Sent: Friday, 23 January, 2009 2:19:27 PM GMT +00:00 GMT Britain, Ireland, Portugal 
Subject: [Gambas-devel] Out of the frying pan ... 


Ok, 

So generally Gambas seems to be running ok for me now .. BUT, the project I'm working on (V4L demo) will no longer run from inside the IDE. When I run or step into the code, the IDE freezes .. here's the backtrace, any ideas why? (other projects / samples seem Ok .. ) If I compile the program, quit the IDE and run from the command line, it works fine .. ?????????? 

(gdb) bt 
#0 0xb7fc6430 in __kernel_vsyscall () 
#1 0x4d058963 in __open_nocancel () from /lib/tls/i686/cmov/libpthread.so.0 
#2 0xb7cf0205 in CDEBUG_start (_object=0x0, _param=0x8a9fb20) at /usr/include/bits/fcntl2.h:54 
#3 0x0804f2f8 in EXEC_call_native (exec=0xb7cf01bf <CDEBUG_start>, object=0x0, type=0, param=0x8a9fb20) 
at gbx_exec.c:967 
#4 0x0804ffab in EXEC_native_quick () at gbx_exec.c:998 
#5 0x08053ef4 in EXEC_loop () at gbx_exec_loop.c:968 
#6 0x080507ff in EXEC_function_loop () at gbx_exec.c:789 
#7 0x08050b95 in EXEC_function_real () at gbx_exec.c:776 
#8 0x08061fb5 in GB_Call (_func=0xb7f8595c, nparam=1, release=1) at gbx_api.c:781 
#9 0xb7f263bc in CACTION_raise (control=0x8bdc138) at ../share/gb.form.action.h:83 
#10 0xb7f2db88 in CButton::clickedTool (this=0xb7f85a1c) at CButton.cpp:667 
#11 0xb7f2d2e7 in CButton::qt_invoke (this=0xb7f85a1c, _id=4, _o=0xbf8c54a4) at CButton_moc.cpp:234 
#12 0x4e7e298a in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 
#13 0x4e7e4eab in QObject::activate_signal () from /usr/lib/libqt-mt.so.3 
#14 0x4eb49ccc in QButton::clicked () from /usr/lib/libqt-mt.so.3 
#15 0x4e87d1a0 in QButton::mouseReleaseEvent () from /usr/lib/libqt-mt.so.3 
#16 0x4e81ce27 in QWidget::event () from /usr/lib/libqt-mt.so.3 
#17 0x4e77daf5 in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3 
#18 0x4e77ed12 in QApplication::notify () from /usr/lib/libqt-mt.so.3 
#19 0xb7f2260b in MyApplication::notify (this=0x8b0a050, o=0x8bdc1b8, e=0xbf8c5800) at main.cpp:355 
#20 0x4e717cbe in QApplication::sendSpontaneousEvent () from /usr/lib/libqt-mt.so.3 
#21 0x4e714bb0 in QETWidget::translateMouseEvent () from /usr/lib/libqt-mt.so.3 
#22 0x4e713e62 in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3 
#23 0x4e727e94 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3 
#24 0xb7f22763 in MyEventLoop::processEvents (this=0x8aaf408, flags=4) at main.cpp:254 
#25 0x4e796500 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3 
#26 0x4e7963c6 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3 
#27 0x4e77e18f in QApplication::exec () from /usr/lib/libqt-mt.so.3 
#28 0xb7f21d99 in hook_loop () at main.cpp:564 
#29 0x08066920 in main (argc=Cannot access memory at address 0xfffffff0 
) at gbx.c:363 



-- 
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. 

------------------------------------------------------------------------------ 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. 

------------------------------------------------------------------------------ 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. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20090127/b258ac1d/attachment.html>


More information about the Devel mailing list