This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 188927 - Debugger hangs on Mac with PortAudio or wxWidgets
Summary: Debugger hangs on Mac with PortAudio or wxWidgets
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-24 11:00 UTC by blaisethom
Modified: 2011-01-18 11:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example project which fails debuggin (5.74 KB, application/x-gzip)
2010-07-24 14:52 UTC, blaisethom
Details

Note You need to log in before you can comment on or make changes to this bug.
Description blaisethom 2010-07-24 11:00:21 UTC
I'm busy working with PortAudio and I've come across a problem when trying to debug in NetBeans (C++). When running the debugger the system freezes on Pa_Initialize(). It works fine in gdb / Xcode. I've tried compiling and installing portaudio  with the "--enable-mac-debug" option and without. Setup is as follows:

OS - Mac OSX 10.6.4 NetBeans? - 6.9 
PortAudio - pa_snapshot.tgz created Thursday, 08-Jul-2010 21:37:03 PDT - I also tried the stable build but that didn't compile on Mac OS 10.6.4.

To reproduce the problem, create an empty project with Pa_Intitalize() in the main function. Then run the program in debug mode in NetBeans. Note that the program works fine when running in gdb / Xcode. Example project below.

I initially checked with the PortAudio people but they think it may be an issue with NetBeans. Considering the there is a post at http://wiki.netbeans.org/FaqCplusPlusPackMacDebugging , I thought I should check if you have any ideas?

gdb --version
GNU gdb 6.3.50-20050815 (Apple version gdb-1469) (Wed May  5 04:36:56 UTC 2010)

Thanks!

---------------
Example main.cpp:


#include <portaudio.h>

int main(int argc, char** argb)
{
    Pa_Initialize();
    return 0;
}
Comment 1 blaisethom 2010-07-24 14:52:33 UTC
Created attachment 101010 [details]
Example project which fails debuggin

I have the same problem when debugging a wxWidgets application. I've attached an example project. The program runs fine but if you try debug then it just freezes.
Comment 2 Egor Ushakov 2010-12-02 11:39:01 UTC
could you please try to debug it in console gdb to assure that this is IDE issue?
Comment 3 blaisethom 2010-12-07 15:26:03 UTC
I have tried the console gdb, which works fine. It seems to happen for me with any external library that is linked in. I haven't tried on Netbeans 7 beta yet. I'll have to do that and let you know if the new version has fixed it.
Comment 4 Egor Ushakov 2010-12-10 14:59:08 UTC
yes, please try the latest 7.0 dev, debugger changed significantly there.
Also attach gdb log from there (main menu/debugging/debugger console)
Comment 5 Egor Ushakov 2010-12-13 18:26:16 UTC
please try the latest dev:
http://bits.netbeans.org/download/trunk/nightly/latest/
and attach gdb log (main menu/windows/debugging/debugger console) here.