Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#1000 closed defect (fixed)

Could not parse stylesheet of object 0x291a87f5ce0

Reported by: Tom Goddard Owned by: Eric Pettersen
Priority: moderate Milestone:
Component: Core Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

I believe model panel changing the color in its color buttons is causing css stylesheet errors to be spewed to the log.

open 1a0m
rainbow

Could not parse stylesheet of object 0x291a87f5ce0

Closing model panel before the rainbow command avoids these messages. Some tools such as signal viewer which changes colors can cause hundreds of these stylesheet messages to be logged, interfering with VR because of the overhead of constantly refreshing the log.

Change History (4)

comment:1 by Tom Goddard, 8 years ago

It appears to be the line

self.setStyleSheet("background-image: url(%s);"

% os.path.join(this_dir, "icons", icon_file))

in core/ui/widgets/color_button.py that causes the log messages.

comment:2 by Eric Pettersen, 8 years ago

Resolution: fixed
Status: assignedclosed

Fixed by using pathname2url around the file name. Doesn't actually show the icon on Windows, but that may be a limitation of Windows buttons. The error is gone at least.

comment:3 by Eric Pettersen, 4 years ago

Testing whether Trac is working.

in reply to:  4 ; comment:4 by Eric Pettersen, 4 years ago

Testing change made via email
Note: See TracTickets for help on using tickets.