(2014-03-28, 00:06)ace20022 Wrote: [ -> ]Shared lib, that debug log doesn't show the crash. Can you upload a full log?
Got it working now with the help of
seo, many thanks for that.
There is a issue though, i think, or it should be normal behavior.
When no libgif is found, and you select gif as backdrop, xbmc crashes/restarts.
I checked compile debug log and noticed that it indeed skips libgif if it can't be found.
When i made libgif package shared i see it being picked up.
Nice addition to XBMC if i may say so, great work.
(2014-03-28, 11:38)schumi2004 Wrote: [ -> ]There is a issue though, i think, or it should be normal behavior.
When no libgif is found, and you select gif as backdrop, xbmc crashes/restarts.
I'll try to find out why this is happening.
(2014-03-28, 12:30)ace20022 Wrote: [ -> ] (2014-03-28, 11:38)schumi2004 Wrote: [ -> ]There is a issue though, i think, or it should be normal behavior.
When no libgif is found, and you select gif as backdrop, xbmc crashes/restarts.
I'll try to find out why this is happening.
@ace20022 here it is:
Code:
(gdb) bt
#0 std::operator==<char> (__lhs=..., __rhs=...)
at /root/OpenELEC.tv/build.OpenELEC-Generic.x86_64-devel/toolchain/x86_64-openelec-linux-gnu/include/c++/4.8.2/bits/basic_string.h:2495
#1 0x0000000000819077 in CGUITextureManager::HasTexture (this=this@entry=0x1cee1f0 <g_TextureManager>, textureName=..., path=path@entry=0x7fff91687840,
bundle=bundle@entry=0x7fff9168782c, size=size@entry=0x7fff91687830) at TextureManager.cpp:257
#2 0x0000000000819917 in CGUITextureManager::Load (this=0x1cee1f0 <g_TextureManager>, strTextureName=..., checkBundleOnly=checkBundleOnly@entry=false)
at TextureManager.cpp:286
#3 0x000000000080a99e in CGUITextureBase::AllocResources (this=0x5388880) at GUITexture.cpp:346
#4 0x00000000007fbf31 in CGUIControlGroup::AllocResources (this=this@entry=0x3039250) at GUIControlGroup.cpp:73
#5 0x000000000080be38 in CGUIWindow::AllocResources (this=0x3039250, forceLoad=<optimized out>) at GUIWindow.cpp:746
#6 0x000000000080db7d in CGUIWindow::OnMessage (this=this@entry=0x3039250, message=...) at GUIWindow.cpp:552
#7 0x00000000010b2010 in CGUIWindowSettingsCategory::OnMessage (this=0x3039250, message=...) at GUIWindowSettingsCategory.cpp:164
#8 0x0000000000812599 in CGUIWindowManager::PreviousWindow (this=0x2aaddd0) at GUIWindowManager.cpp:322
#9 0x000000000080b996 in CGUIWindow::OnBack (this=<optimized out>, actionID=<optimized out>) at GUIWindow.cpp:916
#10 0x000000000080d63e in CGUIWindow::OnAction (this=0x306e660, action=...) at GUIWindow.cpp:435
#11 0x00000000008103b4 in CGUIWindowManager::OnAction (this=0x2aaddd0, action=...) at GUIWindowManager.cpp:488
#12 0x0000000000a591e6 in CApplication::OnAction (this=0x2a68690, action=...) at Application.cpp:2609
#13 0x0000000000a5a977 in CApplication::OnKey (this=0x2a68690, key=...) at Application.cpp:2524
#14 0x0000000000a5ac68 in CApplication::OnEvent (newEvent=...) at Application.cpp:475
#15 0x00000000010c9b4f in CWinEventsX11Imp::ProcessKey (event=...) at WinEventsX11.cpp:719
#16 0x00000000010ca14b in CWinEventsX11Imp::MessagePump () at WinEventsX11.cpp:535
#17 0x0000000000a5ba9b in CApplication::FrameMove (this=0x2a68690, processEvents=<optimized out>, processGUI=<optimized out>) at Application.cpp:2956
#18 0x0000000000aacab6 in CXBApplicationEx::Run (this=0x2a68690) at XBApplicationEx.cpp:140
#19 0x0000000000aafbeb in XBMC_Run (renderGUI=<optimized out>) at xbmc.cpp:69
#20 0x0000000000783347 in main (argc=5, argv=0x7fff91688ae8) at main.cpp:89
^ this without libgif available (so gif support not compiled in)
(2014-03-29, 09:10)ace20022 Wrote: [ -> ]@stefansaraev thx! Should be fixed.
thanks. confirmed no crashes anymore. without giflib - I can set custom background. just doesnt show up animated (thats expected). with giflib - now animated. idle cpu usage is ~4% without vs ~15% with giflib (hardware is old atom 330 @ 1.6ghz). that's IMO expected too but RPi dudes wont be too much happy
Whats the name of the package lib in Linux? This will need to be adjusted in Ubuntu/Linux readmes as well
libgif-dev: library for GIF images (development) <<-- will defenetly need to add that to readmes...
libgif4 <-- actual lib for users only I presume installing libgif-dev will also install libgif4
(2014-03-29, 12:19)stefansaraev Wrote: [ -> ] (2014-03-29, 09:10)ace20022 Wrote: [ -> ]@stefansaraev thx! Should be fixed.
thanks. confirmed no crashes anymore. without giflib - I can set custom background. just doesnt show up animated (thats expected). with giflib - now animated. idle cpu usage is ~4% without vs ~15% with giflib (hardware is old atom 330 @ 1.6ghz). that's IMO expected too but RPi dudes wont be too much happy
Of course the cpu usage will increase with animated backgrounds.
ok idk if theres version 5 in ubuntu repos at all, so compile?
http://www.linuxfromscratch.org/blfs/vie...iflib.html then giflib also has a dependency according to that page.
Ah right I see the makefile there, nvm ignore me
its make -C lib/giflib && make -C lib/giflib install
animated gifs at such a scale will be HUGE and IMO a no go for skins. There is a reason why video compression has been invented for this kind of animations. It might probably be better to code those animated backgrounds up with python - so having a static background with timer triggered gif overlays (depending on type of animation ofc)