optuna / optuna-dashboard

Real-time Web Dashboard for Optuna.
https://optuna-dashboard.readthedocs.io/en/latest/
Other
532 stars 90 forks source link

Optuna dashboard crashes on MacOS #963

Closed mspinaci closed 2 months ago

mspinaci commented 2 months ago

Expected behavior

The optuna db (generated on AWS, running linux) should be portable to my local machine (running MacOS).

Environment

Error messages, stack traces, or logs

I get a very long list of errors like:

[2024-09-12 13:30:49 +0200] [94101] [ERROR] Worker (pid:94222) was sent SIGSEGV!
[2024-09-12 13:30:49 +0200] [94101] [ERROR] Worker (pid:94224) was sent SIGSEGV!
[2024-09-12 13:30:49 +0200] [94101] [ERROR] Worker (pid:94225) was sent SIGSEGV!
[2024-09-12 13:30:49 +0200] [94101] [ERROR] Worker (pid:94226) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94227) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94228) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94229) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94230) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94231) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94232) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94235) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94238) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94239) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94240) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94267) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94280) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94281) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94282) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94283) was sent SIGSEGV!
[2024-09-12 13:30:50 +0200] [94101] [ERROR] Worker (pid:94284) was sent SIGSEGV!
[2024-09-12 13:30:51 +0200] [94101] [ERROR] Worker (pid:94285) was sent SIGSEGV!

(also a lot of annoying "Python stopped working" UI buttons I have to click through)

The same optuna SQLite file run with the same version of optuna-dashboard directly on AWS works fine.

Steps to reproduce

You can find the SQLite file generated by optuna causing the error at this link.

Additional context (optional)

No response

c-bata commented 2 months ago

@mspinaci I tested optuna-dashboard (with gunicorn) on my Mac and it worked as expected. Unfortunately, for security purposes, I am unable to open your SQLite3 file though.

Could you possibly provide a minimal code example that reproduces your problem?

c-bata commented 2 months ago

Please reopen this if you could prepare a minimal code example to reproduce this bug.