Using savePCDFile produces empty file

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Using savePCDFile produces empty file

Andreas Mueller
Hi everybody.
I tried the example http://pointclouds.org/documentation/tutorials/writing_pcd.php on writing pcd files but it produced an empty file. I am working with the ubuntu package for 1.7.
I tested the return value, but that was 0. I tried both debug and release mode. I am compiling with a minimal CMakeLists.

Any help would be much appreciated.

Cheers,
Andy
Reply | Threaded
Open this post in threaded view
|

Re: Using savePCDFile produces empty file

Radu B. Rusu
Administrator
Andreas,

That's very strange. If that would be a bug, we would have caught it earlier, as we have many unit tests using PCD I/O, and they all pass. Even if you wouldn't have write permissions in that directory, you would still see some errors.

Unfortunately, there's not enough information in your error description in order for us to be able to help you.

Best,
Radu.

On Sep 3, 2013, at 8:00 AM, Andreas Mueller <[hidden email]> wrote:

> Hi everybody.
> I tried the example
> http://pointclouds.org/documentation/tutorials/writing_pcd.php on writing
> pcd files but it produced an empty file. I am working with the ubuntu
> package for 1.7.
> I tested the return value, but that was 0. I tried both debug and release
> mode. I am compiling with a minimal CMakeLists.
>
> Any help would be much appreciated.
>
> Cheers,
> Andy
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Using-savePCDFile-produces-empty-file-tp4029432.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Using savePCDFile produces empty file

Andreas Mueller
Hi Radu.
Thanks for your reply.

I just found out that the error only happens on my NFS home, so I guess
it is a locking problem. I'll work in a local folder for now.

What is a bit odd is that no error is thrown, which makes this error
quite hard to find.
I thought having network homes would be a common setup. Is this known to
fail?

Thanks,
Andy


On 09/03/2013 05:09 PM, Radu B. Rusu wrote:

> Andreas,
>
> That's very strange. If that would be a bug, we would have caught it earlier, as we have many unit tests using PCD I/O, and they all pass. Even if you wouldn't have write permissions in that directory, you would still see some errors.
>
> Unfortunately, there's not enough information in your error description in order for us to be able to help you.
>
> Best,
> Radu.
>
> On Sep 3, 2013, at 8:00 AM, Andreas Mueller <[hidden email]> wrote:
>
>> Hi everybody.
>> I tried the example
>> http://pointclouds.org/documentation/tutorials/writing_pcd.php on writing
>> pcd files but it produced an empty file. I am working with the ubuntu
>> package for 1.7.
>> I tested the return value, but that was 0. I tried both debug and release
>> mode. I am compiling with a minimal CMakeLists.
>>
>> Any help would be much appreciated.
>>
>> Cheers,
>> Andy
>>
>>
>>
>> --
>> View this message in context: http://www.pcl-users.org/Using-savePCDFile-produces-empty-file-tp4029432.html
>> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
>> _______________________________________________
>> [hidden email] / http://pointclouds.org
>> http://pointclouds.org/mailman/listinfo/pcl-users
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Using savePCDFile produces empty file

Radu B. Rusu
Administrator
Interesting - can you enable DEBUG messages in the code snippet by adding:

pcl::console::setVerbosityLevel (pcl::console::L_DEBUG);

?

I think we might be able to learn more about this. From the top of my head, boost's locking might be to blame.

Best,
Radu.

On Sep 3, 2013, at 8:19 AM, Andy Mueller <[hidden email]> wrote:

> Hi Radu.
> Thanks for your reply.
>
> I just found out that the error only happens on my NFS home, so I guess
> it is a locking problem. I'll work in a local folder for now.
>
> What is a bit odd is that no error is thrown, which makes this error quite hard to find.
> I thought having network homes would be a common setup. Is this known to fail?
>
> Thanks,
> Andy
>
>
> On 09/03/2013 05:09 PM, Radu B. Rusu wrote:
>> Andreas,
>>
>> That's very strange. If that would be a bug, we would have caught it earlier, as we have many unit tests using PCD I/O, and they all pass. Even if you wouldn't have write permissions in that directory, you would still see some errors.
>>
>> Unfortunately, there's not enough information in your error description in order for us to be able to help you.
>>
>> Best,
>> Radu.
>>
>> On Sep 3, 2013, at 8:00 AM, Andreas Mueller <[hidden email]> wrote:
>>
>>> Hi everybody.
>>> I tried the example
>>> http://pointclouds.org/documentation/tutorials/writing_pcd.php on writing
>>> pcd files but it produced an empty file. I am working with the ubuntu
>>> package for 1.7.
>>> I tested the return value, but that was 0. I tried both debug and release
>>> mode. I am compiling with a minimal CMakeLists.
>>>
>>> Any help would be much appreciated.
>>>
>>> Cheers,
>>> Andy
>>>
>>>
>>>
>>> --
>>> View this message in context: http://www.pcl-users.org/Using-savePCDFile-produces-empty-file-tp4029432.html
>>> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
>>> _______________________________________________
>>> [hidden email] / http://pointclouds.org
>>> http://pointclouds.org/mailman/listinfo/pcl-users
>> _______________________________________________
>> [hidden email] / http://pointclouds.org
>> http://pointclouds.org/mailman/listinfo/pcl-users
>
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Using savePCDFile produces empty file

Andreas Mueller
"interesting" seems to be the right word ;)
I get

[pcl::PCDWriter::setLockingPermissions] File test_pcd.pcd locked succesfully.

as the only message (btw there is a typo in successfully ;).
Reply | Threaded
Open this post in threaded view
|

Re: Using savePCDFile produces empty file

Radu B. Rusu
Administrator
Ok, this is going to be hard to debug. I'm not familiar with your NSF configuration to see if there's something odd preventing the write to happen. I'm pretty sure this worked without problems in the past (the home directory used to be NSF mounted at my previous job). Perhaps a recent commit broke it? (Too bad this is one of those edge cases that can't be unit tested).

I'll let others chime in.

Can you submit a pull request with the typo on GitHub please?

Best,
Radu.

On Sep 3, 2013, at 8:26 AM, Andreas Mueller <[hidden email]> wrote:

> "interesting" seems to be the right word ;)
> I get
>
> [pcl::PCDWriter::setLockingPermissions] File test_pcd.pcd locked
> succesfully.
>
> as the only message (btw there is a typo in successfully ;).
>
>
>
> --
> View this message in context: http://www.pcl-users.org/Using-savePCDFile-produces-empty-file-tp4029432p4029436.html
> Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Using savePCDFile produces empty file

Andreas Mueller
Thanks a lot for your feedback. That one is indeed hard to debug and unit test.
Maybe something is odd about our NFS setup, and I'm not all that familiar with the details.
If boost doesn't detect something is wrong, I guess it is hard for you to do anything :-/
Well, maybe someone else has an idea.

Cheers,
Andy