xbmc-imx6 / xbmc

XBMC Main Repository
http://xbmc.org
Other
32 stars 5 forks source link

XBMC crasching on utilite #75

Open tobiasjohans opened 10 years ago

tobiasjohans commented 10 years ago

Hi,

I am running the xbmc-imx6 on a Utilite Pro with Arch Linux ARM. For me xbmc crasches frequently (although works fine most of the time). It always seem to happen when starting a movie/clip. I think there are several reasons for the crashes. Sometimes it seems to happen when streaming video via an add-on and the video request times out. But it also happens sometimes with video on the local file system. Yesterday I got this error message from the xbmc crash log file:

21:39:10 T:1360086048 NOTICE: Opening audio stream: 1 source: 256 21:39:10 T:1360086048 NOTICE: Finding audio codec for: 86018 21:39:10 T:1360086048 NOTICE: Creating audio thread 21:39:10 T:1385849888 NOTICE: Thread DVDPlayerAudio start, auto delete: false 21:39:10 T:1385849888 NOTICE: running thread: CDVDPlayerAudio::Process() 21:39:10 T:1385849888 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through) 21:39:10 T:1342821408 ERROR: VpuAllocBuffers - Unable alloc 5236744 bytes of physical memory (1). 21:39:10 T:1342821408 ERROR: VpuOpen - iMX VPU open failed (2).

wolfgar commented 10 years ago

Hi, It is reminiscent of the very well known DMA memory fragmentation issue which happens on all 3.0.35 kernels Yet I am suprised you have it when streaming : To me, it happens only when reading from local devices (SSD or USB HDD for instance) Do you known if Arch Linux ARM uses my utilite kernel as if or apply some patches ?

pepedog commented 10 years ago

Yes, we use your kernel https://github.com/wolfgar/utilite/tree/devel And only one patch ENGR00278350-gpu-viante-4.6.9p13-kernel-part-integra.patch

tobiasjohans commented 10 years ago

Wolfgar, do you have any plans to update the kernel?

-------- Original Message -------- From: pepedog notifications@github.com Sent: June 26, 2014 9:08:52 AM CEST To: xbmc-imx6/xbmc xbmc@noreply.github.com Cc: tobbebobbe tobiasjoh@gmail.com Subject: Re: [xbmc] XBMC crasching on utilite (#75)

Yes, we use your kernel https://github.com/wolfgar/utilite/tree/devel And only one patch ENGR00278350-gpu-viante-4.6.9p13-kernel-part-integra.patch


Reply to this email directly or view it on GitHub:

https://github.com/xbmc-imx6/xbmc/issues/75#issuecomment-47194220

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

wolfgar commented 10 years ago

The only real way I know to get rid of this fragmentation issue would be to switch to 3.10.x version. As far as I know this version is no longer subject to the issue. The 3.0.35 has always exhibited the issue (for any board) : wandboard team released a patch but,from my experience, it was even worse than the initial issue ! I am only a little surprised that the issue is triggered while using only streaming. To me, it happens only when you have large local disks accesses. I have an almost worklng 3.10 kernel for utilite : I will try to clean this up and release it but I cannot promise a release date...

warped-rudi commented 10 years ago

I saw this in Cubox-i with DLNA streaming as well...

If I understand it right, the 3.10.x kernel we use for Cubox-i should work provided someone creates a proper *.dts file. Normally this should be the job of the company making the hardware....

wolfgar commented 10 years ago

Damn I though the issue was solved in 3.10 ! It is strange that it is triggered by DLNA : To me the easy way to trigger the issue is definitively "big" disk accesses. I wonder whether we speak about the exact same issue...

Yes you are right most of the work is about writing a proper dts and it is definitively what I have done but support is partial so far that's why I have not shared it. Of course this should be provided by the device maker in an ideal world..

pepedog commented 10 years ago

I wrote to Valentin today asking for this, I know Grinberg is the engineer but think its a better route

tobiasjohans commented 10 years ago

Just to clarify, the error log I posted was indeed from playing movie from local drive. I do get crashes while streaming also, but potentially for other reasons. For instance it seems like the transfer requests time out.

It would be fabulous if you would release that kernel. And thanks for all your work on the vivante and xbmc!

-------- Original Message -------- From: wolfgar notifications@github.com Sent: June 27, 2014 9:59:32 PM CEST To: xbmc-imx6/xbmc xbmc@noreply.github.com Cc: tobbebobbe tobiasjoh@gmail.com Subject: Re: [xbmc] XBMC crasching on utilite (#75)

The only real way I know to get rid of this fragmentation issue would be to switch to 3.10.x version. As far as I know this version is no longer subject to the issue. The 3.0.35 has always exhibited the issue (for any board) : wandboard team released a patch but,from my experience, it was even worse than the initial issue ! I am only a little surprised that the issue is triggered while using only streaming. To me, it happens only when you have large local disks accesses. I have an almost worklng 3.10 kernel for utilite : I will try to clean this up and release it but I cannot promise a release date...


Reply to this email directly or view it on GitHub:

https://github.com/xbmc-imx6/xbmc/issues/75#issuecomment-47393739

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

pepedog commented 10 years ago

We will have to wait until wolfgar gets a little time to improve the utilite kernel https://github.com/wolfgar/utilite/issues/2 New uboot coming too https://github.com/utilite-computer/u-boot/tree/utilite/master

wolfgar commented 10 years ago

Hi,

A little update : I have almost a fully working 3.10 kernel for utilite

There are 2 strange issues that prevent me to publish immediately

I am working on it but have very little spare time at the moment... Stephan

wolfgar commented 10 years ago

Update : I can share my current work but I have been unable to get rid of the random crashes (IPU underrun are solved) I have spent a lot of time trying to figure out why it is unstable with utilite while the same kernel works fine on wandboard or cuboxi but I don't know... Regards Stephan

pepedog commented 10 years ago

I could take a look at your source, and the config your using.

It might be better discussing at https://github.com/wolfgar/utilite/issues?state=open to save spamming xbmc fellas

wolfgar commented 9 years ago

compulab has released their 30.17 kernel https://github.com/utilite-computer/linux-kernel/commits/utilite/devel They have disabled the operating points to avoid crashes ! refer to this commit