Results 1 to 5 of 5

Thread: QtSingleApplication on Windows

  1. #1
    Join Date
    May 2013
    Location
    Bialystok/Poland
    Posts
    13
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Question QtSingleApplication on Windows

    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:
    Qt Code:
    1. QtSingleApplication(argc, argv)
    To copy to clipboard, switch view to plain text mode 

    Maybe someone has a solution ?

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QtSingleApplication on Windows

    With that information we can't say anything. Debug it and post the backtrace.

  3. #3
    Join Date
    May 2013
    Location
    Bialystok/Poland
    Posts
    13
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Lightbulb Re: QtSingleApplication on Windows

    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:
    Qt Code:
    1. Thread 1 (Thread 3884.0xf8c):
    2. #0 QColor::QColor (this=0x447040) at c:/Qt/4.8.5/include/QtGui/../../src/gui/painting/qcolor.h:280
    3. No locals.
    4. #1 0x00416fb5 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at ..\Source\3rdParty\stylehelper.cpp:71
    5. No locals.
    6. #2 0x00416fdb in _GLOBAL__sub_I__ZN5Utils11StyleHelper15sidebarFontSizeEv () at ..\Source\3rdParty\stylehelper.cpp:248
    7. No locals.
    8. #3 0x0041cb2a in __do_global_ctors ()
    9. No symbol table info available.
    10. #4 0x00000094 in ?? ()
    11. RGB_MASK = 16777215
    12. #5 0x0022fef8 in ?? ()
    13. No symbol table info available.
    14. #6 0x7c817067 in RegisterWaitForInputIdle () from C:\WINDOWS\system32\kernel32.dll
    15. No symbol table info available.
    16. #7 0x00000000 in ?? ()
    17. No symbol table info available.
    18. warning: (Internal error: pc 0x93 in read in psymtab, but not in symtab.)
    19.  
    20. warning: (Internal error: pc 0x93 in read in psymtab, but not in symtab.)
    21.  
    22. warning: (Internal error: pc 0x93 in read in psymtab, but not in symtab.)
    To copy to clipboard, switch view to plain text mode 

  4. #4
    Join Date
    May 2013
    Location
    Bialystok/Poland
    Posts
    13
    Thanks
    1
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtSingleApplication on Windows

    I noticed that the problem occurs only when compiling with mingw. When compile with MSVC everything works fine.

  5. #5
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QtSingleApplication on Windows

    Can you post the relevant parts of the backtrace.

Similar Threads

  1. QtSingleApplication, QtService and Qt5
    By mentalmushroom in forum Qt Programming
    Replies: 1
    Last Post: 28th December 2012, 15:20
  2. Problem building QtSingleApplication
    By skuallpa in forum Installation and Deployment
    Replies: 0
    Last Post: 28th April 2010, 16:20
  3. QtSingleApplication in Windows with release mode
    By Auryn in forum Qt Programming
    Replies: 2
    Last Post: 28th October 2009, 12:36
  4. QtSingleApplication and Qr 4.2.1
    By Lele in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2006, 11:41
  5. QtSingleApplication
    By mule in forum Qt Programming
    Replies: 8
    Last Post: 28th February 2006, 20:21

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.