AU Validation crashing

The plug-in is working fine in AU lab, Ableton live and others, however Logic Pro Doesn’t recognise as it cannot pass the AU Validation check. It’s seems to be failing at
1 Channel Test: , what could this be?

[code]--------------------------------------------------
TESTING OPEN TIMES:
COLD:
Time to open AudioUnit: 264.577ms
WARM:
Time to open AudioUnit: 0.195ms

    • PASS

VERIFYING DEFAULT SCOPE FORMATS:
Input Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz, ‘lpcm’ (0x0000002B) 32-bit big-endian float, deinterleaved

Output Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz, ‘lpcm’ (0x0000002B) 32-bit big-endian float, deinterleaved

    • PASS

VERIFYING REQUIRED PROPERTIES:
VERIFYING PROPERTY: Sample Rate
PASS
VERIFYING PROPERTY: Stream Format
PASS
VERIFYING PROPERTY: Maximum Frames Per Slice
PASS
VERIFYING PROPERTY: Last Render Error
PASS

    • PASS

VERIFYING RECOMMENDED PROPERTIES:
VERIFYING PROPERTY: Latency
PASS
VERIFYING PROPERTY: Tail Time
PASS
VERIFYING PROPERTY: Bypass Effect
PASS

    • PASS

VERIFYING OPTIONAL PROPERTIES:
VERIFYING PROPERTY Supported Number of Channels
PASS
VERIFYING PROPERTY Host Callbacks
PASS

    • PASS

VERIFYING SPECIAL PROPERTIES:

VERIFYING CUSTOM UI
Carbon View Components Available: 1
Component ‘auvw’ - ‘Bdss’ - 'TruG’
PASS

Cocoa Views Available: 0

VERIFYING CLASS INFO
PASS

TESTING HOST CALLBACKS
PASS

    • PASS

PUBLISHED PARAMETER INFO:

# # 9 Global Scope Parameters:

    • PASS

FORMAT TESTS:

Input/Output Channel Handling:
1-1 1-2 1-4 1-5 2-2 2-4 2-5 4-4 4-5 5-5 5-2 6-6 8-8
X X X
WARNING: Can Initialize Unit to un-supported num channels:InputChan:1, OutputChan:4
WARNING: Can Initialize Unit to un-supported num channels:InputChan:1, OutputChan:5
WARNING: Can Initialize Unit to un-supported num channels:InputChan:2, OutputChan:4
WARNING: Can Initialize Unit to un-supported num channels:InputChan:2, OutputChan:5
WARNING: Can Initialize Unit to un-supported num channels:InputChan:4, OutputChan:4
WARNING: Can Initialize Unit to un-supported num channels:InputChan:4, OutputChan:5
WARNING: Can Initialize Unit to un-supported num channels:InputChan:5, OutputChan:5
WARNING: Can Initialize Unit to un-supported num channels:InputChan:5, OutputChan:2
WARNING: Can Initialize Unit to un-supported num channels:InputChan:6, OutputChan:6
WARNING: Can Initialize Unit to un-supported num channels:InputChan:8, OutputChan:8

    • PASS

RENDER TESTS:
Input Format: AudioStreamBasicDescription: 2 ch, 44100 Hz, ‘lpcm’ (0x0000002B) 32-bit big-endian float, deinterleaved
Output Format: AudioStreamBasicDescription: 2 ch, 44100 Hz, ‘lpcm’ (0x0000002B) 32-bit big-endian float, deinterleaved
Render Test at 512 frames
Slicing Render Test at 64 frames
PASS

Set Sample Rate:
Input Format: AudioStreamBasicDescription: 2 ch, 48000 Hz, ‘lpcm’ (0x0000002B) 32-bit big-endian float, deinterleaved
Output Format: AudioStreamBasicDescription: 2 ch, 48000 Hz, ‘lpcm’ (0x0000002B) 32-bit big-endian float, deinterleaved
Render Test at 64
Render Test at 128
Render Test at 137
Render Test at 4096
Render Test at 512
PASS

1 Channel Test:
In and Out Format: AudioStreamBasicDescription: 1 ch, 48000 Hz, ‘lpcm’ (0x0000002B) 32-bit big-endian float, deinterleaved
Render Test at 512 frames

AU VALIDATION CRASHED[/code]

Looks like your code is crashing when it’s given just one channel to process. You’re probably assuming there’ll be two channels, and not checking the actual number.

Thanks Jules that was the problem, didn’t check the number of channels.