yet another WIndows installer

Jef Driesen jefdriesen at telenet.be
Fri May 17 07:08:25 PDT 2013


On 2013-05-17 15:52, Dirk Hohndel wrote:
> On Fri, 2013-05-17 at 06:53 +0300, Miika Turkia wrote:
> I think I have hit this issue or similar a couple of times. My
> Stinger's serial cable has a mind of its own and whenever the download
> fails, I have to restart Subsurface for it to work again. (I have not
> tried the canceling, but sounds like the bug might be the same.)
> 
> I need to experiment with my Mosquito a little more and see if I can
> reproduce this.

Just a wild guess, but could it be that in the case of an error the 
libdivecomputer device handle isn't closed properly? Libdivecomputer 
opens serial ports with exclusive access, and thus if the file 
descriptor isn't closed, all further attempts to open the port will 
fail. At least until the application is closed, and the OS releases the 
leaked file descriptor again. That sounds like a perfect explanation for 
Miika's report.

 From just a quick glance at the subsurface code, this doesn't seem to be 
the case, but I could have missed something.

Jef


More information about the subsurface mailing list