Page 1 of 1

Cumulus bugreport at startup program

Posted: Fri 28 Sep 2012 1:43 pm
by algoshev
Hello
I’m trying to use Cumulus software installed on a computer running Windows XP SP3 and Windows 7, but I have a problem with bugreport :
When I run the program immediately pops up a message about bugreport.txt file
That picture below is screenshot of bug report.
Image

Full size: http://media.snimka.bg/s1/1164/028572406-big.jpg

Note that when I run the program, weather station is not connected to the computer!
In general, is it normal to appear a bug reports and how to eliminate them, so to continue with Cumulus configuration?
Thank you in advance for any information and advice!

Alexander

Re: Cumulus Bugreport at startuo program

Posted: Fri 28 Sep 2012 1:50 pm
by steve
I can't say why it crashed without seeing the bugreport.txt file. But it could well be because you don't have a station connected. The readme.txt file does say "Make sure you always have your station connected to your PC before starting Cumulus.". It shouldn't crash, of course, but I don't have the time to make it work perfectly in all situations; you have to treat it nicely.

Re: Cumulus bugreport at startup program

Posted: Fri 28 Sep 2012 2:07 pm
by algoshev
Of course, I had to attach and bugreport.txt file. Here it is without the first part.
main thread ($1704):
0043800b +006f cumulus.exe System.Variants VarCastError
0043844a +001a cumulus.exe System.Variants VarResultCheck
0043b81a +00b2 cumulus.exe System.Variants VarToDateAsString
0043bbb1 +01f5 cumulus.exe System.Variants @VarToDate
00440ceb +0003 cumulus.exe System.Variants VarToDateTime
00b38c5f +01bb cumulus.exe MainUnit 4284 +24 ReadTodayFile
00b5670d +1a01 cumulus.exe MainUnit 7881 +349 TMainForm.FormCreate
00566971 +0031 cumulus.exe Vcl.Forms TCustomForm.DoCreate
005665b5 +0011 cumulus.exe Vcl.Forms TCustomForm.AfterConstruction
00407b95 +001d cumulus.exe System 2116 +0 @AfterConstruction
00566585 +01a1 cumulus.exe Vcl.Forms TCustomForm.Create
00570fb2 +0076 cumulus.exe Vcl.Forms TApplication.CreateForm
00b872ec +0038 cumulus.exe Cumulus 65 +4 initialization
7771ed6a +0010 kernel32.dll BaseThreadInitThunk

thread $11c8:
77916a02 +0a ntdll.dll NtWaitForMultipleObjects
75b16a30 +00 KERNELBASE.dll WaitForMultipleObjectsEx
7771bd19 +89 kernel32.dll WaitForMultipleObjectsEx
7771bd87 +13 kernel32.dll WaitForMultipleObjects
7771ed6a +10 kernel32.dll BaseThreadInitThunk

thread $420:
77916a02 +0a ntdll.dll NtWaitForMultipleObjects
7771ed6a +10 kernel32.dll BaseThreadInitThunk

thread $13cc:
77916a32 +0a ntdll.dll NtWaitForWorkViaWorkerFactory
7771ed6a +10 kernel32.dll BaseThreadInitThunk

thread $7b0:
779157d2 +00a ntdll.dll NtDelayExecution
75b11870 +04f KERNELBASE.dll SleepEx
75b11813 +00a KERNELBASE.dll Sleep
00463471 +001 cumulus.exe System.Classes TThread.Sleep
008632a1 +365 cumulus.exe HotLog 1820 +93 THotLogParser.Execute
004626fe +042 cumulus.exe System.Classes ThreadProc
00409168 +028 cumulus.exe System 2116 +0 ThreadWrapper
7771ed6a +010 kernel32.dll BaseThreadInitThunk

thread $ae4:
779157d2 +00a ntdll.dll NtDelayExecution
75b11870 +04f KERNELBASE.dll SleepEx
75b11813 +00a KERNELBASE.dll Sleep
00463471 +001 cumulus.exe System.Classes TThread.Sleep
0086bf22 +3fe cumulus.exe HotLog 3517 +100 THotLogWriter.Execute
004626fe +042 cumulus.exe System.Classes ThreadProc
00409168 +028 cumulus.exe System 2116 +0 ThreadWrapper
7771ed6a +010 kernel32.dll BaseThreadInitThunk

disassembling:
[...]
00b38c38 push eax
00b38c39 mov ecx, $b3a7e4
00b38c3e mov edx, $b3a7c8
00b38c43 mov eax, [ebp-$54]
00b38c46 mov ebx, [eax]
00b38c48 call dword ptr [ebx+4]
00b38c4b 4284 lea eax, [ebp-$228]
00b38c51 mov edx, [ebp-$1c]
00b38c54 call -$6fa875 ($43e3e4) ; System.Variants.@VarFromUStr
00b38c59 lea eax, [ebp-$228]
00b38c5f > call -$6f7f7c ($440ce8) ; System.Variants.VarToDateTime
00b38c64 fstp qword ptr [$bba2f8]
00b38c6a wait
00b38c6b 4292 mov eax, [$bba2f8]
00b38c71 mov [ebp-$98], eax
00b38c77 mov eax, [$bba2fc]
00b38c7d mov [ebp-$94], eax
00b38c83 push dword ptr [ebp-$94]
00b38c89 push dword ptr [ebp-$98]
00b38c8f lea edx, [ebp-$2c]
00b38c92 mov eax, [$bbcfd4]
[...]

Sorry for the long text, but if you see the exact cause of the bug, I will be happy to learn it. :oops: :)

Re: Cumulus bugreport at startup program

Posted: Fri 28 Sep 2012 2:24 pm
by steve
It's better to attach the file, rather than pasting extracts from it. Then I'd be able to see other useful information, like which version and build of Cumulus you're using, since you haven't told me ;)

It's crashing in the system code (i.e. not in Cumulus itself) trying to convert a string from the today.ini file into a date and time. But I'm not sure this is a useful way for either of us to spend our time, if you don't yet have a weather station connected. I don't really understand what it is you're trying to do; Cumulus is intended to be used with a weather station.

Re: Cumulus bugreport at startup program

Posted: Fri 28 Sep 2012 2:31 pm
by algoshev
Thank you Steve!
I will start the program with the weather station connected, and will e-mail you the bugreport.txt file.
That will happen tomorrow!

Re: Cumulus bugreport at startup program

Posted: Fri 28 Sep 2012 2:52 pm
by steve
algoshev wrote:I will start the program with the weather station connected, and will e-mail you the bugreport.txt file.
Or attach it here, preferably. But hopefully when you have a station connected, it won't crash anyway. You may need to delete any files in the Cumulus data folder that have been created so far without a station connected.

Re: Cumulus bugreport at startup program

Posted: Tue 02 Oct 2012 6:29 am
by algoshev
Hello!
Bad news:
I connected weather station / WS2350/ to the PC through the serial port.
Unfortunately, the Cumulus software gives exactly the same message for bugreport
Here are two screen shots
http://media.snimka.bg/s1/1185/028614905-big.jpg
http://media.snimka.bg/s1/1185/028614904-big.jpg
In data folder there is no information!
Note that the message of bugreport apears both computer under the Windows XP CP3 as well as on Windows 7
Steve,
Please tell me where I'm wrong, because in practice Cumulus does not start normally. Because of this bugreport I can not work with any of the menus.
Because I do not know how to attach a file bugreport.txt here, I already send it to your e-mail!
I anticipate specific advice because I think that's normal Cumulus to crash on this way. :(

Re: Cumulus bugreport at startup program

Posted: Tue 02 Oct 2012 7:33 am
by steve
It's something to do with the date/time format on your PC. Please zip up the diags folder and attach it here. Instructions for doing this are in the post linked to above, "Please click here before posting".

Re: Cumulus bugreport at startup program

Posted: Tue 02 Oct 2012 10:41 am
by algoshev
Here attached diags folder
I really wonder how I would have a problem with date/time format on my PC. All other pragrams including and weather software operating normally with the current settings. :!: :?
Steve, did you already saw the bugreport.txt wich I e-mail this morning?

Re: Cumulus bugreport at startup program

Posted: Tue 02 Oct 2012 11:29 am
by steve
Cumulus gets the Delphi system code to create a string containing the current date and time in the correct format for the system locale. It then tries to read the time that Cumulus was last closed down from the 'timestamp' in the today.ini file. If no today.ini file exists, it uses the string that was created instead, and gets the system code to convert that back into a date and time in internal binary format. The system code is crashing when given the string to convert.

It appears that this is a known bug in the Delphi runtime: http://qc.embarcadero.com/wc/qcmain.aspx?d=104942

I will see if I can apply the fix to the Delphi runtime which is mentioned in that article.

Re: Cumulus bugreport at startup program

Posted: Tue 02 Oct 2012 12:37 pm
by algoshev
Thanks for the response,
but I did not understand the comment above, sorry. ...
Just interested еxactly how to fix the bug so I can use the Cumulus software in normal way?

Re: Cumulus bugreport at startup program

Posted: Tue 02 Oct 2012 12:48 pm
by steve
It's basically a bug in the tools I use to create Cumulus, which affects the date settings used in some countries, e.g. Bulgaria. There is a fix, but I don't know if I can apply that fix so that I can make a new version of Cumulus which will work with Bulgarian date settings. It's the '/' at the end which causes the problem, apparently.

If I can't apply the fix, then Cumulus won't work with Bulgarian date settings.

Re: Cumulus bugreport at startup program

Posted: Wed 03 Oct 2012 11:00 am
by algoshev
The problem is solved!
I just changed Bulgarian with English /United States/ settings in the Control panel>>>Regional and Language options
After the start of the program, now everything is OK!
Thanks again, Steve! :) :clap:

Re: Cumulus bugreport at startup program

Posted: Wed 03 Oct 2012 11:10 am
by steve
I've managed to apply the fix to the system code, and built a new version of Cumulus which works with Bulgarian settings. I'll be uploading it soon, and it will be announced in the 1.9.3 announcement thread in the Announcements and News section of the forum.

Note that if you start using Cumulus with US settings, you may experience problems if you later switch to Bulgarian settings.