Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1187

Error: It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil, causes app to fail rendering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.13.0, 5.13.1, 5.14.0, 5.13.2
    • PySide
    • None
    • macOS

    Description

      Error

      2020-01-09 16:24:17.153 Python[46224:1790364] It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil. This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext(void) to debug. This will be logged only once. This may break in the future.

      Versions

      I have checked a lot of versions of PySide2 and the issues comes up in and after 5.12.6. (5.12.5 is fine). It also shows up in PyQt5 5.13.2 (5.13.1 is fine) and after. This makes me believe it is "bigger" than PySide2, but frankly my knowledge of this stuff is no further than "can use it".

      (Can't find 5.12.6 in the version list)

      Requirements

      macOS

       

      pip install pyobjc PyCocoa

       

      Test Case

      If you run the script supplied this will happen.

      on 5.12.5

       

      pip install PySide2==5.12.5

       

      No error is shown and the window is dark, the style was applied (Working.png).

      on +5.12.6

      pip install PySide2==5.12.6

      An error is shown and the window is white, the style was not applied (Bug.png).

       

      The qtmodern_working.png and qtmodern_bug.png are from this repository and branch

      sha1=94d9a641f61bf7059aae14801521356fd1422b72

      https://github.com/Jerakin/qtmodern/tree/borderless/qtmodern

       

       

       

       

       

      Attachments

        1. Bug.png
          Bug.png
          4 kB
        2. PySide2Bug.txt
          1 kB
        3. qtmodern_bug.png
          qtmodern_bug.png
          18 kB
        4. qtmodern_working.png
          qtmodern_working.png
          84 kB
        5. Working.png
          Working.png
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            jerakln Mattias Hedberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes