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. [solved] Translation on the fly crashes
QtWS25 Last Chance

[solved] Translation on the fly crashes

Scheduled Pinned Locked Moved General and Desktop
32 Posts 2 Posters 10.3k 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.
  • S Offline
    S Offline
    skwateur
    wrote on last edited by
    #11

    I only install it when I load the english language file. It is never installed otherwise

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #12

      Strange...
      Could you post/share a minimal compilable example that shows the problem ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        skwateur
        wrote on last edited by
        #13

        hmmm. post an example from my own program ?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #14

          Rather the minimal code that reproduce the crash

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • S Offline
            S Offline
            skwateur
            wrote on last edited by
            #15

            Oh. The code that produce the crash is the code I have posted above.

            If I take the instruction " qApp->installTranslator(translator);" off, then it doesn't crash. But I have nothing translated lol

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #16

              Indeed, but with only pieces of code, I can't try to reproduce the crash.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • S Offline
                S Offline
                skwateur
                wrote on last edited by
                #17

                oh. Do you want the full code of the class ?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  skwateur
                  wrote on last edited by
                  #18

                  Or I can send you the source files by email if you want. Maybe it could be easier for you to see what's wrong

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #19

                    You can also use a service like "pastbin":http://pastebin.com/

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      skwateur
                      wrote on last edited by
                      #20

                      Should I paste all my code with pastbin SGalst ?

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #21

                        Only what is needed to build and trigger the crash

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • S Offline
                          S Offline
                          skwateur
                          wrote on last edited by
                          #22

                          It is a graphic application. You would need the images files to be able to hit the button.

                          Any way I can give it to you ?

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #23

                            What do you mean by "images files to be able to hit the button" ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              skwateur
                              wrote on last edited by
                              #24

                              In order to trigger the crash, you have to run the application then hit a button to load a widget. Then you have to hit another button to start the translation. (and then it crashes).

                              If you want to trigger the crash yourself, you would need the whole program I think. (I have got too many classes ad I don't really know what is the minimal stuff you would need to be able to compile it)

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                skwateur
                                wrote on last edited by
                                #25

                                It used to work fine before. Dunno what I changed, god damn it it's driving me crazy

                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #26

                                  CVS to the rescue ! Or if it's not an option, the best technique is to strip your software down (or rebuild it from the ground) until you either have the bug again or it stop to happen (depends which direction you started with

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    skwateur
                                    wrote on last edited by
                                    #27

                                    Unfirtunately, I do not have any CVS system on my laptop (should have...)

                                    Have you ever used Qt debugger ? Look like it's really useless to me. It just show me the assembler code. What am I supposed to do with that ?

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #28

                                      All recent CVS system proposes to create local repositories that you can use.

                                      Generally this means that you are trying to debug a release version

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      1 Reply Last reply
                                      0
                                      • S Offline
                                        S Offline
                                        skwateur
                                        wrote on last edited by
                                        #29

                                        I will think about it.

                                        I was debugging the debug version lol

                                        1 Reply Last reply
                                        0
                                        • S Offline
                                          S Offline
                                          skwateur
                                          wrote on last edited by
                                          #30

                                          god... I just fixed it !
                                          Thanks for your help and your time

                                          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