Search Issue Tracker

Fixed

Fixed in 2021.3.36f1, 2022.3.20f1, 2023.2.10f1, 2023.3.0b7, 7000.0.0a1

Votes

0

Found in

2021.3.30f1

2022.3.8f1

2023.1.10f1

2023.2.0b6

2023.3.0a5

Issue ID

UUM-48816

Regression

No

[Mono] [Android] Errors in log when built with AppContext.BaseDirectory

--

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Install Android LogCat in Window > Package Manager > Unity Registry
4. Open the Android LogCat window by going to Window > Analysis > Android LogCat
5. Build and Run
6. Search for “The specified path is not of a legal form“ in Android LogCat

Expected result: No error is found
Actual result: The error “ArgumentException: The specified path is not of a legal form (empty)“ can be seen

Reproducible with: 2021.3.30f1, 2022.3.8f1, 2023.1.10f1, 2023.2.0b6, 2023.3.0a5

Testing environment: Windows 10 Enterprise 21H2

Reproducible on:
VLNQA00325, Samsung Galaxy Note10 (SM-N970F), Android 12, CPU: Exynos 9 (9825), GPU: Mali-G76
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
VLNQA00231, Samsung Galaxy A5(2017) (SM-A520F), Android 8.0.0, CPU: Exynos 7 Octa 7880, GPU: Mali-T830
VLNQA00231, Huawei HUAWEI Mate 20 Pro (LYA-L29), Android 9, CPU: HiSilicon Kirin 980, GPU: Mali-G76

Not reproducible on: No other environment tested

Note:
- Full error message can be found in LogCat.txt
- Only reproducible with Mono Backend
- Uncomment the block in NewBehaviourScript.cs under "ENABLE_MONO", Build and Run and you will see no errors in the log

Comments (1)

  1. bdovaz

    Oct 17, 2023 06:27

    Also affects AppDomain.BaseDirectory:

    ArgumentException: The specified path is not of a legal form (empty).
    10-17 08:13:43.545 27201 27223 E Unity : at System.IO.Path.InsecureGetFullPath (System.String path) [0x00025] in <090b30d88ac24aada464a414e0810bf4>:0
    10-17 08:13:43.545 27201 27223 E Unity : at System.IO.Path.GetFullPath (System.String path) [0x00000] in <090b30d88ac24aada464a414e0810bf4>:0
    10-17 08:13:43.545 27201 27223 E Unity : at System.AppDomainSetup.GetAppBase (System.String appBase) [0x00038] in <090b30d88ac24aada464a414e0810bf4>:0
    10-17 08:13:43.545 27201 27223 E Unity : at System.AppDomainSetup.get_ApplicationBase () [0x00000] in <090b30d88ac24aada464a414e0810bf4>:0
    10-17 08:13:43.545 27201 27223 E Unity : at System.AppDomain.get_BaseDirectory () [0x00006] in <090b30d88ac24aada464a414e0810bf4>:0
    10-17 08:13:43.545 27201 27223 E Unity : at (wrapper remoting-invoke-with-check) System.AppDomain.get_BaseDirectory()

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.