#18160 closed bug (duplicate)

Problem with encoding: initalization failed: out of memory

Reported by: jackburton Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Media Kit Version: R1/beta4
Keywords: Cc:
Blocked By: #9458 Blocking:
Platform: x86

Description

Encoding fails with initialization failed

To reproduce: Open BeScreenCapture from terminal. Select MPEG / MPEG4 as output. Start and stop recording multiple times until an alert is shown with "Initialization failed". In the terminal, these errors come out:

PluginManager: Error, load_add_on(): General system error PluginManager: Error, loading Plugin ffmpeg failed PluginManager: CreateWriter: GetPlugin failed

and in syslog:

KERN: runtime_loader: /boot/system/lib/libavcodec.so.58.54.100: could not map image: out of memory

Could be an application specific bug, of course. But only happens on haiku 32 bit gcc2.

Attachments (1)

main.cpp (2.4 KB ) - added by jackburton 17 months ago.
Test case. Compile with gcc -lbe -lmedia -o mediacrashtest main.cpp

Download all attachments as: .zip

Change History (7)

comment:1 by diver, 17 months ago

Keywords: 32 bit gcc2 removed
Platform: Allx86

comment:2 by jackburton, 17 months ago

Will try ti provide a simpler test case in the next days

comment:3 by jackburton, 17 months ago

Attached test case. Compile with

gcc -lbe -lmedia -o mediacrashtest main.cpp

then execute ./mediacrashtest

by jackburton, 17 months ago

Attachment: main.cpp added

Test case. Compile with gcc -lbe -lmedia -o mediacrashtest main.cpp

comment:4 by jackburton, 17 months ago

Resolution: invalid
Status: newclosed

The first test case had a memory leak. The updated test case does not show the problem. So I guess this is, after all, an application issue.

comment:5 by jackburton, 17 months ago

Resolution: invalid
Status: closedreopened

Reopening, because there's a leak in the kit, too, like described in #9458

comment:6 by jackburton, 17 months ago

Blocked By: 9458 added
Resolution: duplicate
Status: reopenedclosed
Note: See TracTickets for help on using tickets.