Search Issue Tracker
Fixed
Fixed in 4.2.8, 5.0.6, 5.1.0-pre.4
Votes
0
Found in [Package]
4.2.7
5.0.1
5.1.0-pre.3
Issue ID
ARFB-238
Regression
No
mutableLibrary.count returns zero when adding an image to the library with ScheduleAddImageWithValidationJob
How to reproduce:
1. Open the user’s attached “IN-23022_ARImageTrackingDynamic.zip“ project
2. Build and Run for Android
3. Go to Windows > Android Logcat and connect the device
4. Observe output messages
Expected result: “one has been loaded in to Library, mutable library size [1]“ message is logged
Actual result: “one has been loaded in to Library, mutable library size [0]“ message is logged
Reproducible with: 4.2.7 (2020.3.44f1, 2021.3.17f1), 5.0.3 (2021.3.17f1, 2022.2.3f1, 2023.1.0a26)
Reproducible with these devices:
Google Pixel 7 (Pixel 7), Android 13, CPU: Google Tensor G2, GPU: Mali-G710
Samsung Galaxy Z Flip3 5G (SM-F711B), Android 12, CPU: Snapdragon 888, GPU: Adreno (TM) 660
Samsung Galaxy S10+ (SM-G975F), Android 10, CPU: NOT FOUND, GPU: Mali-G76
Not reproducible with these devices:
VLNQA00494 - iPhone 14 Pro Max, 16.0.3 iOS
VLNQA00358 - iPhone 12, 14.1 iOS
VLNQA00392 - iPad (9th generation), 15.0 iOS
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor Perforce login fails when Perforce shows a license expiry warning
- Assertion failed error in HDRP builds when enabling STP via script
- FBX Resamples Curves incorrectly when importing FBX files
- ProBuilder GameObject Faces disappear when increasing the Sides Count value
- FileUtil.CopyFileOrDirectory throws IOException when destination parent folder does not exist
Resolution Note (fix version 5.1.0-pre.4):
The documentation has been updated to reflect potential failure points when running the code.
If the function is ran on the first frame of runtime, the session is null and the image cannot be added to the library.
Refer to this docs page when the documentation is updated https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@5.1/manual/features/image-tracking.html#add-new-reference-images-at-runtime
Resolution Note (fix version 5.0.6):
Porting documentation changes to 5.0.
Method will fail if called on the first frame of runtime, since ARSession is currently null.
Resolution Note (fix version 4.2.8):
Porting changes to 4.2.
Documentation changes highlighting the proper usage of the function, and how it can fail when calling the first frame of runtime, due to ARSession state being null.