scanner-research / scanner

Efficient video analysis at scale
https://scanner-research.github.io/
Apache License 2.0
620 stars 108 forks source link

Error while sending frame: Generic error in an external library #207

Closed quanhua92 closed 6 years ago

quanhua92 commented 6 years ago

Hi, I am trying to run the code in Quickstart. However, there is an error while running the python3 main.py. My installation is from docker approach and I also tried to download the mp4 file several times. Thank you very much. Here is the detail:

I started the docker with the following command:

docker-compose run --service-ports gpu /bin/bash

Then, I followed the command in the Quickstart

cd examples/apps/quickstart
wget https://storage.googleapis.com/scanner-data/public/sample-clip.mp4
python3 main.py

This is the error.

root@67de77c1311f:/opt/scanner/examples/apps/quickstart# python3 main.py 
Server listening on 0.0.0.0:5001
  0%|                                                                                                                                                     | 0/7 [00:01<?, ?it/s, workers=1, tasks=7, jobs=1][swscaler @ 0x7f4994faed00] bad dst image pointers
[libx264 @ 0x7f4994002720] Input picture width (640) is greater than stride (0)
Error while sending frame (-542398533): Generic error in an external library
F0527 02:39:44.586627  2509 software_video_encoder.cpp:269] Error while sending frame
*** Check failure stack trace: ***
    @     0x7f4b53cc15cd  google::LogMessage::Fail()
    @     0x7f4b53cc3433  google::LogMessage::SendToLog()
    @     0x7f4b53cc115b  google::LogMessage::Flush()
    @     0x7f4b53cc3e1e  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f4b56efd19f  scanner::internal::SoftwareVideoEncoder::feed_frame()
    @     0x7f4b56efd575  scanner::internal::SoftwareVideoEncoder::feed()
    @     0x7f4b56e9038b  scanner::internal::PostEvaluateWorker::feed()
    @     0x7f4b56e552fa  _ZN7scanner8internal12_GLOBAL__N_120post_evaluate_driverERNS_5QueueISt5tupleIJSt5dequeINS0_10TaskStreamESaIS5_EENS0_13EvalWorkEntryEEEEERNS2_IS3_IJiS8_EEEENS0_22PostEvaluateWorkerArgsE
    @     0x7f4b56e69dfc  _ZNSt6thread5_ImplISt12_Bind_simpleIFPFvRN7scanner5QueueISt5tupleIJSt5dequeINS2_8internal10TaskStreamESaIS7_EENS6_13EvalWorkEntryEEEEERNS3_IS4_IJiSA_EEEENS6_22PostEvaluateWorkerArgsEESt17reference_wrapperISC_ESK_ISF_ESH_EEE6_M_runEv
    @     0x7f4b4fa5fc80  (unknown)
    @     0x7f4b5858a6ba  start_thread
    @     0x7f4b582c041d  clone
    @              (nil)  (unknown)
Aborted (core dumped)
fpoms commented 6 years ago

Hi @quanhua92. Thanks for the issue! Should be fixed with the most recent commit.