microsoft / microsoft/WindowsAppSDK
Microsoft.WindowsAppSDK[1.7.250513003]Unable to use TextRecognizer, reporting 'catastrophic failure'(灾难性故障)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 4.7k
- Forks
- 471
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 28
Description
### Describe the bug
``` Csharp
if (TextRecognizer.GetReadyState() == AIFeatureReadyState.NotReady)
{
var loadResult= await TextRecognizer.EnsureReadyAsync();
if(loadResult.Status==AIFeatureReadyResultState.Failure)
{ throw new Exception(loadResult.Error.Message);}
}
```
loadResult.Status = AIFeatureReadyResultState.Failure
but loadResult.Error.Message is empty.
``` Csharp
_textRecognizer = await TextRecognizer.CreateAsync();
```
throw 灾难性故障
OS:windows11 home 24H2
OS version:26100.4652
CPU: Snapdragon(R) X Plus
I haven't opened the preview version. 1.7.250513003 is already the official version, and I believe it can be used on standard Windows.
### Steps to reproduce the bug
```
if (TextRecognizer.GetReadyState() == AIFeatureReadyState.NotReady)
{
var loadResult= await TextRecognizer.EnsureReadyAsync();
if(loadResult.Status==AIFeatureReadyResultState.Failure)
{ throw new Exception(loadResult.Error.Message);}
}
```
loadResult.Status = AIFeatureReadyResultState.Failure
but loadResult.Error.Message is empty.
```
_textRecognizer = await TextRecognizer.CreateAsync();
```
throw 灾难性故障
### Expected behavior
_No response_
### Screenshots
use windows-sdk-sample:
### NuGet package version
None
### Packaging type
_No response_
### Windows version
_No response_
### IDE
_No response_
### Additional context
_No response_
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the TextRecognizer.EnsureReadyAsync and TextRecognizer.CreateAsync calls on Windows 11 24H2 using the Windows SDK sample, on the reported Snapdragon X Plus environment. Compare the failure status, empty error message, and catastrophic failure with the expected sample behavior; done requires a confirmed cause and a documented fix or resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api, desktop
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100