Author Topic: Linux C::B 5266 freezes after running a Qt application  (Read 4517 times)

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Linux C::B 5266 freezes after running a Qt application
« on: May 28, 2009, 04:29:39 am »
Hi. I'm trying to figure out what went wrong here.

I'm building a Qt4 application. The application runs fine when being called from the commandline.

However, if I execute it from within C::B (rev. 5266, from debian/mepis repo), the application just sits there, and C::B tells me that it's still running. Only if I quit C::B, the application quits. Otherwise it's sitting right there in the process table.

Any ideas of what might be happening? Is it a known C::B bug, or is it my app?

Notice that my app also writes to stdout.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Linux C::B 5266 freezes after running a Qt application
« Reply #1 on: May 28, 2009, 09:37:37 am »
Any ideas of what might be happening? Is it a known C::B bug, or is it my app?
Never heard of such. Can you create a minimal sample, probably?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Linux C::B 5266 freezes after running a Qt application
« Reply #2 on: May 29, 2009, 12:48:41 am »
Grrr... I can't create a minimal sample. So it must be my program. But why does it only happen with C::B and not when being run from the shell?

Edit: When I changed the application type from the project properties from "GUI Application" to "Console Application", the program no longer hangs on exit! Any ideas?
« Last Edit: May 29, 2009, 12:56:46 am by rickg22 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Linux C::B 5266 freezes after running a Qt application
« Reply #3 on: May 29, 2009, 08:45:27 am »
Grrr... I can't create a minimal sample. So it must be my program. But why does it only happen with C::B and not when being run from the shell?
Any of this mystic LD_LIBRARY_PATH issue? Can you prompt the env-vars in question from within your app when running in a console and running in C::B? Probably you see any difference?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Linux C::B 5266 freezes after running a Qt application
« Reply #4 on: May 29, 2009, 03:22:23 pm »
Hmmm. I'll investigate further. Thanks for the help.