SleepyHead Qt v0.8 alpha

General Discussion on any topic relating to CPAP and/or Sleep Apnea.
User avatar
Breathe Jimbo
Posts: 954
Joined: Sun Sep 12, 2010 3:02 pm
Location: Pasadena, CA

Re: SleepyHead Qt v0.8 alpha

Post by Breathe Jimbo » Wed Jul 20, 2011 7:41 pm

I'd like to see the short sessions, too, as those are often indicia of a really bad night, whatever the reason for short sessions may be.

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Since 9/9/10; 13 cm; ResScan 3.16; SleepyHead 0.9; PapCap

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Wed Jul 20, 2011 9:23 pm

Short_er_ sessions will have to wait till I do the preferences screen. I've got a few things queued up that can't be done via simple view menu checkboxes, so will start soon on this soon hopefully.

Empty sessions will always be ignored (they cause hangs, and the cleanest way to deal with this is ignoring them).. The only real use for short sessions is determining clock sync.. Apart from making things look ugly, I have observed that a high number of short sessions contain corrupted data. It's not a good idea using ultra short sessions as a time marker because of this.

In the meantime, I've fixed a couple of serious waveform timing & sync issues with PR System One loader.. One was screwing up AHI calculations on days with faulty waveform files, and the other was screwing up the overlay position. Sleepyhead will now report down below the session list if it had to try and recover corrupt waveform data.

I have changed my database loader to use Qt storage methods, cleaning up the database code quite a bit.. It's not faster unfortunately, but should solve some import crashes. This has resulting in a change of database format.. SleepApp folder has moved to My Documents where I said it was supposed to go for now. Unfortunately no point copying over for this one, even though I finally fixed the smarts to auto cleanup..

I hope your all using Spo2 review to import your oximeter data as well still.. cos anything imported only into sleepyhead won't be able to carry over. There's still a couple of CMS50 glitches remaining.. CMS50e import support should have improved a bit.. (Thanks to John for hacking that serial stuff)

I uploaded a fresh build here.. it's the one with a date.. It should be default sourceforge selects for windows platform
http://sourceforge.net/projects/sleepyh ... s/Testing/

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
archangle
Posts: 9293
Joined: Sun Mar 27, 2011 11:55 am

Re: SleepyHead Qt v0.8 alpha

Post by archangle » Wed Jul 20, 2011 10:09 pm

I downloaded 0.8-20110721-1.

It crashed the first time I started it. I screwed around with deleting the SleepApp directory, but I think I wasn't deleting the one from the right directory. (Documents.))

Got it working after several tries.

Just because I'm a glutton for punishment, I renamed the "documents" version of sleepapp directory and tried to run SleepyHead again.

It crashed again.

Problem signature:
Problem Event Name: APPCRASH
Application Name: SleepyHead-0.8-20110721-1.exe
Application Version: 0.0.0.0
Application Timestamp: 4e279739
Fault Module Name: SleepyHead-0.8-20110721-1.exe
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 4e279739
Exception Code: c0000005
Exception Offset: 000760fa
OS Version: 6.0.6002.2.2.0.768.3
Locale ID: 1033
Additional Information 1: e52b
Additional Information 2: 82c236f17352391d2f85a441d00b4098
Additional Information 3: a8c8
Additional Information 4: 0077473801d9cd1ad96efa8040d94073


After a few tries, it ran and let me click on import. I selected a saved P Series directory.

Crashed before the end.

Problem Event Name: APPCRASH
Application Name: SleepyHead-0.8-20110721-1.exe
Application Version: 0.0.0.0
Application Timestamp: 4e279739
Fault Module Name: StackHash_cea7
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Code: c0000005
Exception Offset: 00000000
OS Version: 6.0.6002.2.2.0.768.3
Locale ID: 1033
Additional Information 1: cea7
Additional Information 2: 7a0926aa08d73b5f202b6071a7ea463c
Additional Information 3: ea77
Additional Information 4: 1efe264f4a658a61f8c14fc0390c9ccf

After that, it seems to start OK every time.

I notice that the window borders are a little strange on startup. I can't resize except by dragging the lower right corner. After I drag that corner, I can resize by dragging any border or corner.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Also SleepyHead, PRS1 Auto, Respironics Auto M series, Legacy Auto, and Legacy Plus
Please enter your equipment in your profile so we can help you.
Click here for information on the most common alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check for yourself.

Useful Links.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Thu Jul 21, 2011 5:09 am

I have just rewritten the PRS1 Waveform loader.

Instead of trying to all manner of silly ways to resync when timestamps don't add up, or when waveform data is corrupted, I now do it properly and just start a new waveform chunk when they aren't contiguous.

This means SleepyHead waveform sync should perfectly match Encore now.

Now, why are those crashes are happening? I hate crashes.. my least favourite of bugs..
I'll go over the saver/loader code again and see if I missed anything..

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
nudave
Posts: 44
Joined: Fri Jul 01, 2011 5:56 am
Location: Rochester, NY

Re: SleepyHead Qt v0.8 alpha

Post by nudave » Thu Jul 21, 2011 7:27 am

Eventual feature request:

A report view with a print function. I can then use a PDF writer to make a PDF, or print.

User avatar
rosacer
Posts: 1220
Joined: Thu Dec 10, 2009 11:37 am

Re: SleepyHead Qt v0.8 alpha

Post by rosacer » Thu Jul 21, 2011 7:35 am

It crashed too when I open it the first time, but because I'm dieting of problems I tried again and it opened without erasing anything. The only thing is it opens on a reduced window, when I try to make it bigger it becomes smaller and then I try again and it opens full screen.

Thanks Jedymark for all your work.

_________________
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Headrest not modified, Hose Lift System, SleepyHead software. Pressure settings 7 cmH2O constant.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Thu Jul 21, 2011 7:58 am

For once I've been able to replicate both those things..

I thought it was the save feature, but I turned it off and still crashes..

The app resizing thing is just plain weird.. Possibly the two are related..

Unless it doesn't crash with ResMed data?

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

glenj
Posts: 26
Joined: Thu Mar 03, 2011 5:58 pm
Location: Australia

Re: SleepyHead Qt v0.8 alpha

Post by glenj » Thu Jul 21, 2011 4:41 pm

I have just downloaded the latest version you have available and with it or any other version I have never had SleepyHead crash with my ResMed data. I do however have the screen re-sizing issue though.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: ResScan Ver 3.16 / Sleepyhead

User avatar
archangle
Posts: 9293
Joined: Sun Mar 27, 2011 11:55 am

Re: SleepyHead Qt v0.8 alpha

Post by archangle » Thu Jul 21, 2011 8:33 pm

glenj wrote:I have just downloaded the latest version you have available and with it or any other version I have never had SleepyHead crash with my ResMed data. I do however have the screen re-sizing issue though.
Mine also crashed even before I imported any data. Once it gets it out of its system, it doesn't crash any more.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Also SleepyHead, PRS1 Auto, Respironics Auto M series, Legacy Auto, and Legacy Plus
Please enter your equipment in your profile so we can help you.
Click here for information on the most common alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check for yourself.

Useful Links.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Thu Jul 21, 2011 9:10 pm

Great, well, that narrows it down a bit..

At least now I know it's a PRS1 loader bug, and now I know it's not the waveform part, as this has been rewritten..

This has been happening since the ASV changes, so I know where to start looking.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
archangle
Posts: 9293
Joined: Sun Mar 27, 2011 11:55 am

Re: SleepyHead Qt v0.8 alpha

Post by archangle » Thu Jul 21, 2011 10:08 pm

jedimark wrote:Great, well, that narrows it down a bit..

At least now I know it's a PRS1 loader bug, and now I know it's not the waveform part, as this has been rewritten..

This has been happening since the ASV changes, so I know where to start looking.
Well, it also crashed when importing data the first time, but it might be the same bug.

Let me know if you want me to remove the SleepApp, try again and take really careful notes and I'll send that to you if you want.

_________________
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: Also SleepyHead, PRS1 Auto, Respironics Auto M series, Legacy Auto, and Legacy Plus
Please enter your equipment in your profile so we can help you.
Click here for information on the most common alternative to CPAP.
If it's midnight and a DME tells you it's dark outside, go and check for yourself.

Useful Links.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Thu Jul 21, 2011 10:23 pm

It's not much use at the moment, but you can drag the debug window fully open to take the whole screen, and click on import through the file menu, and it will give a running log of the import process.

Unfortunately in that build I didn't put enough debug info.. I turned on extra stuff and it's still not breaking at a consistent point.. Same data card imported multiple times breaks in different spots..

I've got a runaway pointer happening somewhere..

I needed to review this code anyway, so it's probably a good thing.. I can clean up as I go..

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

theSleeper
Posts: 14
Joined: Fri Jul 22, 2011 5:37 am

Re: SleepyHead Qt v0.8 alpha

Post by theSleeper » Fri Jul 22, 2011 6:03 am

Very happy to see this software. Impressed with so much functionality, so easily accessible without all the functions for medical staff. For many months I put my sleep data into a spreadsheet so I could access the data in a way I preferred.

I know it's in development. I guess some comments / room for improvement after using it for a while:
- Pie-chart of event breakdown: PB/CSR should not be part of this chart. It's not an event, it's a period of time. It can be up to 100% of the time.
- 90% pressure. Very different from what EncorePro shows. I see 8.8 with my figures, Encore shows a value of 10.

Possible new features:
- Split AHI diagrams into the components. Good to see separate OA, CA and H.
This is something I do myself to check the level of CA events over a longer time.
- Trend-diagrams: 7 and 31 day averages show very well the progress of the treatment.
This often gives a better picture than a few nights with bad results. Useful to keep users positive.
- csv/spreadsheet output would really be cool

Keep up the good work!.

Sleeper.

User avatar
jedimark
Posts: 1300
Joined: Fri Feb 18, 2011 12:45 am
Location: Bundaberg, Australia
Contact:

Re: SleepyHead Qt v0.8 alpha

Post by jedimark » Fri Jul 22, 2011 7:42 am

theSleeper wrote:Very happy to see this software. Impressed with so much functionality, so easily accessible without all the functions for medical staff. For many months I put my sleep data into a spreadsheet so I could access the data in a way I preferred.

I know it's in development. I guess some comments / room for improvement after using it for a while:
- Pie-chart of event breakdown: PB/CSR should not be part of this chart. It's not an event, it's a period of time. It can be up to 100% of the time.
- 90% pressure. Very different from what EncorePro shows. I see 8.8 with my figures, Encore shows a value of 10.

Possible new features:
- Split AHI diagrams into the components. Good to see separate OA, CA and H.
This is something I do myself to check the level of CA events over a longer time.
- Trend-diagrams: 7 and 31 day averages show very well the progress of the treatment.
This often gives a better picture than a few nights with bad results. Useful to keep users positive.
- csv/spreadsheet output would really be cool

Keep up the good work!.

Sleeper.

Point taken on the PB/CSR thing in pie charts.. It was more a test, and it got left in the chart data-source and forgotten about..

As for the 90%, I use a different statistical model to encore. Technically accurate percentile calculation, but I'm not happy with this method. Note the Time@Pressure candlestick graph in the left panel: Would a better 90% be the 90% of this data?
There is a value stored in the PRS1 machines summary data, but it only has .1 accuracy.. which I don't find acceptable. Unfortunately the summary is quite often corrupted, so this is not a reliable data source for it.

My average calculations are more accurate then Encore by the way. You will find they won't match either.

It isn't my goal to simply match Encore.. My goal to thoroughly kick its butt.

The AHI bar charty thingy is already in the pipeline..
Trend-diagrams? Can you elaborate on this a bit.. Perhaps a screenshot/example somewhere?
CSV's also in the pipeline..

I'm not happy with the overview screen.. I've been focusing a lot more on the actual data itself, and the daily view.. Once everything is good there, I will move on and perfect overview..

----
By the way, I nailed the Windows crash.. It was a Windows only Qt bug in the way I was drawing Fonts in the off-screen graphs (rendered in the left panel's HTML)..
It was a total PITA to track that down.. At least the code got a fairly decent review in the process. I found a workaround, but I need to find an alternative for drawing off-screen vertical fonts (which I don't need until printing comes into play)

The auto maximize thingy is turned off.. doesn't work on windows (or Mac) for some dumb reason.. it was causing the resizing annoyances..

I'll upload a new build once I fix a couple more sync issues.

_________________
Machine: ResMed AirSense™ 10 AutoSet™ CPAP Machine with HumidAir™ Heated Humidifier
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Humidifier: S9™ Series H5i™ Heated Humidifier with Climate Control
Additional Comments: CMS50D+/F Oximeter, S9 VPAP Auto/Adapt, PRS1 Auto, Intellipap Auto, SleepyHead :)
Author of the free, cross platform, open-source sleep tracking software SleepyHead.
Download http://sleepyhead.jedimark.net
Source Code http://gitlab.com/sleepyhead/sleepyhead-code

User avatar
robysue
Posts: 7520
Joined: Sat Sep 18, 2010 2:30 pm
Location: Buffalo, NY
Contact:

Re: SleepyHead Qt v0.8 alpha

Post by robysue » Fri Jul 22, 2011 8:51 am

Reporting bugs here.

First, I did rename the SleepyApp directory that's in the Documents folder for the old version of SleepyHead before starting SleepyHead-0.8-20110721-1

It didn't crash for me, but it's not fully functional either---at least not in the same sense that SleepyHead-0.7-4229 is.

Here's where I'm running into problems with 0 .8-20110721-1:

Application STARTS ok and I can download the data into 0.8-20110721-1 without any problems. The waveform for the last day of the data shows up just fine and the graphs for that data work in the sense of being able to zoom in and so forth.

But if I click on a different day that I know (from SleepyHead-0.7-4229) has wave form data available? The wave form and other detailed graphs do NOT CHANGE. In other words, the graphical data simply stays on the first day that was shown after uploading the data. The data in the sidebar switches just fine however.

And if I click on a day with no waveform data (because I forgot to put the SD card into my PR System One BiPAP Auto all the way that night), then I get "No data available for <date>" in the right part of the window and "No CPAP data available" under the Daily tab on the left sidebar part of the window---even though Encore Viewer still has all the tick marks, the leak data, and the pressure data available for the date.

Also whenever I try to switch tabs---from Daily to Summary for example---the sidebar on the left switches appropriately, but the graphical stuff on the right just simply vanishes---and I basically see whatever is on the computer's desktop underneath or the Welcome to Sleepy Head page (which I see seems to depend on how I got into the daily data in the first place)

Am I missing something really basic in making the 0.8 version work correctly? I ask because I really like its look and feel and the way the tick mark graph does NOT zoom in when you zoom in on the waveform, but I can't use it the way it currently behaves on my Eee PC Seashell netbook that I use for my xPAP data.

_________________
Machine: DreamStation BiPAP® Auto Machine
Mask: Swift™ FX Nasal Pillow CPAP Mask with Headgear
Additional Comments: PR System DreamStation and Humidifier. Max IPAP = 9, Min EPAP=4, Rise time setting = 3, minPS = 3, maxPS=5