Abdo d5d38ec151 fix: Qt RHI backend loading error not handled on Linux (#5628)
## Linked issue

Closes #5627

## Summary

This improves graphics error detection so that the "Failed to create RHI
for backend" error returned by Qt is matched. The error message
apparently changed somewhere around Qt 6.11. We have at least one report
from 26.05b1: https://forums.ankiweb.net/t/anki-26-05-beta-1/69707/27

## How to test

Try:
```
echo opengl > ~/.local/share/Anki2/gldriver6   # or delete the file
QT_QPA_PLATFORM=xcb QT_XCB_GL_INTEGRATION=none ./run
```

According to my tests on a Ubuntu 26.04 VM, both "Failed to create RHI"
and "Failed to create QRhi" got printed, so I couldn't reproduce the
case where the error message is not shown. This is hardware-dependent.
2026-10-01 06:25:45 +03:00
2026-07-06 23:16:36 +08:00
2025-10-27 19:27:50 +07:00
2026-09-10 15:10:22 +01:00
2026-09-02 12:41:04 +03:00
2026-09-22 12:20:42 -03:00
2026-03-31 08:26:59 -04:00
2025-06-29 14:38:35 +07:00
2026-09-22 12:20:43 -03:00
2026-09-02 12:41:04 +03:00
2026-08-07 15:57:00 +03:00
2026-05-11 13:04:24 -04:00
2024-03-31 09:16:31 +01:00

Anki

Build Status Documentation Coverage

This repo contains the source code for the computer version of Anki.

About

Anki is a spaced repetition program. Please see the website to learn more.

Getting Started

Contributing

Want to contribute to Anki? Check out the Contribution Guidelines.

For more information on building and developing, please see Development.

Contributors

The following people have contributed to Anki: CONTRIBUTORS

Anki Betas

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see Anki betas.

License

Anki's license: LICENSE

S
Description
GitHub Trending: ankitects/anki
Readme
513 MiB
Languages
Rust 37.5%
Python 22.9%
MDX 19.5%
TypeScript 9.5%
Svelte 8.9%
Other 1.3%