membraneframework / membrane_core

The core of the Membrane Framework, advanced multimedia processing framework
https://membrane.stream
Apache License 2.0
1.22k stars 35 forks source link

RPi4 running Nerves crashes trying to load NIFs compiled using Bundlex #784

Closed Noarkhh closed 1 month ago

Noarkhh commented 3 months ago

When trying to upload any app (cross-compiled on a mac with M3) that uses NIFs that base on Bundlex and Unifex the device keeps rebooting. This problem is particularly difficult to debug, because of minimal to no feedback from the device (It reboots before anything is written to a display).

If loading NIFs is disabled in Bundlex (by commenting out the @on_load :load_nif in Bundlex.Loader) the device boots normally and can be accessed (and expectedly the native code can't be accessed).

This problem was first noticed here https://github.com/membraneframework/membrane_core/issues/781