We have big trouble with SciChart 6.1. First was the initial loading time. But there is this async loading workaround.
Now if we try to render a simple (not large) signal into the chart, it hangs in the rendering loop. No exception, high CPU usage.
Any solution for this issue?
It works on some, but it fails on most of our PCs/Laptops.
- Tobias asked 3 years ago
- last edited 3 years ago
- You must login to post comments
Everything works fine if I deactivate the VisualXcceleratorEngine.
s: VisualXcceleratorEngine.IsEnabled = “False”
But then only slow WPF software rendering is supported.
- Tobias answered 3 years ago
- You must login to post comments
We’d need your code to try to debug this Tobias. SciChart’s rendering is single-threaded, any deadlocking is likely occurring because of threads in your code.
The Async license loading is the only place in the scichart library where a new Task is created. This task has to be awaited before you can start your first chart. Also, you should note that SciChart 6.2 (available in nightly build now, full release soon) has a 28x faster startup performance time, and async license loading will no longer be needed.
Can you supply code to reproduce the issue? As I said, we need this because no-one else is reporting such an issue.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 3 years ago
- You must login to post comments
Andrew, thanks for your answer.
Ok, it’s not a deadlock or livelock, it just hangs in the rendering loop with high CPU usage. Of course, all calls to SciChart from our software use MVVM bindings and therefore use the UI thread.
I updated to the nightly build version and now I get an exception:
Unfortunately, we do not have time to investigate this issue at the moment. We are reverting to version 5.3 and will try to update later. I would be happy about a possible solution and test it immediately 🙂
- Tobias answered 3 years ago
- last edited 3 years ago
- Just out of interest what video card do you have? Can you use DXDiag.exe and report on the VRAM of the video card? If less than 256MByte then you may have to force DirectX9 mode, which uses less memory.
- You must login to post comments
Yeees 🙂 Thats it. Thank you Andrew!
Laptops usually have two graphics cards. The laptop on which SciChart hangs/crashes has an Intel and an NVIDIA card. The NVIDIA driver was configured in the NVIDIA control panel to automatically select the required graphics card. However, the NVIDIA card was never selected on these laptops. The VRAM is therefore only 112 MB in size.
Display Devices:
Card name: Intel(R) HD Graphics Family
DAC type: Internal
Device Type: Full Device (POST)
Display Memory: 2160 MB
Dedicated Memory: 112 MB
Shared Memory: 2048 MB
Current Mode: 1920 x 1080 (32 bit) (60Hz)
HDR Support: Not Supported
Display Topology: Internal
Card name: NVIDIA GeForce GT 750M
DAC type: Integrated RAMDAC
Device Type: Render-Only Device
Display Memory: 10150 MB
Dedicated Memory: 2009 MB
Shared Memory: 8141 MB
Current Mode: Unknown
HDR Support: Unknown
Display Topology: Unknown
SciChart has the “s:VisualXcceleratorEngine.FallbackType” and “DowngradeWithoutException” setting. Although both are set accordingly, the application crashes with the exception “AccessViolationException”.
If DowngradeWithoutException=true, SciChart should never crash or hang the entire application!
If I manually set the NVIDIA card as the default in the NVIDIA Control Panel, everything works fine.
Can you automatically choose the best graphics card available for SciChart?
- Tobias answered 3 years ago
- last edited 3 years ago
- You must login to post comments
I am experiencing the exact same symptoms as the OP, whenever I disable the “Visual Xccelerator Engine” the issue is no longer present. I am also on a laptop. When specifying the dedicated GPU the issue goes away.
- Zachary Etier answered 3 years ago
- You must login to post comments
Hey everyone
I’m glad to hear the suggestion of using dedicated GPU instead of integrated Intel HD graphics worked!
We have had a lot of people report similar issues. We published a KB article only yesterday to deal with this kind of issue. Read Troubleshooting Visual Xccelerator Engine Issues on low-end Graphics Adapters
Essentially, Intel HD Integrated Graphics does not have enough VRAM to
use Visual Xccelerator Engine. It may start up but it may also crash or hang during operation, since this engine requires at least 80MB of VRAM for static buffers, and further memory for your other apps.
As a result we are publishing a version very soon (v6.2.0) which will include auto detection of this GPU type and downgrade to DirectX9 mode, which uses less RAM (at expense of performance), or software rendering.
To fully avoid these problems, ensure that you have a video card with at least 256MB of VRAM (more is better) and if you have multiple graphics adapters select the most powerful one to run SciChart with Visual Xccelerator.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 3 years ago
- You must login to post comments
Please login first to submit.