Skip to content

TASImage Issue with latest libafterimage #19412

@tmkowalewski

Description

@tmkowalewski

Check duplicate issues.

  • Checked for duplicates

Description

Upon trying to load images from ROOT's icon directory in a custom UI the following error appears:

Warning in TASImage::GetMask: No image

Buttons in a toolbar menu which had icons next to to them fail to populate, leaving the drop-down menu of the toolbar empty.

This seems to be another instance of #6985, as this occurs even on older versions of ROOT, but can be fixed by building them with the flag -Dbuiltin_afterimage=ON.

Reproducer

The was encountered by running the Cubix UI, found here:
https://ip2igamma.pages.in2p3.fr/cubix/userguide/

(The issue can be fixed by recompiling ROOT as mentioned above with no change to the cubix source code, leading me to believe this is a ROOT bug related to libafterimage and not cubix itself.)

Edit: The issue has been narrowed down to gifs not being fetched correctly. Even with giflib 5.2.2-2 (libgif package on Arch) the following occurs:

   ------------------------------------------------------------------
  | Welcome to ROOT 6.36.02                        https://root.cern |
  | (c) 1995-2025, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for linuxx8664gcc on Jul 19 2025, 04:20:59                 |
  | From tags/6-36-02@6-36-02                                        |
  | With c++ (GCC) 15.1.1 20250425                                   |
  | Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q'  |
   ------------------------------------------------------------------

root [0] gClient->GetPicture("GoBack.gif")
Fontconfig warning: using without calling FcInit()
Warning in <TASImage::GetMask>: No image
(const TGPicture *) 0x56236b566f20

The GetPicture() call succeeds on older versions of ROOT, but only when they were built with -Dbuiltin_afterimage=ON.

ROOT version

ROOT v6.36.02
Built for linuxx8664gcc on Jul 09 2025, 20:55:07
From tags/6-36-02@6-36-02
With c++ (GCC) 15.1.1 20250425
Binary directory: /usr/bin

Installation method

Official ROOT Arch Linux package via pacman

Operating system

Arch Linux

Additional context

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions