Theme Crashes Audacity

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
torridgristle
Posts: 17
Joined: Tue Jan 23, 2018 3:49 am
Operating System: Windows 7

Theme Crashes Audacity

Post by torridgristle » Tue Jan 23, 2018 11:10 pm

Windows 7 64-bit, Audacity 2.2.1

I was working on a modification of Donuts Theme, which does work, but when I swap it out for my own version Audacity crashes, and only once did the log have any info and it said "Warning: iCCP: known incorrect sRGB profile", the rest didn't even include Audacity's version number. I've tried with sRGB, without sRGB, resaved with Irfanview, resaved with Irfanview using PNGCrush, nothing caused it to stop crashing with this PNG. I'll attach the final PNGCrush'd version, I didn't think to hold on to the previous versions though all crash about the same with an ACCESS_VIOLATION at address 6e6ff69b

Checked the Theming HowTo and didn't see anything that would explain this.
Attachments
Audacity Crash Reports.zip
(375.76 KiB) Downloaded 27 times
Donut-Edit.png
This was correctly named ImageCache.png earlier, I just swapped it out with the original Donuts Theme ImageCache.png earlier so I could actually open Audacity.
Donut-Edit.png (35.22 KiB) Viewed 434 times

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Theme Crashes Audacity

Post by steve » Wed Jan 24, 2018 12:24 pm

Your image does not have the "alpha" channel.

The Audacity documentation (https://wiki.audacityteam.org/wiki/Theming_HowTo) says:
Transparency
Use GIMP . Some other image editors do not support Alpha, and for button images you need it.
So I'd suggest that you try using Gimp to edit the image.
Let us know how you get on.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

torridgristle
Posts: 17
Joined: Tue Jan 23, 2018 3:49 am
Operating System: Windows 7

Re: Theme Crashes Audacity

Post by torridgristle » Wed Jan 24, 2018 6:33 pm

Yeah, that turned out to be the general problem. For some reason the version I had saved, before resaving with IrfanView, must not have had the alpha. I tried just adding an alpha channel with everything opaque except for a transparent 2px square off to the side and it still crashed, but then I tried again with the correct translucency on the buttons and it worked fine so it specifically needs the buttons to have a transparent value somewhere, not just the presence of an alpha channel, or else it crashes on start up without any useful information in the log.

I think that the wiki needs to be updated to be more specific about it needing to actually be transparent rather than just having an alpha channel, and that it'll crash if it doesn't. And also of course a message for the log when it crashes about the buttons needing to have a transparent value.

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Theme Crashes Audacity

Post by steve » Wed Jan 24, 2018 7:38 pm

Themes are a new feature and still under active development. The developers are aware that making themes is currently harder than it should be, and we are likely to see incremental improvements with new Audacity releases. The documentation crew aim to keep the manual up to date with the current release, but while things are still evolving it is not possible to cover in detail all the ways of doing it wrong.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply