Trying to select a custom icon for an icon results in freeze: TQGArray::at: Absolute index out of range #46
Κλειστό
άνοιξε το 3 έτη πριν από Ghost
·
5 σχόλια
Φόρτωση…
Αναφορά σε νέο ζήτημα
Δεν υπάρχει ακόμα περιεχόμενο.
Διαγραφή του Κλάδου '%!s(<nil>)'
Η διαγραφή του κλάδου είναι μόνιμη. ΔΕΝ ΜΠΟΡΕΙ να αναιρεθεί. Συνέχεια;
Basic information
SL/normal
Description
If you try to set an icon for something that does not have an icon assigned, the icon selection dialog will freeze while loading the icon list, taking out the program that initialized the dialog (konqueror or kdesktop). If they are run from the console you will be able to see an infinite loop of messages such as:
[2021/02/14 10:19:07.822] TQGArray::at: Absolute index 2779136 out of range
The index number will continue going up until it reaches the 32-bit signed integer limit and then it will roll over to the negatives and continue incrementing. I tried letting it keep doing this overnight and it never broke out of the loop. The only way to get out is to kill the affected process, and there doesn't seem to be a way to assign an icon as a result. This doesn't happen if the icon already has an icon assigned-- only if none/default "blank page" icon is assigned (in this case, I found it when trying to make a link to a device via drag and drop)
This happened on a fresh install of Ubuntu and TDE with only tdebase-trinity installed.
Steps to reproduce
Hi MrKsoft,
this problem is likely related to some svg icons installed in your system. We have seen reports of this issue from other users, where the kicker menu was freezing exactly in the same way. That point was addressed, so perhaps we may need the same fix somewhere else or there may be a new fix required.
The problem does not show up here, so in order to address this we need you to investigate which icon causes the issue and later attach the icon here, so we can use it for testing.
Thanks for the info about SVGs being the root issue. I did search previous reports and did not see anything but maybe I was looking for the wrong thing.
I systematically went through all the SVGs on my system and found six problematic ones in the "hicolor" theme. Removing these restored functionality. I have attached an archive with all six of these SVGs included.
I can reproduce the problem here when using the attached icons. Will have a look to see if I can find where the problem is.
This problem is caused by non conforning SVG files where largeArc and sweep flags are not correctly separated from other fields by separators.
Fixed in the above commit.
If anyone runs into this problem with other svg icons, please upload them and reopen the issue report.