Login Page - Create Account

Support Board


Date/Time: Wed, 28 Jan 2026 16:28:10 +0000



OpenGL issues in v2826 not present in v2813

View Count: 335

[2025-12-10 01:09:23]
User719512 - Posts: 408
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 - 49 views
[2025-12-10 02:03:03]
Sierra_Chart Engineering - Posts: 22557
Give us some time to get this resolved.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-12-10 03:51:15]
Sierra_Chart Engineering - Posts: 22557
Would we be able to get the chart, and the relevant portion of the custom study code that is leading to the problem.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-12-10 07:39:54]
User719512 - Posts: 408
The best repro I can come up with that is reliable is the one I linked earlier:
4 Fonts and 5 Sizes hangs Sierra with sc.Graphics.DrawTextAt()
(Put in its own chart book)

I almost had a reliable repro using the
SCSFExport scsf_DrawToChartExample(SCStudyInterfaceRef sc)
sample in a separate chart book and setting
GraphicsFont.m_FaceName = sc.StudyGraphInstanceID & 1 ? "Consolas" : "Segoe UI";
which was making the text appear or disappear depending on if the study id was odd/even. Most times, but not always, after opening the chart with the "scsf_zzz_TestSierraFonts" test code from the link, this sample would fail to draw the text. For me, the Consolas font is the one that fails to show most often.
[2025-12-10 23:02:39]
User719512 - Posts: 408
Hey Sierra Chart Engineering,

I have a new repro using all Sierra studies. This time, not only can I repro the font corruption, I also get a crash, and with the debugger connected, stack-based buffer overrun.

The idea was to create a chart that uses Chart Settings (not Global) and then put a single Stationary Text on the chart.
I duplicated this chart 15 times and Tiled as Grid.
One by one, I started changing the font on the text to a different font (kept size at 20).
My default fonts are ALL Segoe UI, so then I just started changing them to

#1 Segoe UI
#2 Arial Narrow
#3 Arial Rounded MT Bold
#4 Bahnschrift Light Condensed
#5 Calibri Light [this chart showed corrupted text with some letters missing]
#6 Cambria [!!! CRASH !!!]

I have attached an image of the layout and the crash and the chartbook as private attachments.

Using v2828.
Date Time Of Last Edit: 2025-12-10 23:03:50
Private File
Private File
[2025-12-11 07:20:09]
Sierra_Chart Engineering - Posts: 22557
We are checking on this.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2025-12-11 23:04:48]
User719512 - Posts: 408
v2829 - opened chartbook from another user. Saw corrupted text on the Historical Download popups that appear when you first connect to the service.
Rolled back to v2813, and chart book works as expected and no issues observed.
Date Time Of Last Edit: 2025-12-11 23:05:10
imageScreenshot 2025-12-11 145426.png / V - Attached On 2025-12-11 23:04:40 UTC - Size: 12.12 KB - 40 views
[2025-12-12 19:11:14]
Sierra_Chart Engineering - Posts: 22557
Update to prerelease version 2830. And most importantly refer to:
Graphics Settings: Text Display when using Open GL
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2025-12-12 19:11:32

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account