Spurious error message causing system to not come up in Mac OS on production build
pulzzedavid opened this issue · 12 comments
Tested on multiple versions of Mac OS, and same error message below is printed constantly. Strange thing is, it is working fine on other OSes. Does not seem to be an issue on a dev build.
(no logger present) unexpected logger message: {log,error,"~s~n",["beam/beam_load.c(1428): Error loading module 'Elixir.AWS.DataPipeline':\n module name in object code is Elixir.AWS.Datapipeline\n"],#{error_logger=>#{emulator=>true,tag=>error},gl=><0.0.0>,pid=><0.2049.0>,time=>1630404393472978}}
@pulzzedavid is this specific to this module or the message appears multiple times for other modules?
Specific to this module. Currently using release 0.8.0. Trying to see if same issue occurs on 0.7.0
Thanks!
Bizarre, because this module is small and don't have anything special.
I don't have a Mac OS system to test, but I will ask for help tomorrow if the problem persist.
@pulzzedavid before that, could you try to remove the _build
and deps
directories and try again?
It's a CI build, so it is a fresh build every time. I do sometimes see this for DataPipeline module even for dev build.
...(40)> AWS.DataPipeline.[error] beam/beam_load.c(1428): Error loading module 'Elixir.AWS.DataPipeline':
module name in object code is Elixir.AWS.Datapipeline
[error] Loading of /Users/davidjung/Documents/GitHub/api-interactor/_build/dev/lib/aws/ebin/Elixir.AWS.DataPipeline.beam failed: :badfile
13:30:19.377 [error] Loading of /Users/davidjung/Documents/GitHub/api-interactor/_build/dev/lib/aws/ebin/Elixir.AWS.DataPipeline.beam failed: badfile
13:30:19.377 [error] beam/beam_load.c(1428): Error loading module 'Elixir.AWS.DataPipeline':
module name in object code is Elixir.AWS.Datapipeline
But, the problem goes away when I rebuild it. Have not been able to reproduce it reliably though.
Interesting. Is the build configured to use cache? If so, can you show me the cache config line?
HFS has this weird case insensitivity situation because historically macOS has been case-insensitive
I have tested with versions 0.9.0, 0.8.0, 0.7.0. Looks like the issue does not exist in 0.7.0, but exists in 0.8.0 and 0.9.0. Hope that helps.
I have seen this issue for 0.12.0, but it doesn't exist on 0.11.0. For me the modules with the errors are Elixir.AWS.CloudSearchDomain and Elixir.AWS.ImportExport.
It happens me to with Elixir.AWS.CloudSearchDomain
and Elixir.AWS.Cloudsearchdomain
.
I'm using m1 macbook.
There are two modules in docs of 0.12.0
https://hexdocs.pm/aws/0.12.0/AWS.Cloudsearchdomain.html
https://hexdocs.pm/aws/0.12.0/AWS.CloudSearchDomain.html