[Github-comments] [geany/geany-plugins] Spell Check plugin crashes Geany if backspace special unicode emoji 👨‍💻 (#1022)

Jonathan Bradley Whited notifications at xxxxx
Fri Nov 6 05:07:31 UTC 2020


The ["Man Technologist"](https://emojipedia.org/man-technologist/) 👨‍💻 (UTF-8) emoji crashes Geany on backspace if you have the Spell Check plugin enabled.

**To reproduce:**
1. Open Geany
2. Enable Spell Check plugin
3. Paste 👨‍💻 into a new document and save as "bug.txt"
4. Try to delete the emoji with backspace
5. Should now crash

**Verbose messages:**
```
(geany:1034609): dconf-DEBUG: 02:17:05.307: change_fast
(geany:1034609): dconf-DEBUG: 02:17:05.307: change_notify: /org/gtk/settings/file-chooser/window-position
Geany-INFO: 02:17:15.744: /home/name/Documents/bug.txt : None (UTF-8)
Geany-INFO: 02:17:15.746: /home/name/Documents/bug.txt : None (UTF-8)
(geany:1034609): dconf-DEBUG: 02:17:15.752: change_fast
(geany:1034609): dconf-DEBUG: 02:17:15.753: change_notify: /org/gtk/settings/file-chooser/
/usr/include/c++/10/bits/stl_vector.h:1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp, _Alloc>::const_reference = const unsigned char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
Aborted (core dumped)
```

The important bit:

(geany:1034609): dconf-DEBUG: 02:17:15.753: change_notify: /org/gtk/settings/file-chooser/
/usr/include/c++/10/bits/stl_vector.h:1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp, _Alloc>::const_reference = const unsigned char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.

**Environment:**
- Geany 1.36 (built on 2020-05-24 with GTK 3.24.20, GLib 2.64.3)
- Linux 5.8.14-200.fc32.x86_64 # 1 SMP Wed Oct 7 14:47:56 UTC 2020 x86_64 GNU/Linux
- Fedora 32


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1022
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201105/72d98c78/attachment.htm>


More information about the Github-comments mailing list