Login Page - Create Account

Support Board


Date/Time: Wed, 10 Dec 2025 08:27:38 +0000



Post From: OpenGL issues in v2826 not present in v2813

[2025-12-10 01:09:23]
User719512 - Posts: 343
Hi Sierra Chart Engineering,

I have a few custom studies on my chart that display text using DrawTextAt, and my chartbook works perfectly in v2813.
With v2826, I get a ton of errors like

2025-12-09 16:21:41.297 | OpenGL error in allocate Bitmap/glTexImage2D from raw returns error: INVALID VALUE Number in queue: 0
2025-12-09 16:21:41.297 | OpenGL: cannot allocate texture *
2025-12-09 16:21:41.311 | OpenGL error in allocate Bitmap/glTexImage2D from raw returns error: INVALID VALUE Number in queue: 0
2025-12-09 16:21:41.311 | OpenGL: cannot allocate texture *
2025-12-09 16:21:41.313 | OpenGL error in BindFrameBufferObjectAndViewport returns error: INVALID VALUE Number in queue: 0
and the text does not display. The rectangles I draw continue to draw, but the text does not.

With OpenGL disabled, all text works as expected.

Enable OpenGL enabled, the text does not show.
What's even stranger, is that if I change the font size within my study, the text will show.
Change it back to the original value, it doesn't.
Save chart, exit, restart, it doesn't show. Change font size back to previously non-working size...the text shows.

It's like once Sierra fails to use/create a certain font/size in DrawTextAt, that font/size combo will never work.
Occasionally, one of the failing studies will work and another will not. Almost l like a race condition or some factor where after X font/size selections, OpenGL fails and will not recover.

I have even set all the studies to use the same font, but different sizes - and the problem persists.
My desired usage is some info messages from custom studies in Arial or Tahoma, and most all chart settings are Segoe UI...so just a few fonts.

I bring this up since a long while ago Sierra used to hang with this support request:
4 Fonts and 5 Sizes hangs Sierra with sc.Graphics.DrawTextAt()

Sierra no longer hangs, but this test study does demonstrate a problem that I am hoping you will investigate that I believe is related/same as my real issue with my custom studies.
Running this test and debugging the "OpenGL error in allocate..." messages will hopefully lead to understanding the root cause.
Building the sample study from that previous thread should be easy.

Repro environment:

2025-12-09 16:41:08.194 | Software version: 2826 64-bit
2025-12-09 16:41:08.195 | OpenGL enabled (NVIDIA Corporation/NVIDIA GeForce RTX 5070 Ti/PCIe/SSE2)

See attached for screenshots of the working/non-OpenGL study, the same study with OpenGL enabled and the errors.

Appreciate your efforts with the recent MDI windows, title bars, etc. If this issue can be fixed, I think the next revision/evolution of Sierra will be a great release for Current Version.
imagesierra-drawtextat.png / V - Attached On 2025-12-10 01:06:09 UTC - Size: 370.96 KB - 9 views