Problem with setGlobalScaleFactor on Windows

Setting this to a value greater than 1.5 causes crash:

Adding the following lines to the bottom of the JuceDemoPluginAudioProcessorEditor constructor causes the issue:

Desktop& desktop = Desktop::getInstance();
desktop.setGlobalScaleFactor( 3 );

Tried the same changes on OSX and it’s fine (although not needed there)

Cheers

Hi, bumping this as there still seems to be no fix for it…

When reporting a crash, please always post a stack trace!

Apologies…

KernelBase.dll!00007ffc91a9cd4a()	Unknown
KernelBase.dll!00007ffc91a9ca95()	Unknown
avcuf64.dll!0000000052afce90()	Unknown
[External Code]	
tiptsf.dll!00007ffc777ba9f0()	Unknown
tiptsf.dll!00007ffc777ba7b8()	Unknown
[External Code]	

MIDISynth-TB3.dll!JuceVSTWrapper::resizeHostWindow(int newWidth, int newHeight) Line 1524 C++
MIDISynth-TB3.dll!JuceVSTWrapper::EditorCompWrapper::childBoundsChanged(juce::Component * child) Line 1624 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessages(bool wasMoved, bool wasResized) Line 1210 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessagesIfPending() Line 1175 C++
MIDISynth-TB3.dll!juce::Component::setBounds(int x, int y, int w, int h) Line 1161 C++
MIDISynth-TB3.dll!juce::Component::setBounds(const juce::Rectangle & r) Line 1238 C++
MIDISynth-TB3.dll!JuceVSTWrapper::EditorCompWrapper::resized() Line 1599 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessages(bool wasMoved, bool wasResized) Line 1193 C++
MIDISynth-TB3.dll!juce::ComponentPeer::handleMovedOrResized() Line 330 C++
MIDISynth-TB3.dll!juce::HWNDComponentPeer::handlePositionChanged() Line 2277 C++
MIDISynth-TB3.dll!juce::HWNDComponentPeer::peerWindowProc(HWND__ * h, unsigned int message, unsigned __int64 wParam, int64 lParam) Line 2507 C++
MIDISynth-TB3.dll!juce::HWNDComponentPeer::windowProc(HWND
* h, unsigned int message, unsigned __int64 wParam, __int64 lParam) Line 2401 C++
[External Code]
MIDISynth-TB3.dll!JuceVSTWrapper::resizeHostWindow(int newWidth, int newHeight) Line 1524 C++
MIDISynth-TB3.dll!JuceVSTWrapper::EditorCompWrapper::childBoundsChanged(juce::Component * child) Line 1624 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessages(bool wasMoved, bool wasResized) Line 1210 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessagesIfPending() Line 1175 C++
MIDISynth-TB3.dll!juce::Component::setBounds(int x, int y, int w, int h) Line 1161 C++
MIDISynth-TB3.dll!juce::Component::setBounds(const juce::Rectangle & r) Line 1238 C++
MIDISynth-TB3.dll!JuceVSTWrapper::EditorCompWrapper::resized() Line 1599 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessages(bool wasMoved, bool wasResized) Line 1193 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessagesIfPending() Line 1175 C++
MIDISynth-TB3.dll!juce::Component::setBounds(int x, int y, int w, int h) Line 1161 C++
MIDISynth-TB3.dll!juce::Component::setSize(int w, int h) Line 1218 C++


MIDISynth-TB3.dll!JuceVSTWrapper::EditorCompWrapper::childBoundsChanged(juce::Component * child) Line 1624 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessages(bool wasMoved, bool wasResized) Line 1210 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessagesIfPending() Line 1175 C++
MIDISynth-TB3.dll!juce::Component::setBounds(int x, int y, int w, int h) Line 1161 C++
MIDISynth-TB3.dll!juce::Component::setBounds(const juce::Rectangle & r) Line 1238 C++
MIDISynth-TB3.dll!JuceVSTWrapper::EditorCompWrapper::resized() Line 1599 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessages(bool wasMoved, bool wasResized) Line 1193 C++
MIDISynth-TB3.dll!juce::Component::sendMovedResizedMessagesIfPending() Line 1175 C++
MIDISynth-TB3.dll!juce::Component::setBounds(int x, int y, int w, int h) Line 1161 C++
MIDISynth-TB3.dll!juce::Component::setSize(int w, int h) Line 1218 C++
The maximum number of stack frames supported by Visual Studio has been exceeded.

Not sure if I replied with this to you or me… :slight_smile:)

any luck in reproducing this issue?

I can’t seem to reproduce this. Are you on the develop branch?

Hi, thanks for looking into this. No, I’m on the code installed by the current installer…

Can you try switching to develop and pulling the latest fixes?

ok, will give that a go - will get back shortly.

Hi, had quite a play with the develop branch and no crashes so the problem seems to have been fixed there.

Cheers!

We will be merging the develop branch to master soon again - after we sort out some remaining bugs.

how often and the branches typically merged, or is there no set process?

When we feel that develop is currently stable enough and well tested. Usually about once a month.