Search Issue Tracker
Fixed in 2018.3.X
Fixed in 2018.1.X, 2018.2.X
Votes
0
Found in
5.6.1f1
Issue ID
1043225
Regression
No
[IL2CPP] Build fails with 'System.String CthData.Range::StringFormInt(System.Int32)' - Attempting to constrain an invalid type
Reproduction steps:
1. Open the attached project.
2. Go to "Build Settings > iOS > Player Settings > Other Settings > Configuration"
2.1. Toggle the "Allow 'unsafe' code" checkbox.
3. Build to iOS.
- Build fails.
Notes:
- Full error messages attached in the edit below.
- Disabling code stripping doesn't solve the issue.
- Pay attention to "Assets/CthData/NotifyData.cs" file:
= The issue can be worked around by changing:
...
Int16* i = (Int16*)&data;
string str =(*i).ToString();
i++;
return (*i).ToString() + "-" + str;
...
to
...
Int16* i = (Int16*)&data;
int a = *i;
string str = a.ToString();
i++;
a = *i;
return a.ToString() + "-" + str;
...
Reproduced with:
2018.3.0a1, 2018.2.0b6, 2018.1.2f1, 2017.4.4f1, 2017.1.4f1, 5.6.6f2
IL2CPP
Not reproducible with:
Mono
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash with multiple stack traces when playing video on a render texture with low-end graphics devices
- Circle handle of the Game view scale slider bar disappears when the scale is set to 1x
- Asset Bundles non-deterministic behavior with CRCs and hash when a video has Transcoding enabled and Sprite Atlas has an override option enabled
- [Quality Hackweek] Errors "InvalidOperationException: EnsureRunningOnMainThread can only be called from the main thread" and "NullReferenceException" shown when switching build platforms with Muse Texture package installed
- "Importer(DefaultImporter) generated inconsistent result for asset" warnings are thrown when reimporting the "URP" texture
Add comment