Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Qt APP on the ARM Platform Always Crashed, But it has run quite well on the desktop version

Qt APP on the ARM Platform Always Crashed, But it has run quite well on the desktop version

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 4 Posters 864 Views
  • 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.
  • D Offline
    D Offline
    Davekawk
    wrote on last edited by
    #1

    There is a source code for a flight control app based on the Qt, and I have compiled the version for Linux desktop (Ubuntu ), it runs quite steadily , at the same time , I have crosscompiled for the embedded version(Raspberry Pi 3), also can be connected peripheral signal generator normally , but when I click certain ComboBox in the toolbar, the app would crash, the question did not turn up for the desktop version.Usually ,what are the reasons probably for on the embedded platform caused app crash ?Memory leak ?I can not think much about it .Thank for giving me some advice.

    jsulmJ A 2 Replies Last reply
    0
    • yeckelY Offline
      yeckelY Offline
      yeckel
      wrote on last edited by
      #2

      From my experience, uninitialized variables. At x86 they were always set to 0, at arm to !=0. You can find them with valgrind on x86 and fix them.

      1 Reply Last reply
      0
      • D Davekawk

        There is a source code for a flight control app based on the Qt, and I have compiled the version for Linux desktop (Ubuntu ), it runs quite steadily , at the same time , I have crosscompiled for the embedded version(Raspberry Pi 3), also can be connected peripheral signal generator normally , but when I click certain ComboBox in the toolbar, the app would crash, the question did not turn up for the desktop version.Usually ,what are the reasons probably for on the embedded platform caused app crash ?Memory leak ?I can not think much about it .Thank for giving me some advice.

        jsulmJ Online
        jsulmJ Online
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Davekawk You should run your app through GDB on the device to see what exactly happens.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2
        • D Davekawk

          There is a source code for a flight control app based on the Qt, and I have compiled the version for Linux desktop (Ubuntu ), it runs quite steadily , at the same time , I have crosscompiled for the embedded version(Raspberry Pi 3), also can be connected peripheral signal generator normally , but when I click certain ComboBox in the toolbar, the app would crash, the question did not turn up for the desktop version.Usually ,what are the reasons probably for on the embedded platform caused app crash ?Memory leak ?I can not think much about it .Thank for giving me some advice.

          A Offline
          A Offline
          ambershark
          wrote on last edited by
          #4

          @Davekawk If you get a stack trace on the device and post it we can help a lot more.

          Otherwise you're stuck doing things like @yeckel said and just searching for potential problems. You can use tools (like the mentioned valgrind) but realistically it will come down to you searching code.

          My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

          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