Uploaded image for project: 'UGENE'
  1. UGENE
  2. UGENE-7133

Fatal error in the ugeneui/src/Main.cpp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 38
    • Fix Version/s: 38
    • Component/s: General
    • Labels:
      None
    • Environment:

      All

    • Sprint:
      DEV-39-3, DEV-39-4, DEV-40-2
    • Affect Type:
      Userdefined

      Description

      Scenario:

      1. Unpack UGENE
      2. Remove transl_en.qm translation file from root directory
      3. Run ugeneui.exe
        Expected state: Error message about missed files translation
        Actuel state: Crash

      There is a loop in the Main.cpp (line ~500) :

      ....
      QString transFile[] =
      Unknown macro: { userAppSettings->getTranslationFile(), "transl_en"}
      ;
      for (int i = transFile[0].isEmpty() ? 1 : 0; i < 3; ++i)
      Unknown macro:

      Unknown macro: { if (!translator.load(transFile[i], AppContext}

      else
      Unknown macro:
      Unknown macro: { settings->setValue("UGENE_CURR_TRANSL", transFile[i].right(2)); trOK = true; break; }
      }
      ...

      The problem is that loop is 0...2, but array is 0...1
      In case transl_*.qm files are in not-current directory, the ugeneui crashed.

       

       

        Attachments

          Activity

            People

            Assignee:
            yalgaer Yuliya Algaer
            Reporter:
            ichebykin Igor Chebykin
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: