LCA-ActivityBrowser / activity-browser

GUI for brightway2
GNU Lesser General Public License v3.0
142 stars 54 forks source link

Unhandled python exception when executing activity-browser #175

Closed cesardaniel92 closed 6 years ago

cesardaniel92 commented 6 years ago

Hello: I've been using Brightway2 and the Activity-Browser tool for a few weeks now and last Friday when I tried to open it, I got this error. I uninstalled everything including python and miniconda and followed the steps on the github, but I ended up in the exact same place. Here is a picture of the installed packages and the error. Any guidance will be appreciated, thanks! ab error

@cmutel @haasad

rtbs-dev commented 6 years ago

Just to verify what @cesardaniel92 is experiencing, attempting to run activity-browser after following the directions to install brightway and activity-browser results in an error, though this one (Ubuntu) appears to be Qt-related, with more information:

GLib-GIO-Message: 11:16:13.240: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Loading File: /home/username/anaconda3/envs/cesar/lib/python3.6/site-packages/activity_browser/app/ui/web/startscreen/welcome.html
Brightway2 data directory: /home/username/.local/share/Brightway3
Brightway2 active project: default
Loading user settings, if any.
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
Aborted (core dumped)
haasad commented 6 years ago

@cesardaniel92, unfortunately I can't reproduce your problem on my Windows machine. This makes it hard for me to troubleshoot this. Do I understand you correctly, that the AB suddenly stopped working without you changing anything in the environment (ie. conda update or similar)?

Is it possible that a (new?) antivirus software is blocking some functionalities of the AB? If possible could you deactivate the antivirus temporarily and see if this fixes it?

haasad commented 6 years ago

@tbsexton, I can't reproduce your error on Ubuntu 16.04. Looking at similar discussions (eg. at qutebrowser), it seems to be related to the graphics driver. Apparently updating and rebooting solves the issue for many people. Does the problem persist after updating and rebooting:

sudo apt update
sudo apt upgrade
sudo reboot now

?

cesardaniel92 commented 6 years ago

First of all, thanks for the quick reply. That is correct; on Thursday it was working perfect and the next morning when I got to the office, it started showing me that error. It is possible that the IT department pushed through some update on Thursday night, so I will try to look into that and let you know.

rtbs-dev commented 6 years ago

@haasad Can confirm, it was a bug with a recent nvidia patch+Qt. AB now starts fine on Ubuntu.

haasad commented 6 years ago

any progress @cesardaniel92?

haasad commented 6 years ago

Closing for inactivity, feel free to reopen if there are any updates on this.