Skip to main content

Background video plays inconsistent

2 replies [Last post]
rdecker
Offline
Joined: 2009-02-25

I have a background video set up with a channel map and select the service from my xlet. Sometimes the background video plays but more often than not it fails.

Sometimes it is unable to reserve the video device. Is there anything I can do to help it be more capable of reserving the video device? Is there some contention for the video device?

This is what I see in the log:

20100816 20:22:37.414 INFO RI.Stack- 14573 [System-1] INFO player.AbstractP
layer - start() [Unrealized]
20100816 20:22:37.419 INFO RI.Stack- 14577 [pool-17] INFO application.Appli
cation$State - appid=4000 STARTED->DESTROYED success
20100816 20:22:37.419 INFO RI.Stack- 14580 [pool-17] INFO application.Appli
cation$State - appid=4000 DESTROYED->NOT_LOADED failed
20100816 20:22:37.424 WARN RI.Stack- 14582 [pool-13] WARN player.AbstractPl
ayer - completePrefetching(failure- orphaned player cannot reserve video device)
- [Prefetching-->Started]
20100816 20:22:37.429 INFO RI.Stack- 14586 [System-1] INFO selection.DVRBro
adcastServiceContextDelegate - controllerEvent - received resourceUnavailableEve
nt when pending: javax.media.ResourceUnavailableEvent[source=TSBServiceMediaHand
ler@32ad3169,message=prefetch failed: orphaned player cannot reserve video devic
e]

Other times I get CallerContext is not viable SecurityException. I usually see this one earlier in log before my app starts even when the video does play but when it happens after my app starts the video doesn't play:

20100816 20:34:17.741 INFO RI.Stack- 15257 [System-1] INFO player.AbstractP
layer - start() [Unrealized]
20100816 20:34:17.746 WARN RI.Stack- 15261 [pool-13] WARN event.SystemEvent
Manager - ErrorEvent[24000000,8/16/10 6:34 PM] java.lang.SecurityException: Call
erContext is not viable
java.lang.SecurityException: CallerContext is not viable
at org.cablelabs.impl.manager.application.AppContext.checkAlive(AppConte
xt.java:184)
at org.havi.ui.HScreenDevice.reserveDevice(HScreenDevice.java:321)
at org.cablelabs.impl.havi.port.mpe.HDVideoDevice.reserveDevice(HDVideoD
evice.java:569)
at org.cablelabs.impl.havi.port.mpe.HDVideoDevice.reserveAndControlDevic
e(HDVideoDevice.java:602)
at org.cablelabs.impl.media.player.AbstractVideoPlayer.doAcquirePrefetch
Resources(AbstractVideoPlayer.java:382)
at org.cablelabs.impl.media.player.AbstractPlayer.acquirePrefetchResourc
es(AbstractPlayer.java:1943)
at org.cablelabs.impl.media.player.AbstractPlayer.access$600(AbstractPla
yer.java:113)
at org.cablelabs.impl.media.player.AbstractPlayer$PrefetchTask.acquireRe
sources(AbstractPlayer.java:1867)
at org.cablelabs.impl.media.player.AbstractPlayer$ResourceTask.doPlayerT
ask(AbstractPlayer.java:1653)
at org.cablelabs.impl.media.player.AbstractPlayer$PlayerTask.doTask(Abst
ractPlayer.java:582)
at org.cablelabs.impl.util.Task.run(Task.java:167)
at org.cablelabs.impl.manager.application.WorkerTask.run(WorkerTask.java
:128)
at org.cablelabs.impl.manager.application.AbstractCallerContext$2.run(Ab
stractCallerContext.java:348)
at org.cablelabs.impl.manager.application.AbstractCallerContext$1.run(Ab
stractCallerContext.java:286)
at java.security.AccessController.doPrivileged(AccessController.java:299
)
at org.cablelabs.impl.manager.application.AbstractCallerContext.runAsCon
textSamePriority(AbstractCallerContext.java:282)
at org.cablelabs.impl.manager.application.AbstractCallerContext.runAsCon
text(AbstractCallerContext.java:339)
at org.cablelabs.impl.manager.application.ContextTask.run(ContextTask.ja
va:80)
at org.cablelabs.impl.manager.application.DemandExecQueue$DemandTask.run
(DemandExecQueue.java:247)
at org.cablelabs.impl.manager.application.WorkerTask.run(WorkerTask.java
:128)
at org.cablelabs.impl.manager.application.ThreadPool$1.run(ThreadPool.ja
va:148)
at java.lang.Thread.run(Thread.java:715)
at java.lang.Thread.startup(Thread.java:785)

20100816 20:34:17.781 INFO RI.Stack- 15299 [System-1] INFO selection.DVRBro
adcastServiceContextDelegate - controllerEvent - received ControllerErrorEvent w
hen pending: javax.media.InternalErrorEvent[source=TSBServiceMediaHandler@828efe
86,message=startDecode() failed: java.lang.SecurityException: CallerContext is n
ot viable]
20100816 20:34:17.786 INFO RI.Stack- 15302 [System-1] INFO selection.DVRBro
adcastServiceContextDelegate - setting currentState to NOT_PRESENTING
20100816 20:34:17.786 INFO RI.Stack- 15304 [System-1] INFO player.AbstractP
layer - stop() [Prefetching-->Started, CLOSED]
20100816 20:34:17.786 WARN RI.Stack- 15306 [System-1] WARN timer.TimerMgrJa
va2 - deschedule called with an unscheduled spec: TVTS 0x24f13c5d: [time=1000, a
bsolute=false, repeat=false, regular=true]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
scottdeboy
Offline
Joined: 2009-02-02

Can you post an IssueTracker issue and attach a log with Java DEBUG logging enabled?

To enable Java DEBUG logging, un-comment the LOG.MPE.JAVA = ALL DEBUG entry in $OCPAROOT/bin/$OCAPTC/env/mpeenv.ini

rdecker
Offline
Joined: 2009-02-25

I was able to get it working on a desktop. This problem appears to be specific to my laptop. I am going to try shutting down some resident apps that may be interferring. If that doesn't solve the issue I will turn on debug logging and open an issue with the result.