2013-07-03, 17:33
Hi,
I have detected a problem with the XBMC version for Android related to binary addons contained in a ZIP file.
When you try to install a PVR addon from a ZIP file it won't work because you can't load native libraries located on the SD card. The SD card is mounted with the noexec option, so you need to copy the library to the internal memory before loading it.
I have come to the conclusion after a lot of attempts to load a test addon. When I built XBMC with the addon already integrated there was no problem, even I could uninstall it and load it from a ZIP. The problem appeared when I tried to load my test addon to the official XBMC apk.
The last try I have done to confirm the problem is the noexec option and not a problem with my test addon has been to build an XBMC apk with no PVR addons integrated and trying to load the Demo Addon from the official build. This is what I get:
This error message took me to the real problem: http://stackoverflow.com/questions/62910...ap-segment
I have detected a problem with the XBMC version for Android related to binary addons contained in a ZIP file.
When you try to install a PVR addon from a ZIP file it won't work because you can't load native libraries located on the SD card. The SD card is mounted with the noexec option, so you need to copy the library to the internal memory before loading it.
I have come to the conclusion after a lot of attempts to load a test addon. When I built XBMC with the addon already integrated there was no problem, even I could uninstall it and load it from a ZIP. The problem appeared when I tried to load my test addon to the official XBMC apk.
The last try I have done to confirm the problem is the noexec option and not a problem with my test addon has been to build an XBMC apk with no PVR addons integrated and trying to load the Demo Addon from the official build. This is what I get:
Code:
07-03 17:14:40.377: V/XBMC(21732): 17:14:40 T:12683040 DEBUG: PVR - ADDON_STATUS PVR::CPVRClient::Create(int) - creating PVR add-on instance 'Test Client'
07-03 17:14:40.377: V/XBMC(21732): 17:14:40 T:12683040 DEBUG: ADDON: Dll Initializing - Test Client
07-03 17:14:40.387: V/XBMC(21732): 17:14:40 T:12683040 DEBUG: SECTION:LoadDLL(/mnt/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.test/libXBMC_Demo.so)
07-03 17:14:40.387: V/XBMC(21732): 17:14:40 T:12683040 DEBUG: Loading: /mnt/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.test/libXBMC_Demo.so
07-03 17:14:40.387: V/XBMC(21732): xb_dlopen: Error from dlopen(/mnt/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.test/libXBMC_Demo.so): Cannot load library: load_segments[915]: 139 failed to map segment from 'libXBMC_Demo.so' @ 0x611bb000 (0x00075c4c). p_vaddr=0x00000000 p_offset=0x00000000
07-03 17:14:40.387: V/XBMC(21732): 17:14:40 T:12683040 ERROR: Unable to load /mnt/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons/pvr.test/libXBMC_Demo.so, reason: (null)
07-03 17:14:40.387: V/XBMC(21732): 17:14:40 T:12683040 INFO: Called Add-on status handler for '4' of clientName:Test Client, clientID:pvr.test (same Thread=no)
07-03 17:14:40.397: V/XBMC(21732): 17:14:40 T:12683040 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to create add-on Test Client, status = 6
07-03 17:14:40.397: V/XBMC(21732): 17:14:40 T:12683040 WARNING: bool PVR::CPVRClients::UpdateAndInitialiseClients(bool) - failed to load the dll for add-on Test Client, disabling it
This error message took me to the real problem: http://stackoverflow.com/questions/62910...ap-segment