Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Editor crashes #11

@JohanForngren

Description

@JohanForngren

I'm sometimes getting this error, which crashes the component editor, making it unavailable.

IndexOutOfRangeException: Index was outside the bounds of the array.
GoogleCloudStreamingSpeechToText.StreamingRecognizerEditor.OnInspectorGUI () (at C:/Users/user/project/Library/PackageCache/[email protected]/Editor/StreamingRecognizerEditor.cs:34)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <98effce1f3cf489fb7ce6830410f351c>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

One quick fix for me was to comment away lines 34-35 in StreamingRecognizerEditor.cs. When unity reloads the script it works again, even though the lines are added back in.

Windows 10 unity 2020.3.18f1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions