Kodi Community Forum
Solved XBMC and curl v7.38.0 do not work together - cannot scrape - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Solved XBMC and curl v7.38.0 do not work together - cannot scrape (/showthread.php?tid=204740)

Pages: 1 2 3 4 5


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - wsnipex - 2014-09-21

its just for reference for the curl devs


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - fritsch - 2014-09-21

Yes, you are right. Hopefully they follow this thread.


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - geearf - 2014-09-22

(2014-09-21, 07:55)fritsch Wrote: Nice, Johne E has tracked it down: http://sourceforge.net/p/curl/bugs/1426/

From looking at the patch - it seems like the logic in: https://github.com/bagder/curl/commit/cacdc27f52ba7b0bf08aa57886bfbd18bc82ebfb , especially: https://github.com/bagder/curl/commit/cacdc27f52ba7b0bf08aa57886bfbd18bc82ebfb#diff-fa07c5e05c881b8074d0ca1e171feb02R1572

Can you try to change that like:
Code:
- Curl_expire_latest(data->easy_conn->recv_pipe->head->ptr, 1);
+ Curl_expire(data->easy_conn->recv_pipe->head->ptr, 1);

I think a curl timesout before actually getting anything.

I tried that but no, it didn't help. :/
(I'm John E on sf)


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - fritsch - 2014-09-22

Oki, then let's find out what upstream has to tell. They know their code way better. Thanks for bisecting.


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - geearf - 2014-09-22

Sure, that was my first time doing that, it was interesting for me as well!
Oh and by the way, unlike what you wrote in the previous page, I didn't need to rebuild xbmc, building curl and restarting xbmc was enough.


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - fritsch - 2014-09-22

@geearf: Please enable detailled curl logging like wsnipex said. This log will get much more useful. It's under debug logging, component logging.


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - geearf - 2014-09-22

Is there a way to have debug logging without it affecting the ui?


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - fritsch - 2014-09-23

Yes - see: http://wiki.xbmc.org/?title=advancedsettings.xml


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - geearf - 2014-09-23

Got it!
But since I have to "deactive" debugging in the UI, how do I specify the component logging?
Or does '1' gets all of components anyway?


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - fritsch - 2014-09-23

You only need to gather logfiles exactly once - so I would just enable gui logging, restart xbmc - scrape something and provide the logfile afterwards. Then you can disable logging again.


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - Martijn - 2014-09-23

(2014-09-23, 08:46)geearf Wrote: Got it!
But since I have to "deactive" debugging in the UI, how do I specify the component logging?
Or does '1' gets all of components anyway?

it's a bug.
you can't active component logging with advancedsettings enabled.

perhaps it works if you first enable component logging and then activate advancedsettings


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - geearf - 2014-09-23

(2014-09-23, 08:48)fritsch Wrote: You only need to gather logfiles exactly once - so I would just enable gui logging, restart xbmc - scrape something and provide the logfile afterwards. Then you can disable logging again.

Well I understand that, it was more of a general question than a how-to-debug-right-now.

(2014-09-23, 08:48)Martijn Wrote:
(2014-09-23, 08:46)geearf Wrote: Got it!
But since I have to "deactive" debugging in the UI, how do I specify the component logging?
Or does '1' gets all of components anyway?

it's a bug.
you can't active component logging with advancedsettings enabled.

perhaps it works if you first enable component logging and then activate advancedsettings
That's unfortunate.

Thanks!


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - fritsch - 2014-09-23

Arch Users: http://sourceforge.net/p/curl/bugs/1426/ <- please test and give Daniel a big thank you and the data he wants.

Thanks much in advance from my side.


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - graysky - 2014-09-23

Thank you to all the folks in there (especially you, fritsch) who helped Daniel trouble shoot and fix this. The patch works great.


RE: XBMC and curl v7.38.0 do not work together - cannot scrape - fritsch - 2014-09-23

Daniel did the work completely. I only linked him our commonoptions. Please also thank especially him in the libcurl bugtracker. He invested a whole lot of time to debug that issue. He even wrote custom code to reproduce it. This is outstanding!