Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-1267

2.0.0dev6 crash in debug mode on Windows April Update (1803)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2.0.4
    • None
    • Other
    • None
    • Windows 10 April Update (1803)

      Hello,

      Since Windows 10 april update, starting Picard from code source in debug mode cause Picard to crash. it was working great before the update. Starting without debug is working as expected.

      I must add my windows is configured with French language and locales.

      I manage to locate the error source in picard/i18n.py, line 46

      "locale.setlocale(locale.LC_ALL, current_locale)"
      

      Updating update python to 3.6.5 and even 3.7beta did not solved the problem.

      Steps to reproduce are simple, just start "python tagger.py -d" from command line, and you should get an error like this in the windows app logs (sorry for the french language):

      Nom de l'application défaillante python.exe, version : 3.6.5150.1013, horodatage : 0x5abbbe9e
      Nom du module défaillant : ntdll.dll, version : 10.0.17134.1, horodatage : 0xc8733c73
      Code d'exception : 0xc0000374
      

      I'm not sure it's a Picard bug, probably more a Windows or Python bug, but I thought you should get warned.

      Should you need me to perform any changes in the code and test, I'd be happy to help.

      Smeulf.

          [PICARD-1267] 2.0.0dev6 crash in debug mode on Windows April Update (1803)

          All of a sudden this happens to me as well. My system locale is reported as "de_DE", and with this it crashes on the locale.setlocale call. But appending "'.' + locale.getpreferredencoding()" to the locale fixes it. I will submit a PR.

          I still don't understand why I was happily testing pull requests on Windows and the next day cannot run exactly the same branch, but that's how it is. Not sure if maybe some Windows update got in between.

          Philipp Wolfer added a comment - All of a sudden this happens to me as well. My system locale is reported as "de_DE", and with this it crashes on the locale.setlocale call. But appending "'.' + locale.getpreferredencoding()" to the locale fixes it. I will submit a PR. I still don't understand why I was happily testing pull requests on Windows and the next day cannot run exactly the same branch, but that's how it is. Not sure if maybe some Windows update got in between.

          I cannot reproduce this running Windows 10 1803 with latest patches and with Python 3.7 64 bit. System language is set to German.

           

          @Smeulf Can you still reproduce this? Are you using 32 or 64 bit Python? Also could you run attached print-locale.py and post the output?

           

          Philipp Wolfer added a comment - I cannot reproduce this running Windows 10 1803 with latest patches and with Python 3.7 64 bit. System language is set to German.   @Smeulf Can you still reproduce this? Are you using 32 or 64 bit Python? Also could you run attached print-locale.py and post the output?  

            outsidecontext Philipp Wolfer
            Smeulf Smeulf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2.0.4