Skip to content

[Windows] Instant crash on ARM64 (possibly incompatible DLL) #127

@jbgski

Description

@jbgski

This is a breaking issue, as it affects all Windows apps with this library right on launch.

Tested configurations

I used a UWP (now legacy) project in React Native Windows and tested it on a native ARM machine (Parallels)

  • React Native v. 0.75 - debug/release mode - instant crash on ARM64
  • React Native v. 0.76 - debug/release mode - instant crash
  • react-native-static-server on v. 0.17.0

More details

Any app using react-native-windows and this library is crashing instantly right after opening on ARM, even if no code related to the server is executed.

After doing a bit of debugging, I found that the crash originates from the LoadLighttpdDll function in Server.cpp. After commenting out the terminate function, Visual Studio reports that the lighttpd1.4 DLL is “not a proper Win32 binary” (or something similar, I don't use VS in English).

These errors do not happen on x64 (haven't tested x86), so I assume the root cause is the .DLL binary not having ARM support, removing the library from my project (or even just commenting out loading the DLLs and the terminate function) makes the project work correctly

I assume the "simplest" fix would be to recompile lighttpd1.4 for ARM64, although I'm not entirely sure how complicated that actually is.

Let me know if you need additional information or steps! Thanks for maintaining this library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    On HoldCannot be resolved at the moment.P1High priority issue.Windows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions