SuuntoXML - Abnormal program termination

Discussions about Diving Log 6.0 - questions and hints
RogerSelwyn
Posts: 38
Joined: Thu Aug 25, 2011 17:18

SuuntoXML - Abnormal program termination

Post by RogerSelwyn »

Hi Alll,

I'm after some advice. I have a Vyper Air which has been downloading fine into Diving Log 5.0.6. I've just gone diving this week-end, and trying to download. At 97% I get a dialogue box with the title 'SuntoXML.exe' and text 'Abnormal program termination'.

Is this a known bug with SuuntoXML.exe, or is it a problem in Diving Log? Is there any info I can supply to help identify the issue?

Thanks
Roger
RogerSelwyn
Posts: 38
Joined: Thu Aug 25, 2011 17:18

Re: SuuntoXML - Abnormal program termination

Post by RogerSelwyn »

I've just run SuuntoXML 3.0.4.30 in debug mode and get this:-

Code: Select all

15:23:03_279_183C: Detail:: RingBuffer::read() begin
15:23:03_279_183C: Detail:: Page::fetch() adjusting for Memory Top new page size = 113
15:23:03_279_183C: Detail:: Page::fetch() Reading profile @ address 0x7FC4 
15:23:03_965_183C: Detail:: Page::fetch() Reading profile @ address 0x19A 
15:23:04_667_183C: Detail:: RingBuffer::read() Completed   amount = 78
15:23:04_667_183C:  Error:: DownLoadControl:: Header Size Error - End Not Found 
Is there any way round this other than erasing everything on the computer?
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: SuuntoXML - Abnormal program termination

Post by divinglog »

Hi Roger

Try the universal downloader in Diving Log.

Kind regards,
Sven
RogerSelwyn
Posts: 38
Joined: Thu Aug 25, 2011 17:18

Re: SuuntoXML - Abnormal program termination

Post by RogerSelwyn »

Hi Sven,

Thanks I'll give the universal downloader a go, but it doesn't download all the detail the SuuntoXML one does. I think it misses out events such as 'slows' amongst other things.

Cheers
Roger
rene
Posts: 65
Joined: Sun Sep 12, 2010 19:07
Location: France

Re: SuuntoXML - Abnormal program termination

Post by rene »

Hello,

I have a Suunto Vyper Air too and I have checked...

And that's true... neither the universal downloader nor the DM4 database import adds the warnings.

However, my dives of last october have the RBT and ascent warnings. I don't remember how I had added to Diving Log (the built-in import from Suunto DM4 or my own program). Probably my own program if I rely on the dates.

Here is how I translate DM4 -> DivingLog profile information.

Code: Select all

			sprintf(buf, "select MarkTime,Type from Mark where DiveId=%d order by MarkTime", DiveId);
			rc = sqlite3_prepare_v2(db, buf, -1, &stmt2, NULL);
			if (rc == SQLITE_OK) {

				while (sqlite3_step(stmt2) == SQLITE_ROW) {		
					k = sqlite3_column_int(stmt2, 0) / SampleInterval;
					int type = sqlite3_column_int(stmt2, 1);

					if ((int)profile.size() < k) profile.resize(k);

					if (type == 1)			// Ascent warning
						profile[k].A = 1;
					else if (type == 4)		// Mandatory safety stop
						profile[k].R = 1;
					else if (type == 257)	// Dive active
						;//profile[k].R = 1;
					else if (type == 19)	// Surfaced
						;//profile[k].R = 1;
					else if (type == 6)		// Mandatory safety stop ceiling error
						profile[k].S = 1;
				}

				sqlite3_finalize(stmt2);
			}
And the DiveMark I have understood / found :

Code: Select all

enum DiveMark
{
	AscentWarning		= 1,				// Ascent warning
	MandatorySafetyStop = 4,				// Mandatory safety stop
	DiveActive			= 257,				// Dive active
	Surfaced			= 19,				// Surfaced
	
	MandatorySafetyStopCeilingError = 6,	// Mandatory safety stop ceiling error
	Bookmark			= 258,				// Bookmark

	HighPpO2            = 28,				// High ppO2
	AirTimeAlarm        = 13,				// Air time alarm
};
Sven, I can send you a DM4.db with a lot of warnings if you want :D

Regards,
rené
RogerSelwyn
Posts: 38
Joined: Thu Aug 25, 2011 17:18

Re: SuuntoXML - Abnormal program termination

Post by RogerSelwyn »

Hi Sven,

Yes I can download the data with the universal downloader, and just checked against old dives, it doesn't download ascent warnings.

Is there any extract I can provide from the Vyper which will enable the universal downloader to extract the relevant warnings?

Cheers
Roger
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: SuuntoXML - Abnormal program termination

Post by divinglog »

Hi Roger

You can help Jef adding the warnings: viewtopic.php?f=10&t=1296
Maybe the suunto downloader will start working again when you've done another dive.

Cheers,
Sven
RogerSelwyn
Posts: 38
Joined: Thu Aug 25, 2011 17:18

Re: SuuntoXML - Abnormal program termination

Post by RogerSelwyn »

Hi Sven,

I've sent you an email with the XML extract from the Universal Test app. The output from that is showing the warnings, so I think that means that Diving Log isn't picking them up.

Cheers
Roger
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: SuuntoXML - Abnormal program termination

Post by divinglog »

Hi Roger

Thank you for the file!

@René: Yes, please send me the SDM 4 file, too. I'll try to implement the warnings also in the SDM 4 in the import.

Kind regards,
Sven
RogerSelwyn
Posts: 38
Joined: Thu Aug 25, 2011 17:18

Re: SuuntoXML - Abnormal program termination

Post by RogerSelwyn »

Cool!! I won't ask for a timeline, I also do (opensource) development and know the dangers of commiting on that :D
lpisati
Posts: 4
Joined: Sat Apr 16, 2011 12:18
Location: Paris

Re: SuuntoXML - Abnormal program termination

Post by lpisati »

I had the same issue with my new Suunto Air (black)
On DM4 program by Suunto I can see the following alerts :
- Surfaced
- Dive active
- Ascent warning
- Mandatory safety stop
- Mandatory safety stop ceiling error
None imports into Divinglog
Once you have a patch, will it be possible to just reload profile data into existing dive logs ?
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: SuuntoXML - Abnormal program termination

Post by divinglog »

Some of the alerts are already imported in version 5.0.7. I cannot import all of them right now, because Diving Log does not support all kind of profile events. These cannot be imported at the moment:

- Surfaced
- Dive active
- Mandatory safety stop
- Mandatory safety stop ceiling error

Supported are currently:

- Deco Yes/No
- Ascent Warning
- Deco Stop ignored
- Work Warning
- RBT Warning
smalldragoon
Posts: 2
Joined: Thu Jun 28, 2012 10:47

Re: SuuntoXML - Abnormal program termination

Post by smalldragoon »

Hi guys,
regarding the problem of synch with the vypre air, did you solve it ? I have the same issue :(
Thx
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: SuuntoXML - Abnormal program termination

Post by divinglog »

Try to use the "Universal Downloader" instead of the "Suunto Downloader".
smalldragoon
Posts: 2
Joined: Thu Jun 28, 2012 10:47

Re: SuuntoXML - Abnormal program termination

Post by smalldragoon »

HI,
Yes it works, but I'm missing % of O2 as ex or some warnings
I understand that it works in 5.0.6, where can I get it ?
thx
Lionel
Post Reply