What’s the problem with Dropbox?
As we wrote about last week, Dropbox version 81.4.195 often fails to run as a background Windows Service. The telltale sign that Dropbox is in trouble is this wordy alert, which appears in Session 0:
Dropbox stops dead in its tracks — without synchronizing a single file!
So how do I fix it?
Follow these steps to fix the problem:
Start a Windows command prompt as an Administrator (an elevated command prompt)
Run this command:
SETX QT_OPENGL software
Close the command prompt.
Afterwards, restart Dropbox as a service. The OpenGL prompt should be gone — a relic of an unpleasant past.
Huge thanks go to Dropbox forum user Wilson7777, who alerted the community of this remedy. His original solution is here.
Why does the fix work?
The explanation is a bit technical, but here goes…
Dropbox uses Qt — a popular cross-platform development framework.
In turn, Qt requires OpenGL — a cross-platform API for rendering 2D and 3D vector graphics.
So when you run Dropbox, both Qt and OpenGL will be started.
But for some unknown reason, when Dropbox is started as a Windows Service in Session 0, Qt and OpenGL fail to initialize. That failure causes Dropbox to throw up the “Failed to create OpenGL context for format QSurfaceFormat” error, which suggests that there is a problem with the computer’s graphics card/hardware.
Fortunately there is a way to instruct Qt: “Instead of using the computer’s graphics hardware for OpenGL, use software libraries”. Setting the QT_OPENGL environment variable to “software” is the way to do that.
And with the change to use software instead of hardware, Qt, OpenGL and Dropbox all start properly.
Note that when you ran the SETX command in step 2, it added the QT_OPENGL value to your environment. You can see it listed in your environment variables (available from the Control Panel):
Will this fix work for future versions of Dropbox?
We certainly hope so! But like you, we’re not sure what magic the next automatic update of Dropbox will bring…
This works, for selected definitions of “fix”. The error message is gone. However, the Dropbox window doesn’t open. No status, no recents, no settings. Running the Dropbox app gets me a big empty white window.
How do I reverse it? After the error message Dropbox at least sort of worked.
Hi Dan. Glad to hear that the fix got you past the OpenGL error!
However no longer seeing the Dropbox window (or its tray icon) is completely normal because Dropbox is running in the background in “Session 0” — an isolated desktop for Windows Services.
You can read about Session 0 on our web site or in the step-by-step tutorial showing how to run Dropbox as a Windows Service with AlwaysUp.
Today the error is back, and Dropbox is crashing and restarting, over and over.
I don’t use AlwaysUp. I’m here from DropBox’s useless support forum, where they are linking your fix as a solution to their problem.
Deleting the environment variable successfully restored some functionality.
I tried this fix and it didn’t work. When I opened Dropbox again, I got the error and the program crashed. 🙁
Sorry to hear that Jeanne!
What version of Dropbox are you running? And are you running Dropbox as a windows service with AlwaysUp?
Hi how do you reverse the “ SETX QT_OPENGL software” should this command not work?
Thanks
Andy
Hi Andy.
To reverse the SETX command, you can either:
[Environment]::SetEnvironmentVariable( "QT_OPENGL", $null, "User" )
Please let us know if the QT_OPENGL fix doesn’t work for you.
If this dropbox error window shows, does it mean that there is something wrong with my computer’s graphics card/hardware? and I should get it checked as well?
Hi Karolina.
Do you see the window when you run Dropbox normally on your desktop, without AlwaysUp?
If so, then you may indeed have a problem with your graphics system that needs attention.
Please ensure that you have all Windows updates applied — especially those related to your graphics devices.
Dropbox 96.3.159, Problem fixed, thanks
I downloaded the newest version of DisplayLink, problem solved.
https://www.displaylink.com/downloads/windows
I also use DisplayLink, and concur that the upgrade to M9.3 appears to have fixed the problem.
Dropbox upgrade did not solve the issue for me.
totally works for me!
was getting desperate after re-installing the graphics drivers didn’t help…
thanks a lot!
You”re the man! Thanks!
On version 106 I tried the first fix (SETX QT_OPENGL software) and it did not work. Following the thread, I then tried the DisplayLink software as this PC was a Surface with a docking station. It did not work but then I removed the SETX QT_OPENGL variable and then it worked fine. So maybe just the DisplayLink by itself would have worked. Thanks for keeping this thread… it ranked high in Google and eventually fixed the issue!
Thanks Joel, glad to hear that Dropbox is now working for you.
Please note that Dropbox version 105 introduced a new problem that was resolved by a variant of the SETX fix. Details in this article.
DisplayLink USB Graphics worked for me Dropbox 149.4.4568 not the SETX QT_OPENGL software.