Posts: 286
Joined: May 2013
Reputation:
3
OK, it's not a matter of memory.
Adding swap doesn't help, still I cannot rip the same CD as before.
I make a try with another CD and then will have a look at
reader.Read(stream, 1024);
as it exits during ripping and returns 1.
How do I revert back to the original configuration?
Is it just enough to reload the tar file?
Posts: 286
Joined: May 2013
Reputation:
3
2015-02-08, 17:38
(This post was last modified: 2015-02-08, 17:39 by Claudio.Sjo.)
I've always had problems in cross-compiling,
it takes quite a lot to have everything up and running, and I had to give up for instance when dealing with MIPS.
How hard is to have the proper environment for cross-compiling kodi for Raspberry Pi?
Be honest...
About libcdio I'll try to be heard, but so far nobody has even tried to listen to me about the bug.
Posts: 286
Joined: May 2013
Reputation:
3
Let's try...
but what should I do with the code that I'm going to patch?
As I told you, the patch in libcdio fixes the crash problem, and I'd wish other people to enjoy it.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
At the very least send it to libcdio. As a consumer of libcdio, OpenELEC might welcome a pull request that adds the patch to their build system, which will be required until libcdio accept/merge the patch and OpenELEC upgrade to the new libcdio version.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
2015-02-09, 11:52
(This post was last modified: 2015-02-09, 11:58 by Milhouse.)
So you opened a ticket with the one org that isn't able to fix this issue using your current distribution? Primarily this is a libcdio issue, so send the issue there. However this has nothing to do with Kodi as you're using OpenELEC, and OpenELEC uses an external libcdio library. OpenELEC may be willing to support a libcdio patch in the short term.
Also, you say in your ticket that you fixed the issue with the logging change, but I didn't think that was the case (posts #59 and #61) and you wanted to change the CFileCDDA::Read method (still waiting for a patch if you want another test build, unless you're now self-building).
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Posts: 286
Joined: May 2013
Reputation:
3
There are 2 problems currently at ripping CD by means of Kodi, both only apply to Raspberry Openelec, because ripping on my Lubuntu based HTPC x86 with Kodi works like a charm.
Problem #1 : Kodi crashes, this seems to be related to the logging in libcdio, and apparently my patch fixes the problem, at least until the real root is found.
Problem #2 : When ripping some CD, the CFileCDDA::Read method returns with a negative value, this happens regularly with some CD (same track, same point) and never with other CDs.
I'm still in the process of building the development environment myself, and will try to find the problem, then I'll try to propose a patch.
(May it be related to the 32bit ARM architecture versus 64bit intel?)
Posts: 286
Joined: May 2013
Reputation:
3
Hi Milhouse,
I need a little help.
I did my first building, and all went fine, even though it was longer than expected, but I'm using a poor i5 2400 running 2.5GHz
When I tried to patch libcdio, and then to build again, it seemed to me that it was simply linked, not recompiled.
I tried then "make clean" and, with big surprise, all was extracted from the archives once again.
How can I change the code and build in a reasoneable time?
Thanks,
Claudio
Posts: 17,855
Joined: Jan 2011
Reputation:
1,055
Milhouse
Retired Team-Kodi Member
Posts: 17,855
"make clean" will clear everything from your build directory. The usual approach is to remove only the relevant libcdio files from the build directory - this means the unpacked source code, and any libcdio entries in the .stamps and image/.stamps directories.
Copy your patch to "package/audio/libcdio/patches" (you'll need to create the patches folder), this way it will be used by all projects. You could alternatively add the patch to "projects/RPi/patches/libcdio", in which case only the RPi project would use the patch when building libcdio.
Then run "make release", and only your libcdio package should need to be rebuilt.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.