Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-64096

QClipboard filled with QPixmap crashes on exit

    XMLWordPrintable

Details

    Description

      The following code demonstrates the problem.

      int main(int argc, char *argv[]) {
          QApplication app(argc, argv);
          QTimer::singleShot(0, [](){
              QPixmap p{1, 1};
              QApplication::clipboard()->setPixmap(p, QClipboard::Clipboard);
              QCoreApplication::quit();
          });
          return app.exec();
      }
      

      results in

      WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!
      WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!
      WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!! WARNING!!!
      YOUR CODE IS RELYING ON DEPRECATED FUNCTIONALTIY IN THE JASPER LIBRARY.
      THIS FUNCTIONALITY WILL BE REMOVED IN THE NEAR FUTURE.
      PLEASE FIX THIS PROBLEM BEFORE YOUR CODE STOPS WORKING!
      The specific problem is as follows:
      negative buffer size for jas_stream_memopen
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sletta Gunnar Sletta
              darklighter Norbert Pfeiler
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes