Crash with horizon
Crash with horizon
Hi,
I am using the latest 4.2 build and when I enter my horizon, the system crashes.
This is the horizon file from my APPC setup and works fine with it.
Anything I am doing wrong?
Thanks,
Ken
0 33.42
1 33.53
2 33.56
3 33.61
4 33.60
5 33.50
6 33.44
7 33.43
8 33.29
9 33.10
10 32.01
11 31.56
12 31.30
13 30.56
14 29.46
15 16.43
16 15.27
17 14.67
18 14.04
19 14.01
20 14.20
21 14.34
22 14.58
23 14.61
24 14.19
25 13.89
26 13.89
27 13.92
28 13.98
29 14.32
30 16.39
31 17.80
32 18.96
33 19.59
34 21.77
35 27.13
36 28.58
37 29.38
38 30.10
39 32.78
40 33.28
41 33.89
42 33.98
43 34.22
44 34.31
45 34.09
46 34.12
47 34.22
48 34.15
49 34.05
50 34.10
51 34.61
52 35.07
53 35.17
54 35.95
55 36.33
56 36.12
57 36.54
58 36.13
59 36.66
60 37.49
61 37.64
62 37.26
63 36.93
64 36.96
65 37.62
66 38.03
67 38.13
68 38.37
69 38.56
70 36.49
71 36.76
72 36.94
73 37.17
74 37.74
75 39.40
76 39.99
77 40.25
78 40.44
79 40.74
80 41.10
81 41.25
82 41.40
83 41.63
84 41.81
85 41.84
86 41.90
87 42.03
88 41.91
89 41.95
90 42.03
91 42.49
92 42.72
93 43.04
94 42.03
95 46.48
96 47.36
97 47.13
98 47.87
99 49.10
100 49.40
101 50.26
102 50.85
103 51.15
104 51.22
105 51.40
106 50.88
107 50.61
108 50.24
109 49.60
110 49.68
111 49.02
112 49.26
113 49.31
114 49.08
115 49.13
116 49.17
117 48.94
118 48.15
119 48.26
120 48.05
121 47.42
122 47.27
123 47.97
124 48.51
125 49.29
126 50.11
127 49.83
128 50.04
129 49.21
130 49.00
131 48.96
132 48.51
133 48.28
134 47.42
135 47.19
136 46.90
137 46.54
138 46.37
139 45.28
140 45.02
141 44.59
142 43.90
143 42.82
144 41.39
145 40.61
146 39.15
147 38.24
148 36.48
149 35.26
150 33.47
151 32.40
152 31.92
153 31.45
154 31.57
155 31.80
156 31.14
157 30.62
158 29.10
159 28.32
160 26.70
161 25.63
162 25.16
163 24.41
164 24.70
165 24.56
166 24.04
167 24.15
168 23.42
169 23.47
170 22.92
171 22.68
172 22.64
173 22.34
174 22.35
175 21.32
176 20.88
177 25.05
178 24.62
179 24.31
180 23.70
181 23.54
182 22.82
183 22.34
184 23.11
185 24.42
186 23.86
187 23.67
188 23.44
189 24.46
190 25.59
191 26.27
192 26.79
193 26.69
194 26.17
195 26.10
196 26.27
197 26.43
198 25.95
199 26.09
200 26.00
201 26.13
202 26.16
203 26.21
204 27.55
205 26.07
206 26.32
207 26.79
208 27.43
209 27.61
210 27.18
211 27.06
212 27.32
213 27.11
214 26.85
215 26.69
216 26.66
217 26.44
218 26.19
219 26.14
220 25.65
221 25.61
222 25.24
223 25.10
224 24.64
225 23.99
226 23.77
227 22.85
228 22.58
229 22.40
230 22.94
231 22.73
232 22.39
233 22.36
234 22.21
235 21.85
236 21.78
237 21.75
238 21.53
239 21.59
240 21.52
241 21.71
242 21.80
243 21.81
244 22.01
245 22.11
246 21.88
247 22.18
248 22.10
249 22.22
250 22.36
251 22.37
252 22.13
253 22.22
254 22.44
255 22.54
256 22.44
257 22.20
258 22.34
259 22.53
260 22.57
261 22.40
262 22.26
263 21.92
264 21.90
265 21.98
266 22.34
267 23.03
268 23.88
269 21.08
270 20.66
271 20.36
272 20.73
273 21.51
274 21.25
275 22.73
276 23.29
277 23.35
278 23.16
279 22.84
280 22.93
281 22.55
282 22.48
283 22.42
284 22.53
285 22.60
286 22.48
287 22.50
288 22.44
289 22.21
290 22.32
291 22.13
292 22.34
293 22.13
294 21.36
295 20.63
296 20.19
297 20.09
298 19.88
299 19.99
300 19.22
301 18.97
302 18.21
303 17.80
304 17.82
305 18.23
306 18.92
307 19.86
308 20.72
309 21.19
310 21.07
311 21.15
312 21.01
313 20.65
314 20.57
315 20.07
316 19.37
317 18.93
318 18.73
319 18.89
320 18.65
321 18.45
322 18.17
323 17.93
324 17.66
325 17.79
326 17.41
327 16.75
328 16.54
329 16.37
330 16.80
331 22.96
332 21.85
333 22.58
334 23.04
335 23.33
336 23.50
337 23.87
338 23.74
339 23.15
340 22.41
341 19.13
342 19.94
343 20.85
344 24.86
345 23.96
346 27.37
347 27.58
348 27.38
349 27.47
350 27.29
351 27.17
352 27.05
353 26.72
354 26.28
355 26.62
356 27.06
357 27.36
358 33.61
359 33.28
I am using the latest 4.2 build and when I enter my horizon, the system crashes.
This is the horizon file from my APPC setup and works fine with it.
Anything I am doing wrong?
Thanks,
Ken
0 33.42
1 33.53
2 33.56
3 33.61
4 33.60
5 33.50
6 33.44
7 33.43
8 33.29
9 33.10
10 32.01
11 31.56
12 31.30
13 30.56
14 29.46
15 16.43
16 15.27
17 14.67
18 14.04
19 14.01
20 14.20
21 14.34
22 14.58
23 14.61
24 14.19
25 13.89
26 13.89
27 13.92
28 13.98
29 14.32
30 16.39
31 17.80
32 18.96
33 19.59
34 21.77
35 27.13
36 28.58
37 29.38
38 30.10
39 32.78
40 33.28
41 33.89
42 33.98
43 34.22
44 34.31
45 34.09
46 34.12
47 34.22
48 34.15
49 34.05
50 34.10
51 34.61
52 35.07
53 35.17
54 35.95
55 36.33
56 36.12
57 36.54
58 36.13
59 36.66
60 37.49
61 37.64
62 37.26
63 36.93
64 36.96
65 37.62
66 38.03
67 38.13
68 38.37
69 38.56
70 36.49
71 36.76
72 36.94
73 37.17
74 37.74
75 39.40
76 39.99
77 40.25
78 40.44
79 40.74
80 41.10
81 41.25
82 41.40
83 41.63
84 41.81
85 41.84
86 41.90
87 42.03
88 41.91
89 41.95
90 42.03
91 42.49
92 42.72
93 43.04
94 42.03
95 46.48
96 47.36
97 47.13
98 47.87
99 49.10
100 49.40
101 50.26
102 50.85
103 51.15
104 51.22
105 51.40
106 50.88
107 50.61
108 50.24
109 49.60
110 49.68
111 49.02
112 49.26
113 49.31
114 49.08
115 49.13
116 49.17
117 48.94
118 48.15
119 48.26
120 48.05
121 47.42
122 47.27
123 47.97
124 48.51
125 49.29
126 50.11
127 49.83
128 50.04
129 49.21
130 49.00
131 48.96
132 48.51
133 48.28
134 47.42
135 47.19
136 46.90
137 46.54
138 46.37
139 45.28
140 45.02
141 44.59
142 43.90
143 42.82
144 41.39
145 40.61
146 39.15
147 38.24
148 36.48
149 35.26
150 33.47
151 32.40
152 31.92
153 31.45
154 31.57
155 31.80
156 31.14
157 30.62
158 29.10
159 28.32
160 26.70
161 25.63
162 25.16
163 24.41
164 24.70
165 24.56
166 24.04
167 24.15
168 23.42
169 23.47
170 22.92
171 22.68
172 22.64
173 22.34
174 22.35
175 21.32
176 20.88
177 25.05
178 24.62
179 24.31
180 23.70
181 23.54
182 22.82
183 22.34
184 23.11
185 24.42
186 23.86
187 23.67
188 23.44
189 24.46
190 25.59
191 26.27
192 26.79
193 26.69
194 26.17
195 26.10
196 26.27
197 26.43
198 25.95
199 26.09
200 26.00
201 26.13
202 26.16
203 26.21
204 27.55
205 26.07
206 26.32
207 26.79
208 27.43
209 27.61
210 27.18
211 27.06
212 27.32
213 27.11
214 26.85
215 26.69
216 26.66
217 26.44
218 26.19
219 26.14
220 25.65
221 25.61
222 25.24
223 25.10
224 24.64
225 23.99
226 23.77
227 22.85
228 22.58
229 22.40
230 22.94
231 22.73
232 22.39
233 22.36
234 22.21
235 21.85
236 21.78
237 21.75
238 21.53
239 21.59
240 21.52
241 21.71
242 21.80
243 21.81
244 22.01
245 22.11
246 21.88
247 22.18
248 22.10
249 22.22
250 22.36
251 22.37
252 22.13
253 22.22
254 22.44
255 22.54
256 22.44
257 22.20
258 22.34
259 22.53
260 22.57
261 22.40
262 22.26
263 21.92
264 21.90
265 21.98
266 22.34
267 23.03
268 23.88
269 21.08
270 20.66
271 20.36
272 20.73
273 21.51
274 21.25
275 22.73
276 23.29
277 23.35
278 23.16
279 22.84
280 22.93
281 22.55
282 22.48
283 22.42
284 22.53
285 22.60
286 22.48
287 22.50
288 22.44
289 22.21
290 22.32
291 22.13
292 22.34
293 22.13
294 21.36
295 20.63
296 20.19
297 20.09
298 19.88
299 19.99
300 19.22
301 18.97
302 18.21
303 17.80
304 17.82
305 18.23
306 18.92
307 19.86
308 20.72
309 21.19
310 21.07
311 21.15
312 21.01
313 20.65
314 20.57
315 20.07
316 19.37
317 18.93
318 18.73
319 18.89
320 18.65
321 18.45
322 18.17
323 17.93
324 17.66
325 17.79
326 17.41
327 16.75
328 16.54
329 16.37
330 16.80
331 22.96
332 21.85
333 22.58
334 23.04
335 23.33
336 23.50
337 23.87
338 23.74
339 23.15
340 22.41
341 19.13
342 19.94
343 20.85
344 24.86
345 23.96
346 27.37
347 27.58
348 27.38
349 27.47
350 27.29
351 27.17
352 27.05
353 26.72
354 26.28
355 26.62
356 27.06
357 27.36
358 33.61
359 33.28
Re: Crash with horizon
Log file attached
- Attachments
-
- Log_2026-06-18T19_53_45-17524.log
- (37.17 KiB) Downloaded 2 times
-
Jean-Francois
- Posts: 859
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Crash with horizon
Hello Ken,
only one small change ... (you do not read the short explanation
)
I guess it is better to have 0 and 360 position with the same value.
I tested the Custom Horizon too ... and I crashed SharpCap several times.
Regards,
Jean-Francois
only one small change ... (you do not read the short explanation
I guess it is better to have 0 and 360 position with the same value.
I tested the Custom Horizon too ... and I crashed SharpCap several times.
Regards,
Jean-Francois
- admin
- Site Admin
- Posts: 17609
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Crash with horizon
Hi Ken,
thanks for posting - the immediate cause of the issue is that the horizon doesn't finish at azimuth 360 - SharpCap is expecting points at both 0 and 360. There is code that detects this and tries to show a message about it, but that triggers SharpCap to check whether the 'Apply' button should be enabled, and that in turn triggers a re-check of the horizon data, which then tries to set the error info about the horizon and round and round it goes until it crashes...
So, for now, stick an extra point on the end of your horizon data that mirrors the altitude at bearing zero. I will resolve the issue with the error handling for the next update.
cheers,
Robin
thanks for posting - the immediate cause of the issue is that the horizon doesn't finish at azimuth 360 - SharpCap is expecting points at both 0 and 360. There is code that detects this and tries to show a message about it, but that triggers SharpCap to check whether the 'Apply' button should be enabled, and that in turn triggers a re-check of the horizon data, which then tries to set the error info about the horizon and round and round it goes until it crashes...
So, for now, stick an extra point on the end of your horizon data that mirrors the altitude at bearing zero. I will resolve the issue with the error handling for the next update.
cheers,
Robin
Re: Crash with horizon
Thanks Robin and Jean-Francois
It crashed each time I was typing the 360 entry but moot now - will wait for an updated beta.
Ken
It crashed each time I was typing the 360 entry but moot now - will wait for an updated beta.
Ken
-
Jean-Francois
- Posts: 859
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Crash with horizon
Hello Robin,
OK.
I tested yesterday (and this morning too ... I did an occultation at 03:58 local time).
- The graphic lines are not visible (stay black) in the Night Mode.
- Can you can add some vertical lines at W, E, and S direction. The N is already at 0°or 360°.
- The scale .. "50 - 100 - 150 - ..." is not ideal. Can you change it in 45, 90, 135, 180, ... ?
I have at home the corner of the roof that is located backwards ... it seems that all the azimuth values need to be growing or same value, but not coming backwards.
Regards,
Jean-Francois
OK.
I tested yesterday (and this morning too ... I did an occultation at 03:58 local time).
- The graphic lines are not visible (stay black) in the Night Mode.
- Can you can add some vertical lines at W, E, and S direction. The N is already at 0°or 360°.
- The scale .. "50 - 100 - 150 - ..." is not ideal. Can you change it in 45, 90, 135, 180, ... ?
I have at home the corner of the roof that is located backwards ... it seems that all the azimuth values need to be growing or same value, but not coming backwards.
Regards,
Jean-Francois
-
archer1960
- Posts: 98
- Joined: Sun Feb 23, 2025 9:04 pm
Re: Crash with horizon
Do you mean *altitude* values? Why would azimuth values ever decrease; you're just looking around in a clockwise circle from due north...
- admin
- Site Admin
- Posts: 17609
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Crash with horizon
Hi,
good spot on the missing handling of night mode for that graph - I have fixed that and also pinned the maximum vertical axis range to +90 degrees. Also tweaked the minor/major checkmark spacing on the azimuth so you currently get this...
On the increasing/decreasing azimuth thing, if I'm right then Jean-Francois is describing a situation where the *zenith* is obscured, so you need to specify a horizon that either has altitude > 90 degrees, or goes back and forward in azimuth.... Yuck, I will have to think about that as I hadn't considered that sort of problem.
cheers,
Robin
good spot on the missing handling of night mode for that graph - I have fixed that and also pinned the maximum vertical axis range to +90 degrees. Also tweaked the minor/major checkmark spacing on the azimuth so you currently get this...
On the increasing/decreasing azimuth thing, if I'm right then Jean-Francois is describing a situation where the *zenith* is obscured, so you need to specify a horizon that either has altitude > 90 degrees, or goes back and forward in azimuth.... Yuck, I will have to think about that as I hadn't considered that sort of problem.
cheers,
Robin
-
archer1960
- Posts: 98
- Joined: Sun Feb 23, 2025 9:04 pm
Re: Crash with horizon
What about adding an optional additional parameter to each line for the max altitude usable at that azimuth, with the default being just the minimum altitude? And if that particular azimuth is completely obscured (such as a vertical post supporting a roof that you are under, both numbers would be equal?
- admin
- Site Admin
- Posts: 17609
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Crash with horizon
Hi,
yes, that is roughly what Jean-Francois is getting at. My original assumption was that the zenith would be above the horizon in all circumstances, in which case you only need a minimum altitude for each azimuth - the maximum is automatically 90 degrees... If you want to exclude the zenith then you need to specify both a minimum and maximum altitude for each direction (and in some directions they could be the same - you have no view in that direction).
Jean-Francois phrased this question in terms of having a horizon that doubled back on itself - ie something like
10 40
30 20
60 20
70 45
60 80
30 80
10 40
which would kind of define an 'oval' viewing window between azimuth 10 and 70, allowing altitudes 20 to 80 in the middle of the region and a narrower range of altitudes near the end - the 'backward' portion of the horizon would define the maximum altitude limit.
Having thought about this, I'm *not* going to implement the above option, as it allows weird complex horizons to be defined with multiple visibility slots at different altitudes, or even nonsensical 'figure 8' shapes.
Instead, I am planning on having an option where you can optionally specify 3 values in each line of the horizon
azimuth, min altitude, max altitude
That's easy to interpret, easy to calculate visibility from and makes it impossible to define weird nonsense horizons.
cheers,
Robin
yes, that is roughly what Jean-Francois is getting at. My original assumption was that the zenith would be above the horizon in all circumstances, in which case you only need a minimum altitude for each azimuth - the maximum is automatically 90 degrees... If you want to exclude the zenith then you need to specify both a minimum and maximum altitude for each direction (and in some directions they could be the same - you have no view in that direction).
Jean-Francois phrased this question in terms of having a horizon that doubled back on itself - ie something like
10 40
30 20
60 20
70 45
60 80
30 80
10 40
which would kind of define an 'oval' viewing window between azimuth 10 and 70, allowing altitudes 20 to 80 in the middle of the region and a narrower range of altitudes near the end - the 'backward' portion of the horizon would define the maximum altitude limit.
Having thought about this, I'm *not* going to implement the above option, as it allows weird complex horizons to be defined with multiple visibility slots at different altitudes, or even nonsensical 'figure 8' shapes.
Instead, I am planning on having an option where you can optionally specify 3 values in each line of the horizon
azimuth, min altitude, max altitude
That's easy to interpret, easy to calculate visibility from and makes it impossible to define weird nonsense horizons.
cheers,
Robin