SkyWhiteEagle commented on issue #643: URL: https://github.com/apache/celix/issues/643#issuecomment-1730855112
Hello, I was able to track the problem in a RelWithDebInfo build. I did purge the whole Conan just in case (remove and cache clean to be safe) and re-exported Celix after pulling to get latest commits. Celix commit: ```text 3710082906a1847f0594729ccc247db7301aec13 ``` Debug: ```text libs/utils/src/celix_file_utils.c:224 => celix_utils_writeOrCreateString returns ".cache/bundle1/resources/libShellCxx.so.2" libs/utils/src/celix_file_utils.c:230 => the if is false, celix_utils_createDirectory is not called, no resources folder libs/utils/src/celix_file_utils.c:234 => resources folder missing, fopen errors out Note that it is working correctly for bundle 2 (TUI I believe). In bundle 2, ".cache/bundle2/resources/META-INF/" is the path returned by celix_utils_writeOrCreateString on the first iteration, which triggers the if and the folder creation. Also, manually creating the resources folder in bundle 1 right before the fopen fixes the issue. ``` Not sure why the order is different, but ensuring the destination folder is created first looks like it would fix the problem. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org