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

AccessViolationException Occurs While Running DiffGenTool on win-x64 #17

Open
Youngwoong-Han-Qcells opened this issue Dec 17, 2024 · 0 comments

Comments

@Youngwoong-Han-Qcells
Copy link

Hello,

I am encountering an issue while running DiffGenTool from the Preview folder in the iot-hub-device-update-delta repository on a Windows 10 win-x64 environment. The tool crashes with a System.AccessViolationException error.

Steps to Reproduce
I executed the following command:

PS C:\Users\youngwoong.han\Downloads\Diffgen\win-x64> .\DiffGenTool.exe "C:\Users\youngwoong.han\Downloads\Diffgen\win-x64\adu-update-image-raspberrypi3-1.2.0.swu" "C:\Users\youngwoong.han\Downloads\Diffgen\win-x64\adu-update-image-raspberrypi3-20241211045834.swu" "C:\Users\youngwoong.han\Downloads\Diffgen\win-x64\delta-image.swu" "C:\Users\youngwoong.han\Downloads\Diffgen\win-x64\logs" "C:\Users\youngwoong.han\Downloads\Diffgen\win-x64\output"

Observed Behavior
The tool begins tokenizing the SWU files and then crashes with the following fatal error:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Partial Log Output:
[Info] ThreadId1 Loading tokens from ... [Info] ThreadId7 Testing if archive is format: CpioArchives.NewAsciiCpioArchive [Info] ThreadId1 Archive is of format: CpioArchives.NewAsciiCpioArchive ...

Environment
Operating System: Windows 10, version 10.0.22631
Architecture: win-x64
Tool Version: DiffGenTool (Preview folder)
SWU Files:
adu-update-image-raspberrypi3-1.2.0.swu
adu-update-image-raspberrypi3-20241211045834.swu

What I Have Tried
Ensured both SWU files are present and valid.
Ran the command with administrator privileges.
Verified that I am using a 64-bit environment.
Confirmed that no file path contains special characters.

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

No branches or pull requests

1 participant