Whenever I try to Reimport one of my audio files, the AudioImporter crashes and I’m stuck with a nearly completed status bar in the Asset Progress window. I have to force quit Unity and restart it. When I do, I get a message about how the audio file was skipped for import because it crashed the importer the previous time. The only workaround I’ve found is to remove it from the Project and then add it back, but this is a poor solution because references to the asset get nulled out when it is removed from the Project, which involves lots of hooking things back up.
Anyone else having this problem or know of a better solution?
same problem here, and I have heard others say the same. this seems new with 3.4. submit a bug report.
oh and for now i just find my audio files by name to avoid having to re-link them every time. it is still a pain and takes forever to convert, but less so.
Went to write a bug and then thought of something to investigate. It turns out that what is causing the crash is my calling AssetDatabase.SaveAssets() in my OnPostprocessAudio script. Basically, for every audio file that is imported into the project, I create an extra data file. So if the audio is not new, then an extra data file already exists and I just update that existing asset. The documentation for the AssetDatabase is not great and based on what I was doing and the function name, it seemed like I probably needed to call SaveAssets after modifying an existing asset, but apparently that is not the case.