Skip to content

Crash at startup #479

Closed
Closed

Description

@DrFeelNice

Win 7 Pro 64:

System.BadImageFormatException

Activity

  1. DrFeelNice commented on Oct 11, 2026

    @DrFeelNice
    Author

    DriverStore Explorer v1.0.36

  2. indep-arg commented on Oct 11, 2026

    @indep-arg
    Contributor

    Could you share a bit more so we can confirm the cause?

    1. Open Event Viewer → Windows Logs → Application, find the ".NET Runtime" error (Event ID 1026) from when Rapr.exe crashed, and paste its full text here.
    2. Is there a Rapr.log next to Rapr.exe? If so, the last lines would help too.
    3. Do you have the Windows ADK/AIK or any other DISM tools installed? And is there a DismApi.dll in the same folder as Rapr.exe, or in a folder on your PATH?

    My guess is that the app finds a DismApi.dll for the wrong architecture while checking whether DISM is available. Windows 7 doesn't have one in System32, so it ends up looking in other folders.

  3. DrFeelNice commented on Oct 11, 2026

    @DrFeelNice
    Author

    Hi,
    Rapr.log shows only Rapr started.
    No Dism.dll installed...

  4. DrFeelNice commented on Oct 11, 2026

    @DrFeelNice
    Author

    Signature du problème :
    Nom d’événement de problème: CLR20r3
    Signature du problème 01: Rapr.exe
    Signature du problème 02: 1.0.36.0
    Signature du problème 03: f24f3995
    Signature du problème 04: Rapr
    Signature du problème 05: 1.0.36.0
    Signature du problème 06: f24f3995
    Signature du problème 07: 19a
    Signature du problème 08: 0
    Signature du problème 09: System.BadImageFormatException
    Version du système: 6.1.7601.2.1.0.256.48
    Identificateur de paramètres régionaux: 1036
    Information supplémentaire n° 1: 17f2
    Information supplémentaire n° 2: 17f2f1937dbbab80897badd3a66734a9
    Information supplémentaire n° 3: 3057
    Information supplémentaire n° 4: 305716931caa9c3bbcba0045d9f3d3b9

  5. indep-arg commented on Oct 11, 2026

    @indep-arg
    Contributor

    Thanks, that helps a lot. The crash signature points to the exact spot: DismUtil's static constructor, in the code that checks whether DISM is available (Marshal.Prelink on DismApi.dll). On your system a DismApi.dll is found but can't be loaded into the 64-bit process, and that check doesn't handle BadImageFormatException, so the app crashes instead of falling back to PnpUtil.

    I have a fix for this. Give me a few min.

  6. indep-arg commented on Oct 11, 2026

    @indep-arg
    Contributor

    The fix is in #480. If you'd like to try it before it's released, here's the CI build for that PR:

    https://ci.appveyor.com/api/buildjobs/rrhvy5v6o1tu9kt9/artifacts/Rapr/bin/DriverStoreExplorer.v1.0.63-nnaexolp.zip

    Extract it to a new folder and run Rapr.exe. It's an unsigned test build, so Windows may show a SmartScreen warning ("More info" → "Run anyway"). It should start normally now. Could you let me know if it works?

  7. DrFeelNice commented on Oct 11, 2026

    @DrFeelNice
    Author

    Thanks a lot, you are the best !
    That works fine...

  8. indep-arg commented on Oct 11, 2026

    @indep-arg
    Contributor

    I've dealt with those bugs in the past. Nice!

  9. DrFeelNice commented on Oct 11, 2026

    @DrFeelNice
    Author

    Curiously, only 3 of my 5 PCs running Win 7 Pro 64 were affected; all are working correctly now.

  10. indep-arg commented on Oct 11, 2026

    @indep-arg
    Contributor

    Yeah, whether it crashes depends on which DismApi.dll Windows 7 finds on each machine (it varies with installed updates and PATH), so some PCs were hit and others weren't. win 8+ not have this problem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions