Windows App Certification Kit hangs
Asked Answered
I

2

6

I have developed windows 10 App and uploaded that to windows store. However, I wanted to apply Windows Certification App Kit. The testing hangs during these two stages;

Direct3D trim after suspend In progress... UTF-8 file encoding In progress...

I don't use any of those features in my app, but I don't understand why it should hang during process?

Thank you!

Ingrain answered 14/12, 2015 at 9:5 Comment(5)
Same for me. I couldn't even cancel the test :-(Lenity
I found solution for it. While running the test, simply un-check those tests which you haven't used in your desktop.Ingrain
Yes, I simply disable the 3D test as a workaround but sometimes I forget... :-( It would be better to have a solution instead... but at least it's working.Lenity
Same for me. "UTF-8 file encoding and" "Direct3D trim after suspend" hang and it is not possible to cancel the test. The only solution is to restart Visual Studio which is really annoyingSinciput
@ARH, did you find a solution for it?Sinciput
L
2

I ran into this exact same issue:

"Direct3D trim after suspend In progress... UTF-8 file encoding In progress..."

Problem was that I didn't try to run the Release Version locally first. It didn't run because I used preprocessor directives like so:

public static LicenseInformation licenseInformation = null;

...

#if DEBUG
        ...
        ...
        licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
        licenseInformation = CurrentApp.LicenseInformation;
#endif

"CurrentApp" did cause an exception.. I use code like this now:

#if DEBUG
        ...
        ...
        licenseInformation = CurrentAppSimulator.LicenseInformation;
#else
        try
        {
            licenseInformation = CurrentApp.LicenseInformation;
        }
        catch (Exception)
        {
        } 
#endif

And when working with the licenseInformation somewhere I check if it is not null before I use it...

I also found some other issues (warnings) in my code by using "Run Code Analysis on Solution"..

So in my case it was a problem with my code.

Lonesome answered 7/3, 2016 at 16:26 Comment(0)
B
0

WACK "Hangs" because it is waiting for the app to start.The problem occurs if you use packages that internally use native code. An example is SQLite (Written in C++).

SQLite for Universal Windows Platform requires this Directive to be included in Properties/Default.rd.xml. Otherwise the external code will throw exceptions when your app is run in native mode (Release build in Visual Studio).

<Type Name="System.Collections.ArrayList" Dynamic="Required All" />

For details about this directive and EntityFramework.Sqlite (EF7), see: https://docs.efproject.net/en/latest/platforms/uwp/getting-started.html

Blackpool answered 11/5, 2016 at 18:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.