Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivateStoreApp makes app crash #22

Open
stefdaems opened this issue Aug 24, 2015 · 4 comments
Open

ActivateStoreApp makes app crash #22

stefdaems opened this issue Aug 24, 2015 · 4 comments

Comments

@stefdaems
Copy link

Installed webdriver on WIN 10 tablet. Installed Twitter app on the device.

I open the twitter app myself several times, without any issue.
I started winappdriver and initiated via a second program to open twitter.
Shortly after twitter is opened, the twitter app crashes.

Error occurred while activating the store app: code = 255, STDOUT= [], STDERR = []

If now I want to start the twitter app myself via the menu it crashes over and over again.

@stefdaems
Copy link
Author

Error code = -532462766

@stefdaems
Copy link
Author

Hi,

It looks like the first activation after the install of an app succeeds on windows 10, but after the second time it fails. Could it be possible that the security rule protections on the app directory in Appdata becomes corrupted?

Kind regards
Stef

@stefdaems
Copy link
Author

015-08-31 14:03:17.720 [Verbose] WinAppDriver: Delete directory: C:\Users\nsetesting\AppData\Local\Packages\XXXX.XXXX_c5vekn1z7ww04\TempState
2015-08-31 14:03:17.720 [Information] WinAppDriver: Activate the store app; current working directory = [C:\Users\testing\Desktop\tools\WIN10 automated testing], AppUserModelID = [Telenet.Yelo_c5vekn1z7ww04!App].
2015-08-31 14:03:17.735 [Verbose] WinAppDriver: PID of ActivateStoreApp.exe = 3016.
2015-08-31 14:03:42.369 [Error] WinAppDriver: Error occurred.
WinAppDriver.WinAppDriverException: Error occurred while activating the store app; code = 255, STDOUT = [], STDERR = [
Onverwerkte uitzondering: System.Runtime.InteropServices.COMException: De app is niet gestart. (Uitzondering van HRESULT: 0x8027025B)
bij ApplicationActivationManager.ActivateApplication(String appUserModelId, String arguments, ActivateOptions options, UInt32& processId)
bij Program.Main(String[] args) in c:\WinAppDriver\winappdriver-master (1)\winappdriver-master\src\ActivateStoreApp\ActivateStoreApp.cs:regel 17
].
bij WinAppDriver.Modern.StoreApp.Activate() in c:\WinAppDriver\winappdriver-master (1)\winappdriver-master\src\WinAppDriver\Modern\StoreApp.cs:regel 144
bij WinAppDriver.Handlers.NewSessionHandler.Handle(Dictionary`2 urlParams, String body, ISession& session) in c:\WinAppDriver\winappdriver-master (1)\winappdriver-master\src\WinAppDriver\Handlers\NewSessionHandler.cs:regel 159
bij WinAppDriver.RequestManager.Handle(String method, String path, String body, ISession& session) in c:\WinAppDriver\winappdriver-master (1)\winappdriver-master\src\WinAppDriver\RequestManager.cs:regel 51
bij WinAppDriver.Server.HandleRequest(HttpListenerRequest request, HttpListenerResponse response) in c:\WinAppDriver\winappdriver-master (1)\winappdriver-master\src\WinAppDriver\Server.cs:regel 47
2015-08-31 14:03:42.416 [Verbose] WinAppDriver: Response (Status: BadRequest, ContentType: text/plain):
WinAppDriver.WinAppDriverException: Error occurred while activating the store app; code = 255, STDOUT = [], STDERR = [
Onverwerkte uitzondering: System.Runtime.InteropServices.COMException: De app is

logging I'm receiving on start of the app.

@wilcollins
Copy link

I am also seeing an error with the activate phase for modern apps in #12

2015-11-18 15:52:31.089 [Information] WinAppDriver: Activate the store app; current working directory = [C:\WINDOWS\SysWOW64], AppUserModelID = [a02b50fe-bb55-4be5-8bd9-6c2f93cef175_vr9ykqv283qqw!App].
2015-11-18 15:52:31.111 [Error] WinAppDriver: Error occurred.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at WinAppDriver.Modern.StoreApp.Activate() in z:\work\winappdriver\src\WinAppDriver\Modern\StoreApp.cs:line 128

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants