question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Application crashes during training

See original GitHub issue

Hello everyone,

I need to run a lightfm application inside a docker container. This is my Dockerfile:

FROM python:3.6.8-slim

WORKDIR /usr/src/app

RUN apt-get update \
        && apt-get install -y curl apt-transport-https gnupg2 build-essential libxml2 libxslt-dev gcc \
        && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
        && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \
        && apt-get update \
        && ACCEPT_EULA=Y apt-get install -y msodbcsql17

RUN apt-get install -y unixodbc-dev

COPY requirements.txt ./
RUN pip install --no-cache-dir -v -r requirements.txt > install.log

ENV TZ=America/Sao_Paulo
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY . .

CMD ["python","-u","main.py"]

When my container is running, then error below is throwed: [9496254.935906] traps: python[45650] trap invalid opcode ip:7f3bf6731489 sp:7ffd515191e0 error:0 in _lightfm_fast_openmp.cpython-36m-x86_64-linux-gnu.so[7f3bf670b000+49000]

This happens when I call method .fit()

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
maciejkulacommented, May 21, 2019

It looks like the machine you’re compiling on differs from the machine you are running on. You may want to change the compilation flags to something less performant but more architecture independent. You can do this by making changes to setup.py.

0reactions
clappiscommented, May 21, 2019

Works @maciejkula . Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Activity App Crashes When Viewing Workout Detail
Screen locks in the app and then crashes. No history or walk workouts can be viewed without the same result. Show more Less....
Read more >
What to do when your apps keep crashing - Popular Science
Don't put up with misbehaving software. If one of your apps keeps crashing, follow this advice to make the troublesome program run smoothly....
Read more >
Crashes - Android Developers
There are many situations that can cause a crash in your app. Some reasons are obvious, like checking for a null value or...
Read more >
How to Fix Crashing Apps on an iPhone or Android?
10 Solutions to fix App Crashes and Keep Apps Running: For Apple iPhone, Samsung Galaxy, LG, Lenovo and Sony Xperia smartphones. If you've...
Read more >
[Solved] .NET applications crashing - Visual Studio Feedback
NET application crashes, including .NET Core 3.0. (2.2 runs fine) ... In some cases, there is no problem and the application runs without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found