Trying to select a custom icon for an icon results in freeze: TQGArray::at: Absolute index out of range #46

Closed
opened 3 years ago by Ghost · 5 comments
Ghost commented 3 years ago

Basic information

  • TDE version: R14.0.9
  • Distribution: Ubuntu 20.04.2
  • Hardware: amd64

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

  1. Go to system:/media in konqueror
  2. Drag the system HDD (fixed disk) to the desktop
  3. In the pop-up menu that appears select Link Here
  4. Right click on the new link and select Properties from the menu
  5. Click on the icon in the Properties dialog to bring up the icon selector
  6. It will freeze at this point.
<!-- This is a comment. Please fill in the required fields below. The comments provide instructions on how to do so. Note: You do not need to remove comments. --> ## Basic information - TDE version: R14.0.9 - Distribution: Ubuntu 20.04.2 - Hardware: amd64 <!-- Use SL/* labels to set the severity level. Please do not set a milestone. --> 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 1. Go to system:/media in konqueror 2. Drag the system HDD (fixed disk) to the desktop 3. In the pop-up menu that appears select Link Here 4. Right click on the new link and select Properties from the menu 5. Click on the icon in the Properties dialog to bring up the icon selector 6. It will freeze at this point.
Owner

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.

Hi MrKsoft,<br/> 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.
Ghost commented 3 years ago
Poster

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.

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.
Owner

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.

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.
Owner

This problem is caused by non conforning SVG files where largeArc and sweep flags are not correctly separated from other fields by separators.

This problem is caused by non conforning SVG files where largeArc and sweep flags are not correctly separated from other fields by separators.
Owner

Fixed in the above commit.

If anyone runs into this problem with other svg icons, please upload them and reopen the issue report.

Fixed in the above commit. If anyone runs into this problem with other svg icons, please upload them and reopen the issue report.
MicheleC closed this issue 3 years ago
MicheleC added this to the R14.0.11 release milestone 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tde#46
Loading…
There is no content yet.