Posting a reply to an earlier email with the same subject.  The original
mail includes an 'adworks' footer I didn't want to download/redistribute
in my reply.

Q.  Does anybody know which Codec Engine API call opens the  device
/dev/cmem and the DSP/ARM trace files (cearmlog.txt, cedsp0log.txt,
bioslog.dat) ?

I observed that these files are getting opened but not being closed. In
my application i play many video clips, each time these files are
getting opened with different file descriptors (observed in "lsof"
tool), after some time the application crashes. I suspect opening these
files multiple times is causing the problem, once it reaches the maximum
number of file descriptors.

A.  CMEM_init() is called from the auto-generated CERuntime_init() when
the app's .cfg configures the ti.sdo.ce.osal.Global.runtimeEnv to
DSPLINK_LINUX.  This is typically the case for an ARM-based Linux
application.

The trace files are opened during TraceUtil_init(), also called by
CERuntime_init() when the app's .cfg configures the
ti.sdo.ce.osal.Global.runtimeEnv to DSPLINK_LINUX _and_ uses the
'ti.sdo.ce.utils.trace.TraceUtil' module.

CMEM_exit() and TraceUtil_exit() are called when the application exits.
If your application never exits, these handles will never be closed...
but I don't think new ones should be 'opened'.

[ Additionally, FYI, in CE 1.20 we are introducing CERuntime_exit() for
customers that need to explicitly close all resources CE was using
before exiting their application. ]

I guess I can't explain what you're seeing.  Can you provide further
details about how your app is using CE (lots of Engine_open/closes, or
just VIDENC_create/delete's, any 'interesting' threading going on,
etc.).

Chris
_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to