Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XBMC crasching on utilite #75

Open
tobiasjohans opened this issue Jun 25, 2014 · 13 comments
Open

XBMC crasching on utilite #75

tobiasjohans opened this issue Jun 25, 2014 · 13 comments

Comments

@tobiasjohans
Copy link

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
Copy link
Member

wolfgar commented Jun 26, 2014

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
Copy link

pepedog commented Jun 26, 2014

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
Copy link
Author

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:

#75 (comment)

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

@wolfgar
Copy link
Member

wolfgar commented Jun 27, 2014

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
Copy link

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
Copy link
Member

wolfgar commented Jun 27, 2014

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
Copy link

pepedog commented Jun 27, 2014

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

@tobiasjohans
Copy link
Author

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:

#75 (comment)

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

@pepedog
Copy link

pepedog commented Jul 10, 2014

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

@wolfgar
Copy link
Member

wolfgar commented Jul 10, 2014

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 have random crashes on boot and I am unsure it is related to the kernel version (coz I have read similar issues with kernel 3.0.35 on utilite that I was unable to reproduce with 3.0.35 )
  • The HDMI display is subject to IPU underrun while browsing xbmc GUI

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

@wolfgar
Copy link
Member

wolfgar commented Jul 15, 2014

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
Copy link

pepedog commented Jul 15, 2014

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
Copy link
Member

wolfgar commented Aug 14, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants