olegkutkov / open-phd-guiding

Automatically exported from code.google.com/p/open-phd-guiding
0 stars 0 forks source link

PHD2 Crash if user forgets to install ASCOM #364

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
No biggie, just thought I ought to document this while I was thinking about 
it...

What steps will reproduce the problem?
0. Follow wiki instructions to set up development environment (Windows, in this 
case)
1. Forget to install ASCOM platform
2. Download and build the source trunk (Release and Debug both act the same)
3. Start the newly built phd2.exe
4. Windows popup "phd2.exe has stopped working" appears

What is the expected output? What do you see instead?
Just a normal windows crash report.  Details are:
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name: phd2.exe
  Application Version:  0.0.0.0
  Application Timestamp:    5463efca
  Fault Module Name:    MSVCR120.dll
  Fault Module Version: 12.0.21005.1
  Fault Module Timestamp:   524f7ce6
  Exception Code:   c0000005
  Exception Offset: 000918db
  OS Version:   6.1.7601.2.1.0.768.3
  Locale ID:    1033
  Additional Information 1: 0a9e
  Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
  Additional Information 3: 0a9e
  Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

PHD2 Log:
16:41:08.866 00.031 3444 PHD2 version 2.4.0rc1 begins execution with:
16:41:08.866 00.000 3444    wxWidgets 3.0.2
16:41:08.975 00.109 3444    cfitsio 3.34
16:41:08.975 00.000 3444    opencv 2.4.5
16:41:08.975 00.000 3444 CoInitializeEx returns 1
16:41:08.975 00.000 3444 GetInt("/wxLanguage", 0) returns 0
16:41:08.975 00.000 3444 GetInt("/currentProfile", 0) returns 1
16:41:08.975 00.000 3444 StartWorkerThread(0x00000000) begins
16:41:08.975 00.000 3444 WorkerThread constructor called
16:41:08.975 00.000 3444 StartWorkerThread(0x00AAD840) ends
16:41:08.975 00.000 2460 WorkerThread::Entry() begins
16:41:08.975 00.000 3444 StartWorkerThread(0x00000000) begins
16:41:08.975 00.000 2460 worker thread CoInitializeEx returns 0
16:41:08.975 00.000 3444 WorkerThread constructor called
16:41:08.975 00.000 3444 StartWorkerThread(0x00AAD950) ends
16:41:08.975 00.000 3496 WorkerThread::Entry() begins
16:41:08.975 00.000 3496 worker thread CoInitializeEx returns 0
16:41:08.975 00.000 3444 GetBoolean("/ServerMode", 1) returns 1
16:41:08.975 00.000 3444 GetBoolean("/LoggingMode", 0) returns 0
16:41:08.975 00.000 3444 GetInt("/LoggedImageFormat", 0) returns 0
16:41:09.007 00.032 3444 Status Line 2: 
16:41:09.007 00.000 3444 Status Line 3: 
16:41:09.007 00.000 3444 Status Line 4: 
16:41:09.007 00.000 3444 Status Line 5: No cal
16:41:09.007 00.000 3444 GetInt("/profile/1/NoiseReductionMethod", 0) returns 0
16:41:09.007 00.000 3444 GetDouble("/profile/1/DitherScaleFactor", 1.000000) 
returns 1.000000
16:41:09.007 00.000 3444 GetBoolean("/profile/1/DitherRaOnly", 0) returns 0
16:41:09.007 00.000 3444 GetInt("/profile/1/frame/timeLapse", 0) returns 0
16:41:09.007 00.000 3444 GetBoolean("/profile/1/AutoLoadCalibration", 0) 
returns 0
16:41:09.007 00.000 3444 GetInt("/profile/1/frame/focalLength", 0) returns 0
16:41:09.007 00.000 3444 GetInt("/profile/1/auto_exp/exposure_min", 1000) 
returns 1000
16:41:09.007 00.000 3444 GetInt("/profile/1/auto_exp/exposure_max", 5000) 
returns 5000
16:41:09.007 00.000 3444 GetDouble("/profile/1/auto_exp/target_snr", 6.000000) 
returns 6.000000
16:41:09.007 00.000 3444 AutoExp: config min = 1000 max = 5000 snr = 6.00
16:41:09.007 00.000 3444 AutoExp: reset exp to 5000
16:41:09.007 00.000 3444 GetString("/profile/1/ExposureDuration", "1.0 s") 
returns "1.0 s"
16:41:09.007 00.000 3444 OnExposureDurationSelected: duration = 1000
16:41:09.007 00.000 3444 GetInt("/profile/1/Gamma", 100) returns 100
16:41:09.007 00.000 3444 Changing from state 0 to 0
16:41:09.007 00.000 3444 GetBoolean("/profile/1/guider/FastRecenter", 1) 
returns 1
16:41:09.007 00.000 3444 GetBoolean("/profile/1/guider/ScaleImage", 0) returns 0
16:41:09.007 00.000 3444 
GetDouble("/profile/1/guider/onestar/MassChangeThreshold", 0.500000) returns 
0.500000
16:41:09.007 00.000 3444 
GetBoolean("/profile/1/guider/onestar/MassChangeThresholdEnabled", 1) returns 1
16:41:09.007 00.000 3444 GetInt("/profile/1/guider/onestar/SearchRegion", 15) 
returns 15
16:41:09.007 00.000 3444 GetBoolean("/StickyLockPosition", 0) returns 0
16:41:09.007 00.000 3444 GetString("/geometry", "") returns ""
16:41:09.022 00.015 3444 GetInt("/graph/ScopeOrCameraUnits", 0) returns 0
16:41:09.022 00.000 3444 GetString("/graph/RAColor", "") returns "#6464FF"
16:41:09.022 00.000 3444 GetString("/graph/DecColor", "") returns "#FF0000"
16:41:09.022 00.000 3444 GetInt("/graph/minLength", 50) returns 50
16:41:09.022 00.000 3444 GetInt("/graph/maxLength", 400) returns 400
16:41:09.022 00.000 3444 GetInt("/graph/minHeight", 1) returns 1
16:41:09.022 00.000 3444 GetInt("/graph/maxHeight", 16) returns 16
16:41:09.022 00.000 3444 GetInt("/graph/length", 100) returns 100
16:41:09.022 00.000 3444 GetInt("/graph/height", 4) returns 4
16:41:09.022 00.000 3444 GetInt("graph/HeightUnits", 1) returns 1
16:41:09.022 00.000 3444 GetBoolean("/graph/showCorrections", 1) returns 1
16:41:09.022 00.000 3444 GetBoolean("/graph/showStarMass", 0) returns 0
16:41:09.022 00.000 3444 GetBoolean("/graph/showStarSNR", 0) returns 0
16:41:09.038 00.016 3444 GetInt("/graph_stepguider/length", 1) returns 1
16:41:09.038 00.000 3444 GetInt("/target/length", 100) returns 100
16:41:09.038 00.000 3444 GetDouble("/target/zoom", 1.000000) returns 1.000000
16:41:09.038 00.000 3444 GetBoolean("/profile/1/target/refCircleEnabled", 0) 
returns 0
16:41:09.038 00.000 3444 GetDouble("/profile/1/target/refCircleRadius", 
2.000000) returns 2.000000
16:41:09.085 00.047 3444 GetString("/profile/1/name", "") returns "My Equipment"
16:41:09.085 00.000 3444 GetString("/profile/1/name", "") returns "My Equipment"
16:41:09.100 00.015 3444 Error thrown from cam_ascomlate.cpp:123->ASCOM Camera: 
could not instantiate ASCOM profile class

What version of the product are you using? On what operating system?
Trunk for v2.4.0rc1 on Windows 7 SP1

Please provide any additional information below.

Installing ASCOM (obviously) solves the problem, but it probably shouldn't 
crash--can we add a notification/error popup or something?

Original issue reported on code.google.com by as...@kor.cotse.net on 13 Nov 2014 at 12:05

GoogleCodeExporter commented 9 years ago

Original comment by andy.gal...@gmail.com on 13 Nov 2014 at 7:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1279.

Original comment by andy.gal...@gmail.com on 13 Nov 2014 at 11:09

GoogleCodeExporter commented 9 years ago
Issue 365 has been merged into this issue.

Original comment by andy.gal...@gmail.com on 14 Nov 2014 at 6:53

GoogleCodeExporter commented 9 years ago
Issue 365 has been merged into this issue.

Original comment by balbre...@bmasoft.de on 14 Nov 2014 at 6:57