Simple project with gtk2 widget set hangs on startup
Original Reporter info from Mantis: crlab @neurolabusc1
-
Reporter name: Chris Rorden
Original Reporter info from Mantis: crlab @neurolabusc1
- Reporter name: Chris Rorden
Description:
This issue is seen with a clean install of Ubuntu 19.10. Same issue on two different machines (Ryzen with NVidia GPU, Intel with integrated GPU). Every single Lazarus application built to GTK2 is impacted, including the default Lazarus (until one rebuilds to QT5). Every Lazarus built GTK2 application pauses for 25 seconds at application launch. This behavior is unlike Ubuntu 18.04 and 16.04.
Making a most basic simple application using the gtk2 widget set hangs 25 seconds and eventually becomes responsive.
Walking through the debugger the program gets stuck in main event loop in TGtk2WidgetSet.AppProcessMessages as the while loop with g_main_context_pending/g_main_context_iteration appears to polling for messages but never returns for some reason.
Building the GTK2 "Hello world" application with C shows no delay in launching.
With Lazarus, the GTK2 applications show delay, but GTK3 and QT5 work fine. I realize there are no active GTK2 maintiners, but Lazarus is still distributed initially as GTK2, and the Ubuntu 18.04 LTS does not support Lazarus QT5 applications.
At first blush, this sounds like issue 35395, but switching the options toggled by that fix did not help.
Mantis conversion info:
- Mantis ID: 36359
- OS: Ubuntu
- OS Build: 19.10
- Build: 62296
- Platform: Intel i7 4790
- Version: 2.1 (SVN)
- Monitored by: » @neurolabusc1 (Chris Rorden), » @davidbannon (David)