Hello, I am refactoring the net code to move some parts in a net_traits crate as per https://github.com/servo/servo/issues/4476 (my commit on personal branch: https://github.com/gilles-leblanc/servo/commit/87b380b3e8065800c293a060b9cdc12df4d7243d ).
I am stuck as I have 5 unit tests failures in image_cache_task.rs. The failure messages are as follow: ERROR:net_traits::image::base: stb_image failed: stbi_load_from_memory failed and thread 'ImageCacheTask (listener)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', /home/larsberg/rust/src/libcore/result.rs:744 I noticed that the error message mentions /home/larsberg/ which is kind of weird. The `test.jpeg` file needed by the test is found in it's new location because if I move it to another folder those tests fail with a message mentioning the file `test.jpeg` could not be found. There is a check in image::base::load_from_memory to check that the loaded image (in a parameter called buffer of type &[u8]) is not of length 0 which passes correctly. Then the function calls the load_from_memory_with_depth function from the external library stb_image which ends up throwing this error: https://github.com/servo/rust-stb-image/blob/master/src/image.rs#L130, because a buffer returned by a bound function returns is evaluated to is_null. I have double checked for possible merge errors during the rebase, chmod the jpeg's permission and tried move the image and the reading code to a sub-folder. I am stuck on what to do next and would appreciate some input. Thanks, Gilles _______________________________________________ dev-servo mailing list dev-servo@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-servo