Hi. I updated to latest tip, and now my audio plugin crashes at startup. Backtrace:
[code]Renoise LOG> VstPlugs: Trying to instantiate /home/johannes/bin/vst/rptr001-debug.so
[New Thread 0x1539b70 (LWP 14405)]
JUCE v1.51.12
Renoise LOG> VstPlugs: Analyzing VST plugin ‘tumbetoene: rptr001-debug’, Unique ID:1380996178, Version:2400
Program received signal SIGSEGV, Segmentation fault.
0x00ae8cc8 in readCallback (png=0xc9a6e08, data=0xc9756f8 “”, length=8)
at …/…/src/gui/graphics/imaging/image_file_formats/juce_PNGLoader.cpp:118
118 static_cast<InputStream*> (png->io_ptr)->read (data, (int) length);
Current language: auto
The current source language is “auto; currently c++”.
(gdb) bt
#0 0x00ae8cc8 in readCallback (png=0xc9a6e08, data=0xc9756f8 “”, length=8)
at …/…/src/gui/graphics/imaging/image_file_formats/juce_PNGLoader.cpp:118
#1 0x09317505 in png_read_info ()
#2 0x00ae8e0f in juce::juce_loadPNGImageFromStream (in=…) at …/…/src/gui/graphics/imaging/image_file_formats/juce_PNGLoader.cpp:163
#3 0x00ac8b87 in juce::PNGImageFormat::decodeImage (this=0xc80cc0, in=…) at …/…/src/gui/graphics/imaging/juce_ImageFileFormat.cpp:61
#4 0x00ac8f8b in juce::ImageFileFormat::loadFrom (input=…) at …/…/src/gui/graphics/imaging/juce_ImageFileFormat.cpp:189
#5 0x00ac9056 in juce::ImageFileFormat::loadFrom (rawData=0xc07b40, numBytes=1762)
at …/…/src/gui/graphics/imaging/juce_ImageFileFormat.cpp:212
#6 0x00ac8331 in juce::ImageCache::getFromMemory (imageData=0xc07b40, dataSize=1762)
at …/…/src/gui/graphics/imaging/juce_ImageCache.cpp:217
#7 0x00a82101 in rptrEditor (this=0xc982960, ownerFilter=0xc9a55d0) at /home/johannes/code/rptr/src/rptrEditor.cpp:56
#8 0x00a8515b in rptrFilter::createEditor (this=0xc9a55d0) at /home/johannes/code/rptr/src/rptrFilter.cpp:120
#9 0x00aa88dd in juce::AudioProcessor::createEditorIfNeeded (this=0xc9a55d0) at …/…/src/audio/processors/juce_AudioProcessor.cpp:232
#10 0x00a8b73a in JuceVSTWrapper::open (this=0xc9732a0) at /home/johannes/code/rptr/vst/juce_VST_Wrapper.cpp:456
#11 0x00a88906 in AudioEffect::dispatcher (this=0xc9732a0, opcode=0, index=0, value=0, ptr=0x0, opt=0)
at …/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.cpp:155
#12 0x00a86e42 in AudioEffectX::dispatcher (this=0xc9732a0, opcode=0, index=0, value=0, ptr=0x0, opt=0)
at …/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:297
#13 0x00a8dd75 in JuceVSTWrapper::dispatcher (this=0xc9732a0, opCode=0, index=0, value=0, ptr=0x0, opt=0)
at /home/johannes/code/rptr/vst/juce_VST_Wrapper.cpp:1316
#14 0x00a883ca in AudioEffect::dispatchEffectClass (e=0xc9732c0, opCode=0, index=0, value=0, ptr=0x0, opt=0)
at …/vstsdk2.4/public.sdk/source/vst2.x/audioeffect.cpp:32
#15 0x08d72cc7 in _start ()[/code]
I traced it back to commit 49320b25d2d3dcb705de513d8f2f29dcade63eed: “iPhone on-screen keyboard support, when a TextEditor or CodeEditor is focused.” Any version before this commit doesn’t crash. PNGHelpers::readCallback was changed in this commit. This change seems to cause the crash, but only in a VST build. The same program compiled as a standalone app runs fine.
Running on Ubuntu 9.10.

