Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why QTime::start() giving segmentation fault in amd64 architecture?
Qt 6.11 is out! See what's new in the release blog

Why QTime::start() giving segmentation fault in amd64 architecture?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mukul_qt
    wrote on last edited by
    #1

    I am implementing a Cloth simulation program in Debian Lenny 32bit platform (Intel architecture).

    It uses Qt4 and OpenGL(that Qt4 itself calls in makefile line QT+=opengl).

    In the Debian Lenny 32 bit platform the executable is running correctly. I even ran it in Ubuntu 9.04 Jaunty release.

    But the problem arises when I am shifting to a Debian Squeeze(even Lenny also) in amd64 bit architecture.

    A segmentation fault is occurring when in QTime::start() the currentTime() is called.

    Qt4's documentation says that the accuracy of time depends on the Operating system. But no clue is given for this segmentation fault case. Please help me to solve this problem.

    Basically I am trying to get the Frame Rate Per Second (FRPS). A QTimer calls a OpenGL animate() function for double buffered animation. A QTime object gives the current time to calculate the FRPS.

    And if you have any alternate way to calculate the FRPS in Qt4-OpenGL then please suggest. Thanks in advance.

    [EDIT: title adjusted, no keywords there, please; Volker]

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Is it reproducible using the latest Qt compiled from sources? Can you attach a full backtrace, and a valgrind log, etc.?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        ZapB
        wrote on last edited by
        #3

        Did you recompile on the 64-bit system or simple copy the binaries?

        Nokia Certified Qt Specialist
        Interested in hearing about Qt related work

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mukul_qt
          wrote on last edited by
          #4

          I built the whole project in amd64 bit platform. And while running the executables the error occurred. If comment-out those lines for QTime then it's running correctly.

          Ok. I will post the back trace.

          @peppe Can you tell me what is "valgrind log" and how to get it.
          [quote author="peppe" date="1305564304"] a valgrind log[/quote]

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved