orocos-toolchain / rtt

Orocos Real-Time Toolkit
http://www.orocos.org
Other
72 stars 79 forks source link

PluginLoader::loadTypekits throws boost::filesystem_error for "File name too long" with long path_list #323

Open pierrewillenbrockdfki opened 3 years ago

pierrewillenbrockdfki commented 3 years ago

The path_list is just very many paths, properly separated by ":", not running on windows(where ":" is not a delimiter).

The text of the cause is

boost::filesystem::status: File name too long

The most probably cause is the call to boost::filesystem::is_regular_file in PluginLoader::loadPluginsInternal with the entire path_list string. According to the boost documentation, boost::filesystem::is_regular_file uses boost::filesystem::status to determine if the file is regular.

Maybe it is time to remove the check, or at least catch the exception and try to go ahead with the split path_list.