Solved Xcode problem during running Kodi in CSpecialProtocol::GetPath Mehtod
#1
Hey guys,
i'm pretty new in kodi programmig and developing and i try and wanna do do some stuff for adsp.
after my kodi build in xcode i got a problem during running kodi. It stops and xcode says me the following message

Thread 1: signal SIGABRT

2016-09-09 09:42:40.139 Kodi[25474:303] Debug Print: special://xbmcbinaddons/ is mapped to: /Users/melfstoecken/Documents/ABACUS/RasPi/Kodi/addons
Assertion failed: (false), function GetPath, file /Users/melfstoecken/Documents/ABACUS/RasPi/Kodi/xbmc/filesystem/SpecialProtocol.cpp, line 292.
(lldb)


this is the method in
/source/xbmc/filesystem/SpecialProtocol.cpp

std:Confusedtring CSpecialProtocol::GetPath(const std:Confusedtring &key)
{
std::map<std:Confusedtring, std:Confusedtring>::iterator it = m_pathMap.find(key);
if (it != m_pathMap.end())
return it->second;
assert(false);
return "";
}

if i change assert(false) to assert(true) it works, but i think that isn't the right sollution
My System: Hackintosh OSX 10.11.6; Xcode 8.0 (8A218a), Raspberry Pi 3
Hardware:
Gigabyte GA-Z170X-UD5 TH; Intel Core i7 6700K; 32GB Corsair Vengeance LPX; GeForce 950 GTX
Reply
#2
My Full Debug:

2016-09-09 09:42:39.395 Kodi[25474:303] Debug Print: Detected Mavericks...
2016-09-09 09:42:39.638 Kodi[25474:303] Debug Print: Log level changed to "LOG_LEVEL_DEBUG"
2016-09-09 09:42:39.639 Kodi[25474:800b] Debug Print: Thread Announce start, auto delete: false
2016-09-09 09:42:40.027 Kodi[25474:303] Debug Print: RemoveRecursive - Error removing /Users/melfstoecken/.kodi/temp/archive_cache/
2016-09-09 09:42:40.027 Kodi[25474:303] Debug Print: Failed to remove the archive cache at /Users/melfstoecken/.kodi/temp/archive_cache/
2016-09-09 09:42:40.047 Kodi[25474:303] Debug Print: special://profile/ is mapped to: special://masterprofile/
2016-09-09 09:42:40.047 Kodi[25474:303] Debug Print: -----------------------------------------------------------------------
2016-09-09 09:42:40.048 Kodi[25474:303] Debug Print: Starting Kodi (17.0-BETA2 Git:2016-09-09-638ce47-dirty). Platform: OS X x86 64-bit
2016-09-09 09:42:40.048 Kodi[25474:303] Debug Print: Using Debug Kodi x64 build
2016-09-09 09:42:40.048 Kodi[25474:303] Debug Print: Kodi compiled Sep 7 2016 by Clang 6.0 (clang-600.0.51) for OS X x86 64-bit version 10.8.0 (1080)
2016-09-09 09:42:40.049 Kodi[25474:303] Debug Print: Running on Apple Inc. MacBookPro7,1 with OS X 10.9.5, kernel: Darwin x86 64-bit version 13.4.0
2016-09-09 09:42:40.049 Kodi[25474:303] Debug Print: Host CPU: Intel® Core™2 Duo CPU P8600 @ 2.40GHz, 2 cores available
2016-09-09 09:42:40.049 Kodi[25474:303] Debug Print: special://xbmc/ is mapped to: /Users/melfstoecken/Documents/ABACUS/RasPi/Kodi
2016-09-09 09:42:40.049 Kodi[25474:303] Debug Print: special://xbmcbin/ is mapped to: /Users/melfstoecken/Documents/ABACUS/RasPi/Kodi
2016-09-09 09:42:40.139 Kodi[25474:303] Debug Print: special://xbmcbinaddons/ is mapped to: /Users/melfstoecken/Documents/ABACUS/RasPi/Kodi/addons
Assertion failed: (false), function GetPath, file /Users/melfstoecken/Documents/ABACUS/RasPi/Kodi/xbmc/filesystem/SpecialProtocol.cpp, line 292.
(lldb)
My System: Hackintosh OSX 10.11.6; Xcode 8.0 (8A218a), Raspberry Pi 3
Hardware:
Gigabyte GA-Z170X-UD5 TH; Intel Core i7 6700K; 32GB Corsair Vengeance LPX; GeForce 950 GTX
Reply
#3
When Xcode stops and you end up in the debugger, find out what the value of the "key" parameter is. It should be some path starting with "special://". It's very likely that something is trying to access a special path that hasn't been initialised yet which means that the initialisation sequence is wrong somewhere in the code.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#4
key = (const string &)"xbmcaltbinaddons"

the last entry in m_pathMap should be "xbmcbinaddons" with path to "../../Kodi/addons" when i looked to the right point.
iterator it seems to be emty
My System: Hackintosh OSX 10.11.6; Xcode 8.0 (8A218a), Raspberry Pi 3
Hardware:
Gigabyte GA-Z170X-UD5 TH; Intel Core i7 6700K; 32GB Corsair Vengeance LPX; GeForce 950 GTX
Reply
#5
AFAIK "xbmcaltbinaddons" has been introduced recently and IIRC I've also already seen a bug report because of it, see https://github.com/xbmc/xbmc/commit/2cb1...t-18919478. It should have been fixed by PR10419. Please update to the latest state and try again.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#6
yes that worked! thanks a lot. probably i cloned kodi a few ours befor that update ;-)

thread could be closed
My System: Hackintosh OSX 10.11.6; Xcode 8.0 (8A218a), Raspberry Pi 3
Hardware:
Gigabyte GA-Z170X-UD5 TH; Intel Core i7 6700K; 32GB Corsair Vengeance LPX; GeForce 950 GTX
Reply

Logout Mark Read Team Forum Stats Members Help
Xcode problem during running Kodi in CSpecialProtocol::GetPath Mehtod0