Weird laf issue
-
I got a new laptop recently and today I setup HISE on it for the first time and opened one of my projects. The project's UI doesn't show up properly. After investigating I found that it was due to my laf functions.
Basically
g.drawAlignedText
doesn't work butg.drawFittedText
does.To make it more weird the problem only happens with a release build. In a debug build it works just fine.
This doesn't happen on my main system or with any of my VMs.
The fact that it works in the debug build makes it hard to debug :p
-
Could it be a missing font issue?
-
@Dan-Korneff I don't think it would work at all if that was the cause
-
@d-healey can you make a minimal example?
Also you can gradually change the release build back to debug by incrementally changing the optimization levels and enable debug symbols, then recompile. This is a super annoying procedure but it gives you the information which optimization breaks things.
-
Here's the minimal snippet. I don't think it will be much use though since the only place I've had the issue is on this one laptop and it's running Debian :)
I'll try going through the optimization levels to see if I can narrow it down a bit. It's not a super critical problem for me because I rarely use the laptop and can work in the debug version. But I just like to solve a mystery.
HiseSnippet 854.3ocsU8+ZabCEWmSTo1aqrB8O.g+k4.tN1accCJikD63goIol4rxf8CEEcOeVy5jL5z0TynP+St+Gr8zoy9bZLooF1gw289p97d5idZr0HfrLikDU+xkK.RzWSmrT6l0eFWpIiFPhdD8bdlCrrfpSVtfmkAwjnn89Muhn56SJd93udBWw0BnREg7ZiT.mISktJsiO5kRkZHOFtTltg2O6nQBituQYxQ7rGsKYAWLmm.Wv8tUiRhdvowRmwNwwcPF5yIl3kSlYtVG7+0xL4UJvKziLASTPMo+LoJd7pZMiPh1ebUkuWnxeB8bYrbs9pNv2VXfUEwl8fnZ2Ej58E.onMfz9AH8X5DgUtvUYwimuhNRiaHS4XqdSnD7kT6o0n8MnGZWmT9bXnEEVGQqm2saaF92AunQCrcm4XukaYmj6bFcO1uvVEZB35aRWXznPqlk1aVEkhOcCuEV.q+yLBt5LiY9w53g.nZ4cuLzNYf6V1wj3cAe0wBIROOaXtV3jFcqlwV90WZRRTPHEMayltxXRal4p+9fF+Si5I9LGXMsBux5b8LoC7YFs5SywJYhFhuDdGVK39jqYQ7c3HrayZJvRvBwX0wN7P1.Cjo+NG6Zicdi5GdXHECkN2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