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

ParticleSystem not work when lock & unlock the desktop

    XMLWordPrintable

    Details

      Description

      I'm using ParticleSystem. I'm on Windows XP. Lock the desktop(Win+L), then unlock the desktop, then the following error will be repeatedly printed to the Output (at a very fast speed):

      QOpenGLContext::swapBuffers() called without corresponding makeCurrent()
      QEGLPlatformContext::swapBuffers(): eglError: 12302, this: 0x21daa40

      bool __thiscall QWindowsEGLContext::makeCurrent(class QPlatformSurface *): eglMakeCurrent() failed, eglError: 0x300e, this: 0x21daa40

      Meanwhile the window area belongs to my program will not refresh. It remains the background of the desktop

      Here is my code: (In fact, ALL the particle examples have the same problem)

      • I've also tested on Windows 7, it works well. *
      import QtQuick 2.0
      import QtQuick.Particles 2.0	
      	
      Rectangle {
      	width: 1000
      	height: 800
      	color: "grey"
      
      	ParticleSystem{
      		id: particles
      	}
      	ImageParticle{
      		anchors.fill: parent
      		system: particles
      		source: "pics/particle.png"
      		colorVariation: 0.6
      	}
      
      	Emitter{
      		anchors.fill: parent
      		system: particles
      		emitRate: 5
      		lifeSpan: 2000
      		size: 5
      		sizeVariation: 2
      
      		acceleration: AngleDirection { angle: 90; angleVariation: 360; magnitude: 20; }
      		velocity: AngleDirection { angle: -90; angleVariation: 360; magnitude: 10; }
      	}
      }
      
      

      And is it related to https://bugreports.qt-project.org/browse/QTBUG-30158 ?

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              rodal Samuel Rødal
              Reporter:
              weiyuemin weiyuemin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes