Search Issue Tracker

Fixed in 2022.1.X

Fix In Review for 2020.3.X

Fixed in 2021.1.X, 2021.2.X

Planned for 2019.4.X

Votes

0

Found in

2019.4.26f1

2022.1.0a4

Issue ID

1354411

Regression

Yes

Double slash at the end of the "Assets" folder path crashes editor when invoked

Asset Import Pipeline

-

Steps:
1. Open attached project and click on "Test/Run" menu item
==> Editor crashes after invoking AssetDatabase.ImportAsset("Assets\\");

Regression:
Before V2 the error message was thrown:
CreateAsset: Cannot create Assets Folder!
UnityEditor.AssetDatabase:ImportAsset(String)

After enabling V2 in Version 2019.4.26f1, two assertions are thrown:
Assertion failed on expression: 'type != SubFilterType::Exact'
Assertion failed on expression: '!subFilter.dbPath.empty() || subFilter.type != SubFilterType::Exact'

Version 2020.3.1f1 crashes and till the latest trunk.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.