Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot allocate memory #35

Closed
zhuker opened this issue May 29, 2019 · 5 comments
Closed

cannot allocate memory #35

zhuker opened this issue May 29, 2019 · 5 comments
Assignees
Labels

Comments

@zhuker
Copy link

zhuker commented May 29, 2019

high bitrate yuv444 h264 wont decode images

2019-05-29 14:38:48 DEBUG  : [/media/zhukov/storage/clients/universal/mummy/4k/R1_235_CC.mp4] Starting decoder thread.
2019-05-29 14:38:48 INFO   : [/media/zhukov/storage/clients/universal/mummy/4k/R1_235_CC.mp4] Transcoding to png.
2019-05-29 14:38:48 DEBUG  : [/media/zhukov/storage/clients/universal/mummy/4k/R1_235_CC.mp4] Opening input file.
2019-05-29 14:38:48 DEBUG  : [/media/zhukov/storage/clients/universal/mummy/4k/R1_235_CC.mp4] Opened input codec for stream #0: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2019-05-29 14:38:48 INFO   : [/media/zhukov/storage/clients/universal/mummy/4k/R1_235_CC.mp4] Video in: h264@54.65 Mbps [21:58.832]
2019-05-29 14:38:48 INFO   : [/home/zhukov/ffmpegfs/mummy/scans/R1_235_CC.png] Opening output file.
2019-05-29 14:38:48 DEBUG  : [/home/zhukov/ffmpegfs/mummy/scans/R1_235_CC.png] Opening format type 'png'.
2019-05-29 14:38:48 DEBUG  : [/home/zhukov/ffmpegfs/mummy/scans/R1_235_CC.png] Output pixel format: rgb48be
2019-05-29 14:38:48 DEBUG  : [/media/zhukov/storage/clients/universal/mummy/4k/R1_235_CC.mp4] Decoder thread is running.
   open[140488648701424] flags: 0x8000 /R1_235_CC.mp4/00000000250.png
   unique: 34926, success, outsize: 32
unique: 34927, opcode: READ (15), nodeid: 258, insize: 80, pid: 24843
read[140488648701424] 8192 bytes from 0 flags: 0x8000
unique: 34928, opcode: LOOKUP (1), nodeid: 1, insize: 54, pid: 11041
LOOKUP /R1_235_CC.mp4
getattr /R1_235_CC.mp4
   NODEID: 2
   unique: 34928, success, outsize: 144
2019-05-29 14:38:53 ERROR  : [/home/zhukov/ffmpegfs/mummy/scans/R1_235_CC.png] Reading image frame no. 250: (12) Cannot allocate memory
   unique: 34927, error: -12 (Cannot allocate memory), outsize: 16
unique: 34929, opcode: LOOKUP (1), nodeid: 2, insize: 56, pid: 13793
LOOKUP /R1_235_CC.mp4/00000000250.png
getattr /R1_235_CC.mp4/00000000250.png
   NODEID: 258
   unique: 34929, success, outsize: 144
unique: 34930, opcode: FLUSH (25), nodeid: 258, insize: 64, pid: 13793
   unique: 34930, error: -38 (Function not implemented), outsize: 16
unique: 34931, opcode: RELEASE (18), nodeid: 258, insize: 64, pid: 0
release[140488648701424] flags: 0x8000
   unique: 34931, success, outsize: 16

@zhuker
Copy link
Author

zhuker commented May 29, 2019

also i frequently get something like 2019-05-29 14:45:42 ERROR : [/home/zhukov/ffmpegfs/mummy/scans/R1_235_CC.png] Timeout reading image frame no. 4442: (110) Connection timed out

@nschlia nschlia self-assigned this May 29, 2019
@nschlia nschlia added the bug label May 29, 2019
@nschlia
Copy link
Owner

nschlia commented May 29, 2019

These are probably actually two bugs. I'll look into it.

@nschlia
Copy link
Owner

nschlia commented Jun 5, 2019

The error message is a bit misleading, it is issued when ffmpegfs tries to read past the end of the cache, i.e. an image that is not yet available. That should never happen...

Probably a multi threading problem. How many cores does your machine have? More than 8?

@nschlia
Copy link
Owner

nschlia commented Jun 11, 2019

Added a lot of extra logging with these commits:

60b93c3
51065ac

The logs should help me to figure out what's wrong. Multi threaded programming is like a box of chocolates. You never know what you're gonna get.

Please run ffmpegfs with --log_maxlevel=INFO to get the whole data. Probably even --log_maxlevel=TRACE would be good, although this may spoil the tests as it logs a whole lotta stuff. INFO should be sufficient, though.

@nschlia
Copy link
Owner

nschlia commented Sep 3, 2019

Should be fixed with the new frame set logic.

@nschlia nschlia closed this as completed Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants