adamerose / adamerose/PandasGUI

OpenGL error - hard crash - PandasGUI quits or throws warning about

Đang mở
#202 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
3.3k
Fork
239
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

When I run the demo on the github page, I get an OpenGL error :

```
from pandasgui import show
from pandasgui.datasets import pokemon, titanic, all_datasets
show(pokemon, titanic)
show(**all_datasets)

```

It works fine with 1 or 2 datasets but with all of them it throws driver and performance errors.

ERROR MESSAGE:

![image](https://user-images.githubusercontent.com/9345711/165178918-31ef1c3e-8b99-4faf-9949-8d6a11c89824.png)

```
>>> show(pokemon, titanic)
PandasGUI INFO — pandasgui.gui — Opening PandasGUI

>>> show(**all_datasets)
PandasGUI INFO — pandasgui.gui — Opening PandasGUI

>>> ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x0) for format: QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile), shared context: 0x30000 (The operation completed successfully.)
GDI::createContext: wglCreateContext failed. (Unknown error 0xc00705aa.)
Unable to create a GL Context.
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile QSurfaceFormat::NoProfile) .
This is most likely caused by not having the necessary graphics drivers installed.

Install a driver providing OpenGL 2.0 or higher, or, if this is not possible, make sure the ANGLE Open GL ES 2.0 emulation libraries (libEGL.dll, libGLESv2.dll and d3dcompiler_*.dll) are available in the application executable's directory or in a location listed in PATH.
```

I ran it again in a new Python terminal session, and then I selected a smaller dataset and it throws a warning and an ERROR:

```
>>> from pandasgui import show
>>> show(**all_datasets)
PandasGUI INFO — pandasgui.gui — Opening PandasGUI

>>> [17940:27544:0425/172740.921:ERROR:gles2_cmd_decoder.cc(10941)] [.WebGL-0000025A68386020]PERFORMANCE WARNING: Attribute 0 is disabled. This has significant performance penalty
js: [.WebGL-0000025A68386020]PERFORMANCE WARNING: Attribute 0 is disabled. This has significant performance penalty
```

**Environment**
OS: (eg. Windows 10)
Python: (eg. 3.8.13)
IDE: (eg. Anaconda Console (terminal window)

**Package versions**
TO GET ALL RELEVANT PACKAGE VERSIONS, RUN THIS COMMAND IN BASH AND PASTE THE OUTPUT
pip freeze | grep -i "pyqt\|pandasgui\|plotly\|ipython\|jupyter\|notebook"

EXAMPLE OUTPUT
```
(pandasgui2) c:\>pip freeze > pandasGUI_installed_packages_text.txt

(pandasgui2) c:\>type pandasGUI_installed_packages_text.txt
appdirs==1.4.4
astor==0.8.1
asttokens==2.0.5
backcall==0.2.0
brotlipy==0.7.0
certifi==2021.10.8
cffi @ file:///C:/ci_310/cffi_1642682485096/work
charset-normalizer @ file:///tmp/build/80754af9/charset-normalizer_1630003229654/work
colorama @ file:///tmp/build/80754af9/colorama_1607707115595/work
conda==4.12.0
conda-package-handling @ file:///C:/ci/conda-package-handling_1649105961774/work
cryptography @ file:///C:/ci/cryptography_1639472366776/work
cycler==0.11.0
decorator==5.1.1
executing==0.8.3
fonttools==4.33.2
idna @ file:///tmp/build/80754af9/idna_1637925883363/work
ipython==8.2.0
jedi==0.18.1
kiwisolver==1.4.2
matplotlib==3.5.1
matplotlib-inline==0.1.3
menuinst @ file:///C:/ci/menuinst_1631733428175/work
numpy==1.22.3
packaging==21.3
pandas==1.4.2
pandasgui==0.2.13
parso==0.8.3
pickleshare==0.7.5
Pillow==9.1.0
plotly==5.7.0
prompt-toolkit==3.0.29
pure-eval==0.2.2
pyarrow==7.0.0
pycosat==0.6.3
pycparser @ file:///tmp/build/80754af9/pycparser_1636541352034/work
Pygments==2.12.0
pynput==1.7.6
pyOpenSSL @ file:///opt/conda/conda-bld/pyopenssl_1643788558760/work
pyparsing==3.0.8
PyQt5==5.15.6
PyQt5-Qt5==5.15.2
PyQt5-sip==12.10.1
PyQtWebEngine==5.15.5
PyQtWebEngine-Qt5==5.15.2
PySocks @ file:///C:/ci/pysocks_1605287845585/work
python-dateutil==2.8.2
pytz==2022.1
pywin32==302
qtstylish==0.1.5
requests @ file:///opt/conda/conda-bld/requests_1641824580448/work
ruamel-yaml-conda @ file:///C:/ci/ruamel_yaml_1616016967756/work
six==1.16.0
stack-data==0.2.0
tenacity==8.0.1
tqdm @ file:///C:/ci/tqdm_1650618053064/work
traitlets==5.1.1
typing_extensions==4.2.0
urllib3 @ file:///C:/ci/urllib3_1650640043075/work
wcwidth==0.2.5
win-inet-pton @ file:///C:/ci/win_inet_pton_1605306167264/work
wincertstore==0.2
wordcloud==1.8.1

```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.