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

function crashes

Scheduled Pinned Locked Moved Unsolved General and Desktop
32 Posts 4 Posters 6.2k 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.
  • mrjjM mrjj

    @saber
    Hi
    I would insert qDebug() for size() of all lists involved and
    also dump the values of i and j.
    Its hard to guess at since normally one inspects the runtime variables in the debugger to see if all
    are within bounds.

    what does seriesList.at(j) return ? a QString or list ?

    S Offline
    S Offline
    saber
    wrote on last edited by
    #12

    @mrjj
    this
    0_1526034483163_qw.png

    mrjjM 1 Reply Last reply
    0
    • S saber

      @mrjj
      this
      0_1526034483163_qw.png

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #13

      @saber
      Ok so its a Qlineseries pointer
      Looking at its replace, it seems to be this one ?
      void QXYSeries::replace(int index, qreal newX, qreal newY)

      anyway, you can split to multiple statements so its more clear which part that crashes.

      for (int i = 0; i < (second < 61 ? second : 61); i++) {
      auto Line= seriesList.at(j);
      auto value = seriesList.at(j)->at(i).y();
      Line->replace(i, (i+1),value );
      }

      S 1 Reply Last reply
      0
      • mrjjM mrjj

        @saber
        Ok so its a Qlineseries pointer
        Looking at its replace, it seems to be this one ?
        void QXYSeries::replace(int index, qreal newX, qreal newY)

        anyway, you can split to multiple statements so its more clear which part that crashes.

        for (int i = 0; i < (second < 61 ? second : 61); i++) {
        auto Line= seriesList.at(j);
        auto value = seriesList.at(j)->at(i).y();
        Line->replace(i, (i+1),value );
        }

        S Offline
        S Offline
        saber
        wrote on last edited by
        #14

        @mrjj
        sorry .i have no idea how to do that ,as our lead developer is gone for now.
        so we are in short of intelligences .
        here is the app .if you have some time ........
        CoreBox

        mrjjM 1 Reply Last reply
        0
        • S saber

          @mrjj
          sorry .i have no idea how to do that ,as our lead developer is gone for now.
          so we are in short of intelligences .
          here is the app .if you have some time ........
          CoreBox

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #15

          @saber
          Hi
          Will it work on any linux?
          Also, you are trying to fix the
          Known Bugs
          Opening two dashboard ,crash the whole app. <<< -- that one ?

          S 1 Reply Last reply
          0
          • mrjjM mrjj

            @saber
            Hi
            Will it work on any linux?
            Also, you are trying to fix the
            Known Bugs
            Opening two dashboard ,crash the whole app. <<< -- that one ?

            S Offline
            S Offline
            saber
            wrote on last edited by saber
            #16

            @mrjj
            yes it wiil run on any linux. as far as i know.
            because it has little dependences(qt,file,libmagic-dev/libmagic-mgc/libmagic1)
            and yes for now i want to fix the "Opening two dashboard ,crash the whole app"
            but it also have other bugs here

            my way to fix all this and add this feature by opening issue in qt forum.
            as i don't know the high level coding.

            i was intendant to do a invitation to join this project in this forum .but i was woried as it will be right way to that.
            if you have some time to fix this issue........

            mrjjM 1 Reply Last reply
            0
            • S saber

              @mrjj
              yes it wiil run on any linux. as far as i know.
              because it has little dependences(qt,file,libmagic-dev/libmagic-mgc/libmagic1)
              and yes for now i want to fix the "Opening two dashboard ,crash the whole app"
              but it also have other bugs here

              my way to fix all this and add this feature by opening issue in qt forum.
              as i don't know the high level coding.

              i was intendant to do a invitation to join this project in this forum .but i was woried as it will be right way to that.
              if you have some time to fix this issue........

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #17

              @saber
              Ok, seems like a big project.
              What ever happen to the person that wrote the code ?

              S 1 Reply Last reply
              0
              • mrjjM mrjj

                @saber
                Ok, seems like a big project.
                What ever happen to the person that wrote the code ?

                S Offline
                S Offline
                saber
                wrote on last edited by
                #18

                @mrjj
                it is not a bigg project.
                me and my friend made this app.
                my view , his code. he is has no interest and time for it now.
                so what you are thinking to .....

                mrjjM 1 Reply Last reply
                0
                • S saber

                  @mrjj
                  it is not a bigg project.
                  me and my friend made this app.
                  my view , his code. he is has no interest and time for it now.
                  so what you are thinking to .....

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #19

                  @saber
                  Ok, so you Designed it and he programmed it. sweet.
                  Currently im spring cleaning pc so i have no linux around before monday.

                  But if its easy to build, i might have a look at that bug next week.

                  That said i have huge project at work so I cant help program it
                  like project member.

                  S 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    @saber
                    Ok, so you Designed it and he programmed it. sweet.
                    Currently im spring cleaning pc so i have no linux around before monday.

                    But if its easy to build, i might have a look at that bug next week.

                    That said i have huge project at work so I cant help program it
                    like project member.

                    S Offline
                    S Offline
                    saber
                    wrote on last edited by
                    #20

                    @mrjj
                    thanks for helping.
                    it is easy to build .just the 2 dependencies .
                    thats ok ,if you could not join as a project member.
                    programar like you need little time to solve this listed problems.

                    looking forward to hear for you.

                    mrjjM 1 Reply Last reply
                    0
                    • S saber

                      @mrjj
                      thanks for helping.
                      it is easy to build .just the 2 dependencies .
                      thats ok ,if you could not join as a project member.
                      programar like you need little time to solve this listed problems.

                      looking forward to hear for you.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #21

                      @saber
                      Hi
                      I assume for the dependencies , i can just apt-get ?

                      S 1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @saber
                        Hi
                        I assume for the dependencies , i can just apt-get ?

                        S Offline
                        S Offline
                        saber
                        wrote on last edited by
                        #22

                        @mrjj
                        just apt-get package name.
                        remember to install qt-packages.

                        S 1 Reply Last reply
                        1
                        • S saber

                          @mrjj
                          just apt-get package name.
                          remember to install qt-packages.

                          S Offline
                          S Offline
                          saber
                          wrote on last edited by
                          #23

                          @saber
                          sorry to bother you.
                          is there any progress ??

                          mrjjM 1 Reply Last reply
                          0
                          • S saber

                            @saber
                            sorry to bother you.
                            is there any progress ??

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #24

                            @saber
                            Hi
                            Nope was to tired in evening to fool around with it :)

                            S 1 Reply Last reply
                            0
                            • mrjjM mrjj

                              @saber
                              Hi
                              Nope was to tired in evening to fool around with it :)

                              S Offline
                              S Offline
                              saber
                              wrote on last edited by
                              #25

                              @mrjj
                              so this issue will not getting the "SOLVED" tag.

                              mrjjM 1 Reply Last reply
                              0
                              • S saber

                                @mrjj
                                so this issue will not getting the "SOLVED" tag.

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #26

                                @saber
                                Nope, not unless you found the bug and fixed it.

                                S 1 Reply Last reply
                                0
                                • mrjjM mrjj

                                  @saber
                                  Nope, not unless you found the bug and fixed it.

                                  S Offline
                                  S Offline
                                  saber
                                  wrote on last edited by
                                  #27

                                  @mrjj
                                  told you before , i am not capable to do that such thing with programming skill

                                  mrjjM 1 Reply Last reply
                                  0
                                  • S saber

                                    @mrjj
                                    told you before , i am not capable to do that such thing with programming skill

                                    mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #28

                                    @saber
                                    well its more using the debugger skill, but i understand what you mean.

                                    S 1 Reply Last reply
                                    0
                                    • mrjjM mrjj

                                      @saber
                                      well its more using the debugger skill, but i understand what you mean.

                                      S Offline
                                      S Offline
                                      saber
                                      wrote on last edited by
                                      #29

                                      @mrjj
                                      another problem is debugger is not working in my linux machine

                                      mrjjM 1 Reply Last reply
                                      0
                                      • S saber

                                        @mrjj
                                        another problem is debugger is not working in my linux machine

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #30

                                        @saber
                                        Well why not fix that then ?
                                        Might be unexpected version or something like that.
                                        Developing apps with no debugger is not optimal. its a very needed tool.

                                        S 1 Reply Last reply
                                        0
                                        • mrjjM mrjj

                                          @saber
                                          Well why not fix that then ?
                                          Might be unexpected version or something like that.
                                          Developing apps with no debugger is not optimal. its a very needed tool.

                                          S Offline
                                          S Offline
                                          saber
                                          wrote on last edited by
                                          #31

                                          @mrjj with an update of the qtcretor ,it now shows warning in right side.
                                          so in the function it shows a waning use of old-style cast
                                          0_1534133525567_a.png

                                          i think it needs to fix .i mean use new style cast.but how?

                                          jsulmJ 1 Reply Last reply
                                          -1

                                          • Login

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