Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in QtChart. #490

Open
EryanNeo opened this issue Dec 3, 2024 · 0 comments
Open

Error in QtChart. #490

EryanNeo opened this issue Dec 3, 2024 · 0 comments

Comments

@EryanNeo
Copy link

EryanNeo commented Dec 3, 2024

Question

Hello All,

I'm trying to use QtChart, the window pops up but console throws out error as follows:

[194533:194575:1203/144818.018806:ERROR:gles2_cmd_decoder.cc(8629)] [.RendererMainThread-0x2de5f620]GL ERROR :GL_INVALID_OPERATION : glFramebufferTexture2D: 
[194533:194575:1203/144818.018879:ERROR:gles2_cmd_decoder.cc(4960)] [.RendererMainThread-0x2de5f620]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete

The code used here is :

import pandas as pd
from PyQt5.QtWidgets import QApplication, QMainWindow, QVBoxLayout, QWidget

from lightweight_charts.widgets import QtChart

app = QApplication([])
# app = QApplication(['--no-sandbox'])
window = QMainWindow()
layout = QVBoxLayout()
widget = QWidget()
widget.setLayout(layout)

window.resize(800, 500)
layout.setContentsMargins(0, 0, 0, 0)

chart = QtChart(widget)

df = pd.read_csv('data1.csv')
df['time'] = pd.to_datetime(df['time'])
chart.set(df)

layout.addWidget(chart.get_webview())

window.setCentralWidget(widget)
window.show()

app.exec_()

Could you please suggest me how to get rid of this error.

Code example

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant