RE: Error messages at creation/deletion of codec instances

2007-01-23 Thread Kushal Dalal
Chris,

Thanks again,

I have gone through that link.
I opening engine in one thread then I pass that handle to other thread
(coder thread) as an argument. That thread uses engine handle in serialized
manner. So my use case is still valid.

What can be the reason for these errors?

As Chris said, it will be great if some more familiar with the issue can
jump in.

Thanks,
Kushal

-Original Message-
From: Ring, Chris [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 22, 2007 10:57 PM
To: Kushal Dalal; davinci-linux-open-source@linux.davincidsp.com
Subject: RE: Error messages at creation/deletion of codec instances

Your use case is supported.  I'll ask you to review this thread here as
there are some things to be careful about:
http://linux.omap.com/pipermail/davinci-linux-open-source/2006-September
/000841.html

Please post your thoughts/results after reading that.  Again, I haven't
seen this assertion before, so if they continue, I'm hoping someone more
familiar with Link can chime in.

Chris 

> -Original Message-
> From: Kushal Dalal [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, January 21, 2007 9:29 PM
> To: Ring, Chris; davinci-linux-open-source@linux.davincidsp.com
> Subject: RE: Error messages at creation/deletion of codec instances
> 
> Chris,
> 
> Thanks for your reply.
> 
> I have single process - multithreaded application.
> I am opening engine in _main ()_ function of my application.
> I am creating a thread to perform coding & in this coding thread I am
> creating codec instances. This coding thread will be created 
> as and when
> needed.
> 
> So I am opening engine one thread and creating codec 
> instances in other
> thread.
> 
> Is it creating any problems?
> 
> Kushal
> 
> -Original Message-
> From: Ring, Chris [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, January 20, 2007 11:45 PM
> To: Kushal Dalal; davinci-linux-open-source@linux.davincidsp.com
> Subject: RE: Error messages at creation/deletion of codec instances
> 
> Are you using multiple processes in your app?
> 
> I'm not a Link expert, but I think these assertions are 
> thrown when you
> call MSGQ_Get() (which the internals of the VIDENC_create()/delete()
> APIs use) from a different process than you called MSGQ_Open() with
> (which Engine_open() does).
> 
> (Link experts please correct me)
> 
> If that's the case, Codec Engine doesn't currently support multiple
> processes - it does support multiple threads within the same 
> process...
> but not multiple processes.
> 
> Some details on your app's threading model might help.  I haven't seen
> these assertions thrown before.
> 
> Chris 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > ] On Behalf Of Kushal Dalal
> > Sent: Friday, January 19, 2007 9:32 PM
> > To: Davinci-linux-open-source@linux.davincidsp.com
> > Subject: Error messages at creation/deletion of codec instances
> > 
> > Hi All,
> > 
> > I am getting "Assertion failed" error messages from DSP link 
> > when I create
> > (VIDENC_create) and delete (VIDENC_delete) codec instances. 
> > Here I have
> > pasted snap of those messages.
> > -
> > Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> > msgqQueue])). File : pmgr_msgq.c Line : 656
> > Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> > msgqQueue])). File : pmgr_msgq.c Line : 656
> > Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> > msgqQueue])). File : pmgr_msgq.c Line : 656
> > --
> > 
> > Please note my encoding/decoding works well in spite of 
> these messages
> > (which comes only at encoder/decoder instance 
> creation/deletion time).
> > 
> > What can be the reason for error these error/warning messages?
> > What is the impact on application?
> > 
> > Thanks,
> > Kushal
> > 
> > 
> > 
> > 
> 
> 
> 
> eInfochips Business Disclaimer:
> This message may contain confidential, proprietary or legally 
> Privileged information. In case you are not the original 
> intended Recipient of the message, you must not, directly or 
> indirectly, use, Disclose, distribute, print, or copy any 
> part of this message and you are requested to delete it and 
> inform the sender. Any views expressed in this message are 
> those of the individual sender unless otherwise stated. 
> Nothing contained in this message shall be construed as an 
> offer or acceptance of a

RE: Error messages at creation/deletion of codec instances

2007-01-22 Thread Ring, Chris
Your use case is supported.  I'll ask you to review this thread here as
there are some things to be careful about:
http://linux.omap.com/pipermail/davinci-linux-open-source/2006-September
/000841.html

Please post your thoughts/results after reading that.  Again, I haven't
seen this assertion before, so if they continue, I'm hoping someone more
familiar with Link can chime in.

Chris 

> -Original Message-
> From: Kushal Dalal [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, January 21, 2007 9:29 PM
> To: Ring, Chris; davinci-linux-open-source@linux.davincidsp.com
> Subject: RE: Error messages at creation/deletion of codec instances
> 
> Chris,
> 
> Thanks for your reply.
> 
> I have single process - multithreaded application.
> I am opening engine in _main ()_ function of my application.
> I am creating a thread to perform coding & in this coding thread I am
> creating codec instances. This coding thread will be created 
> as and when
> needed.
> 
> So I am opening engine one thread and creating codec 
> instances in other
> thread.
> 
> Is it creating any problems?
> 
> Kushal
> 
> -Original Message-
> From: Ring, Chris [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, January 20, 2007 11:45 PM
> To: Kushal Dalal; davinci-linux-open-source@linux.davincidsp.com
> Subject: RE: Error messages at creation/deletion of codec instances
> 
> Are you using multiple processes in your app?
> 
> I'm not a Link expert, but I think these assertions are 
> thrown when you
> call MSGQ_Get() (which the internals of the VIDENC_create()/delete()
> APIs use) from a different process than you called MSGQ_Open() with
> (which Engine_open() does).
> 
> (Link experts please correct me)
> 
> If that's the case, Codec Engine doesn't currently support multiple
> processes - it does support multiple threads within the same 
> process...
> but not multiple processes.
> 
> Some details on your app's threading model might help.  I haven't seen
> these assertions thrown before.
> 
> Chris 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED]
> > ] On Behalf Of Kushal Dalal
> > Sent: Friday, January 19, 2007 9:32 PM
> > To: Davinci-linux-open-source@linux.davincidsp.com
> > Subject: Error messages at creation/deletion of codec instances
> > 
> > Hi All,
> > 
> > I am getting "Assertion failed" error messages from DSP link 
> > when I create
> > (VIDENC_create) and delete (VIDENC_delete) codec instances. 
> > Here I have
> > pasted snap of those messages.
> > -
> > Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> > msgqQueue])). File : pmgr_msgq.c Line : 656
> > Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> > msgqQueue])). File : pmgr_msgq.c Line : 656
> > Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> > msgqQueue])). File : pmgr_msgq.c Line : 656
> > --
> > 
> > Please note my encoding/decoding works well in spite of 
> these messages
> > (which comes only at encoder/decoder instance 
> creation/deletion time).
> > 
> > What can be the reason for error these error/warning messages?
> > What is the impact on application?
> > 
> > Thanks,
> > Kushal
> > 
> > 
> > 
> > 
> 
> 
> 
> eInfochips Business Disclaimer:
> This message may contain confidential, proprietary or legally 
> Privileged information. In case you are not the original 
> intended Recipient of the message, you must not, directly or 
> indirectly, use, Disclose, distribute, print, or copy any 
> part of this message and you are requested to delete it and 
> inform the sender. Any views expressed in this message are 
> those of the individual sender unless otherwise stated. 
> Nothing contained in this message shall be construed as an 
> offer or acceptance of any offer by eInfochips Limited and/or 
> eInfochips Inc("eInfochips") unless sent with that express 
> intent and with due authority of eInfochips. eInfochips has 
> taken enough precautions to prevent the spread of viruses. 
> However the company accepts no liability for any damage 
> caused by any virus transmitted by this email.
> 
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Error messages at creation/deletion of codec instances

2007-01-21 Thread Kushal Dalal
Chris,

Thanks for your reply.

I have single process - multithreaded application.
I am opening engine in _main ()_ function of my application.
I am creating a thread to perform coding & in this coding thread I am
creating codec instances. This coding thread will be created as and when
needed.

So I am opening engine one thread and creating codec instances in other
thread.

Is it creating any problems?

Kushal

-Original Message-
From: Ring, Chris [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 20, 2007 11:45 PM
To: Kushal Dalal; davinci-linux-open-source@linux.davincidsp.com
Subject: RE: Error messages at creation/deletion of codec instances

Are you using multiple processes in your app?

I'm not a Link expert, but I think these assertions are thrown when you
call MSGQ_Get() (which the internals of the VIDENC_create()/delete()
APIs use) from a different process than you called MSGQ_Open() with
(which Engine_open() does).

(Link experts please correct me)

If that's the case, Codec Engine doesn't currently support multiple
processes - it does support multiple threads within the same process...
but not multiple processes.

Some details on your app's threading model might help.  I haven't seen
these assertions thrown before.

Chris 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Kushal Dalal
> Sent: Friday, January 19, 2007 9:32 PM
> To: Davinci-linux-open-source@linux.davincidsp.com
> Subject: Error messages at creation/deletion of codec instances
> 
> Hi All,
> 
> I am getting "Assertion failed" error messages from DSP link 
> when I create
> (VIDENC_create) and delete (VIDENC_delete) codec instances. 
> Here I have
> pasted snap of those messages.
> -
> Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> msgqQueue])). File : pmgr_msgq.c Line : 656
> Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> msgqQueue])). File : pmgr_msgq.c Line : 656
> Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> msgqQueue])). File : pmgr_msgq.c Line : 656
> --
> 
> Please note my encoding/decoding works well in spite of these messages
> (which comes only at encoder/decoder instance creation/deletion time).
> 
> What can be the reason for error these error/warning messages?
> What is the impact on application?
> 
> Thanks,
> Kushal
> 
> 
> 
> 



eInfochips Business Disclaimer:
This message may contain confidential, proprietary or legally Privileged 
information. In case you are not the original intended Recipient of the 
message, you must not, directly or indirectly, use, Disclose, distribute, 
print, or copy any part of this message and you are requested to delete it and 
inform the sender. Any views expressed in this message are those of the 
individual sender unless otherwise stated. Nothing contained in this message 
shall be construed as an offer or acceptance of any offer by eInfochips Limited 
and/or eInfochips Inc("eInfochips") unless sent with that express intent and 
with due authority of eInfochips. eInfochips has taken enough precautions to 
prevent the spread of viruses. However the company accepts no liability for any 
damage caused by any virus transmitted by this email.
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source


RE: Error messages at creation/deletion of codec instances

2007-01-20 Thread Ring, Chris
Are you using multiple processes in your app?

I'm not a Link expert, but I think these assertions are thrown when you
call MSGQ_Get() (which the internals of the VIDENC_create()/delete()
APIs use) from a different process than you called MSGQ_Open() with
(which Engine_open() does).

(Link experts please correct me)

If that's the case, Codec Engine doesn't currently support multiple
processes - it does support multiple threads within the same process...
but not multiple processes.

Some details on your app's threading model might help.  I haven't seen
these assertions thrown before.

Chris 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]
> ] On Behalf Of Kushal Dalal
> Sent: Friday, January 19, 2007 9:32 PM
> To: Davinci-linux-open-source@linux.davincidsp.com
> Subject: Error messages at creation/deletion of codec instances
> 
> Hi All,
> 
> I am getting "Assertion failed" error messages from DSP link 
> when I create
> (VIDENC_create) and delete (VIDENC_delete) codec instances. 
> Here I have
> pasted snap of those messages.
> -
> Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> msgqQueue])). File : pmgr_msgq.c Line : 656
> Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> msgqQueue])). File : pmgr_msgq.c Line : 656
> Assertion failed (PMGR_MSGQ_IsOwner (PMGR_MSGQ_OwnerArray [(MsgqId)
> msgqQueue])). File : pmgr_msgq.c Line : 656
> --
> 
> Please note my encoding/decoding works well in spite of these messages
> (which comes only at encoder/decoder instance creation/deletion time).
> 
> What can be the reason for error these error/warning messages?
> What is the impact on application?
> 
> Thanks,
> Kushal
> 
> 
> 
> 
> eInfochips Business Disclaimer:
> This message may contain confidential, proprietary or legally 
> Privileged information. In case you are not the original 
> intended Recipient of the message, you must not, directly or 
> indirectly, use, Disclose, distribute, print, or copy any 
> part of this message and you are requested to delete it and 
> inform the sender. Any views expressed in this message are 
> those of the individual sender unless otherwise stated. 
> Nothing contained in this message shall be construed as an 
> offer or acceptance of any offer by eInfochips Limited and/or 
> eInfochips Inc("eInfochips") unless sent with that express 
> intent and with due authority of eInfochips. eInfochips has 
> taken enough precautions to prevent the spread of viruses. 
> However the company accepts no liability for any damage 
> caused by any virus transmitted by this email.
> ___
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> 
___
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source