openworm / OpenWorm

Repository for the main Dockerfile with the OpenWorm software stack and project-wide issues
http://openworm.org
MIT License
2.55k stars 201 forks source link

Corrupted video and data. #330

Open Undertone0809 opened 1 year ago

Undertone0809 commented 1 year ago

If this issue is intended to be a bug report, please fill out the following:

Expected behavior Run ./run.cmd and it can get data normally. Actual behavior Actually, I can not run normally by window. First of all, I run ./run.cmd but it prints the following information.

Unable to find image 'openworm/openworm:0.9.3' locally
docker: Error response from daemon: manifest for openworm/openworm:0.9.3 not found: manifest unknown: manifest unknown.

I search the version from docker hub and didn't find v0.9.3 but just the latest version . I change run.cmd file to latest. As the following you can see the only change. image

After that, run ./run.cmd . It works normally. But the data may get wrong. I open the video but all I can see is just black. I retry but get the same result. I am appreciate it if you can solve my problem.

image

C2_FW_2022-11-16_09-29-38.zip

My current code version is at #328 and my docker info is as follows.

Client:
 Cloud integration: v1.0.29
 Version:           20.10.21
 API version:       1.41
 Go version:        go1.18.7
 Git commit:        baeda1f
 Built:             Tue Oct 25 18:08:16 2022
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.14.0 (91374)
 Engine:
  Version:          20.10.21
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.18.7
  Git commit:       3056208
  Built:            Tue Oct 25 18:00:19 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.9
  GitCommit:        1c90a442489720eec95342e1789ee8a5e1b9536f
 runc:
  Version:          1.1.4
  GitCommit:        v1.1.4-0-g5fd4c4d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
pgleeson commented 1 year ago

Hi @Undertone0809. Great that you got it partially working, but did you try building the docker image locally, i.e. ./build.cmd? Think it worked most of the way with what you did, but obviously not the movie generation.

HussainAther commented 3 weeks ago

The run.cmd script is attempting to run a Docker container with the image openworm/openworm:0.9.3. Since this image is not found, it should be updated to use the latest version of the openworm image. We can modify the run.cmd to use the latest image instead of 0.9.3.

We can update the script to use openworm/openworm:latest and then suggest running the ./build.cmd to build the Docker image locally.

@echo off setlocal

set OW_OUT_DIR=/home/ow/shared set HOST_OUT_DIR=%~dp0

:GETOPTS if /i "%1" == "-d" set DURATION=%2 & shift shift if not "%1" == "" goto GETOPTS

if not defined DURATION set DURATION=15

echo on

docker run -d ^ --name openworm ^ -e OW_OUT_DIR=%OW_OUT_DIR% ^ -e DURATION=%DURATION% ^ --privileged ^ -v %HOST_OUT_DIR%:%OW_OUT_DIR%:rw ^ openworm/openworm:latest ^ /bin/bash -c "python master_openworm.py"

docker logs -f openworm

@echo off endlocal

HussainAther commented 3 weeks ago

Perhaps try it with this?

Update your run.cmd and build.cmd files with the changes above. Run ./build.cmd to build the Docker image locally. Run ./run.cmd to start the Docker container with the latest image.