Skip to content

ShellCommandUnresponsiveException while DumpScreenAsync #55

@RAREGUN

Description

@RAREGUN

Describe the bug

Getting this exception only while this screen (Look screenshots section).
I think that the timer is to blame for everything, because when it expires, the exception stops appearing.
The worst part of all this is that after getting this exception at least once, it most likely breaks something and I get this exception regardless of whether I closed this page with a timer or not.

I'm using virtual machine with android 9.
App on screenshot: Official Telegram mobile client

System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.LoadXml(String xml)
   at AdvancedSharpAdbClient.AdbClient.DumpScreenAsync(DeviceData device, CancellationToken cancellationToken)

Steps to reproduce the bug

Try to DumpScreenAsync while "Enter code" page.
This is very complicated to reproduce this bug by yourself, it's costs 0.34$ each time :)
But I'm all yours.

Expected behavior

No response

Screenshots

image

NuGet package version

2.5.5

.NET Platform

.NET 7

Platform type

Windows

System version

Windows 11 Pro 22H2 22621.1413

IDE

Other

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions