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. App crashing
Forum Updated to NodeBB v4.3 + New Features

App crashing

Scheduled Pinned Locked Moved Mobile and Embedded
17 Posts 7 Posters 7.0k 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.
  • B Offline
    B Offline
    borut123
    wrote on last edited by
    #1

    I have developed Qt app, which uses C++ and Qt Mobility 1.1 for communication with server, and QML for UI presentation.
    The app has been tested on 5 different platforms: Windows 7, Ubuntu 10.10, Nokia N900, Nokia N97, Nokia N8.
    It runs well on all platforms except on N8 (and probably also on other Symbian 3 phones).

    All platforms have the same Qt version, Qt 4.7.1, Qt Mobility 1.1.

    Any idea why the app would crash only on N8?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Symbian has a rather strict security system... so does your application have all required capabilities? Information on capabilities can be found at http://wiki.forum.nokia.com/index.php/Capabilities_(Symbian_Signed) .

      1 Reply Last reply
      0
      • B Offline
        B Offline
        borut123
        wrote on last edited by
        #3

        The capabilities should be ok, since the app is installed successfully and runs on N8.

        1 Reply Last reply
        0
        • ZlatomirZ Offline
          ZlatomirZ Offline
          Zlatomir
          wrote on last edited by
          #4

          2 Tobias, the link doesn't work, you missed the last character in url ')'

          2 borut123, different platforms can behave differently on subtle bugs, so i suggest you look at the code first.
          i might be wrong, but i think that you can do debug on the device with Nokia SDK, anyway try to get more information about the crash.

          https://forum.qt.io/category/41/romanian

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            The parser of this website does not allow for URLs ending in ')' :-(

            http://wiki.forum.nokia.com/index.php/Capabilities_(Symbian_Signed) is the URL I wanted to give above.

            Edit: Cool, just adding the URL not using the link button does make it work. I'll update my original post accordingly:-)

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tomjanssens
              wrote on last edited by
              #6

              Hello,

              Stupid question maybe, but did you upgrade qt on the N8.? The device is shipped with qt 4.6.

              Tom

              1 Reply Last reply
              0
              • B Offline
                B Offline
                borut123
                wrote on last edited by
                #7

                Yes, I have upgraded it with the latest Qt from QT SDK 1.1 TP.

                I also know that there could be some differences between platforms, but I would not expect so frequent crashing of the application on N8, which works perfectly ok on N97.

                My question was more like "does anybody else have the same experience with crashing of qt apps on Symbian 3".
                If not, then there's obviously something wrong with my code.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tomjanssens
                  wrote on last edited by
                  #8

                  I have no problem with my N8, but the applications I have deployed so far are very simple.

                  It's probably best that you debug the application on the device.

                  Cheers
                  Tom

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    koshui
                    wrote on last edited by
                    #9

                    [quote author="borut123" date="1295956253"]
                    Yes, I have upgraded it with the latest Qt from QT SDK 1.1 TP.

                    I also know that there could be some differences between platforms, but I would not expect so frequent crashing of the application on N8, which works perfectly ok on N97.
                    [/quote]
                    What ever you do, do not hard reset your phone.
                    This will end up in trip to service point for flashing a new firmware.
                    For the moment you are stuck with the tech preview.
                    See http://discussion.forum.nokia.com/forum/showthread.php?217774-Revert-back-from-Qt-4.7.1-to-Qt-4.6.3

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      huluyige
                      wrote on last edited by
                      #10

                      hi borut123,

                      did you find the problem, i got the same problem when i change the network type (3G wifi..)

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        guoqing
                        wrote on last edited by
                        #11

                        sounds like a BC problem to me, did you compile your code with NokiaQtSDK with Symbian^3 SDK ? The sis package for N97 probably won't work on N8 as the BC break between Symbian^3 and Symbian^1

                        1 Reply Last reply
                        0
                        • B Offline
                          B Offline
                          borut123
                          wrote on last edited by
                          #12

                          Hi

                          I've made a few changes in the code, also fixed some memory leaks, installed Qt 4.7.2 and Qt Mobility 1.1.0. Now the app is much more stable than before.

                          Could you explain a bit more about what you're trying to achieve and maybe send the code snippet
                          of the "critical part" of youre code.

                          1 Reply Last reply
                          0
                          • H Offline
                            H Offline
                            huluyige
                            wrote on last edited by
                            #13

                            @borut123, how did you fix some memory leaks? you used some tools? Thanks

                            1 Reply Last reply
                            0
                            • B Offline
                              B Offline
                              borut123
                              wrote on last edited by
                              #14

                              Qt Creator 2.2 has a plugin which uses Valgrind to detect memory leaks.
                              I think it works on linux and mac (I use it on Ubuntu).

                              http://doc.trolltech.com/qtcreator-snapshot/creator-analyzer.html

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                huluyige
                                wrote on last edited by
                                #15

                                I installed Valgrind, but i dont find it "Debug > Start Analyzer > Start." how did you do it? Thanks
                                [quote author="borut123" date="1305196666"]

                                Qt Creator 2.2 has a plugin which uses Valgrind to detect memory leaks.
                                I think it works on linux and mac (I use it on Ubuntu).

                                http://doc.trolltech.com/qtcreator-snapshot/creator-analyzer.html
                                [/quote]

                                1 Reply Last reply
                                0
                                • B Offline
                                  B Offline
                                  borut123
                                  wrote on last edited by
                                  #16

                                  Strange.
                                  Please check again that you are using the latest Qt Creator (not the one which comes with Qt SDK 1.1).

                                  Which operating system are you using?

                                  1 Reply Last reply
                                  0
                                  • H Offline
                                    H Offline
                                    huluyige
                                    wrote on last edited by
                                    #17

                                    @borut123, ok, i understand where the problem is: i am using Qt SDK 1.1

                                    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