PDA

View Full Version : QtSingleApplication on Windows



RafalNiewinski
10th August 2013, 21:28
Hi, I have a problem with QtSingleApplication of a set of Qt Solutions.
When I run the application, there is a segfault.
I wrote an application mainly on Linux without problems.
I decided to compile a version for Windows and now here's the problem.

The application dies at run of constructor:

QtSingleApplication(argc, argv)

Maybe someone has a solution ?

Lykurg
11th August 2013, 10:02
With that information we can't say anything. Debug it and post the backtrace.

RafalNiewinski
14th August 2013, 21:06
Sorry for the long response time and for any deficiencies in the earlier posts (was in a hurry).

I did a dump of debug and it turns out that the problem occurs in place where an object of type QColor in StyleHelper is creating.

Backtrace:



Thread 1 (Thread 3884.0xf8c):
#0 QColor::QColor (this=0x447040) at c:/Qt/4.8.5/include/QtGui/../../src/gui/painting/qcolor.h:280
No locals.
#1 0x00416fb5 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ..\Source\3rdParty\stylehelper.cpp:71
No locals.
#2 0x00416fdb in _GLOBAL__sub_I__ZN5Utils11StyleHelper15sidebarFont SizeEv () at ..\Source\3rdParty\stylehelper.cpp:248
No locals.
#3 0x0041cb2a in __do_global_ctors ()
No symbol table info available.
#4 0x00000094 in ?? ()
RGB_MASK = 16777215
#5 0x0022fef8 in ?? ()
No symbol table info available.
#6 0x7c817067 in RegisterWaitForInputIdle () from C:\WINDOWS\system32\kernel32.dll
No symbol table info available.
#7 0x00000000 in ?? ()
No symbol table info available.
warning: (Internal error: pc 0x93 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x93 in read in psymtab, but not in symtab.)

warning: (Internal error: pc 0x93 in read in psymtab, but not in symtab.)

RafalNiewinski
19th August 2013, 18:45
I noticed that the problem occurs only when compiling with mingw. When compile with MSVC everything works fine.

Lykurg
20th August 2013, 08:11
Can you post the relevant parts of the backtrace.