Skip to content

Incorrect progress on pulling large files #133

@Alex4SSB

Description

@Alex4SSB

Describe the bug

SyncProgressChangedEventArgs during pull of large files:

• For files where the size in bytes has the 32nd bit set 1, 2,329,488,011 bytes in this case, the progress is negative (from start to finish). See screenshot 1.

• For files where the size in bytes has the 33rd bit set 1, 5,079,805,952 bytes in this case, the progress surpasses 100 at some point. See screenshot 2.

Steps to reproduce the bug

  1. Connect a device
  2. Create a sync service
  3. Pull a large file (as specified) while providing SyncProgressChangedEventArgs callback

Expected behavior

The progress should always be between 0 and 100, as specified.
Also, the TotalBytesToReceive doesn't seem right.

Screenshots

Screenshot 1:
Image

Screenshot 2:
Image

NuGet package version

3.4.14 (later verified in 3.5.15)

.NET Platform

.NET 9

Platform type

Windows

System version

Windows 11 64bit.
The app is only compiled for x64.

IDE

Visual Studio 2026

More Context

Original Issue:
Alex4SSB/ADB-Explorer#290

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions