Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stop suddenly (23.2, Qt6+Telescope Control) #3308

Closed
tajicoji opened this issue Jul 6, 2023 · 18 comments
Closed

stop suddenly (23.2, Qt6+Telescope Control) #3308

tajicoji opened this issue Jul 6, 2023 · 18 comments
Labels
bug Something likely wrong in the code good first issue Get involved in development! help wanted We may not have the hardware or expertise
Milestone

Comments

@tajicoji
Copy link

tajicoji commented Jul 6, 2023

Expected Behavior

stable operation

Actual Behavior

It worked fine at first, but after a while it quit the moment I touched the window (probably terminated abnormally before that)

Steps to reproduce

  1. Clean install stellarium-23.2-a69d242-qt6-win64.exe
  2. Configure remote control settings
  3. After restarting, specify M42 from the APT object browser and click the SHOW button>>M42 will be displayed in Stellarium
  4. Start telescope control of Stellarium (ASCOM TelescopeSimulator for .NET)
  5. GOTO to the coordinates specified by APT>>Confirm that it is linked to Stellarium

Works fine at first. Keep this state for a while and try clicking the Stellarium Window.

System

  • Stellarium version: stellarium-23.2-a69d242-qt6-win64
  • Operating system: Windows 11
  • Graphics Card: Inter(R) UHD Graphics

Log files

log.txt

@github-actions
Copy link

github-actions bot commented Jul 6, 2023

Thanks for adding your first issue to Stellarium. If you have questions, please do not hesitate to contact us.

@alex-w alex-w added this to Needs triage in Plugin: Telescope Control via automation Jul 6, 2023
@alex-w alex-w added the bug Something likely wrong in the code label Jul 6, 2023
@gzotti gzotti changed the title stop suddenly stop suddenly (23.2, Qt6+Telescope Control) Jul 6, 2023
@gzotti gzotti added help wanted We may not have the hardware or expertise good first issue Get involved in development! labels Jul 6, 2023
@github-actions
Copy link

github-actions bot commented Jul 6, 2023

This is a good task for the community to participate in the contribution into Stellarium. Who wants to help us?

@gzotti
Copy link
Member

gzotti commented Jul 6, 2023

Most likely duplicate of #2821.

@nowani
Copy link

nowani commented Jul 20, 2023

I’m having a similar issue with Stellarium and ASCOM Platform 6.5. The issue occurs when telescope control is enabled and I Alt-Tab out of Stellarium to Windows desktop. The laptop is an HP Folio 840 G8 I7 16GB. Intel Iris Xe graphics.

This issue was occurring on Windows 11. I thought maybe that was the issue so I reformatted the laptop with Windows 10 (22H2) and all updates. Reinstalled ASCOM Platform and telescope drivers for Skywatcher EQ6-R Pro. Installed Stellarium (version listed in issue). Configured ASCOM, opened Stellarium, added telescope. Tested slewing (working). Alt tabbed out of Stellarium and it still crashes.

Note that the only software I installed was Stellarium and telescope control.

I have some programming background but never professionally. I’ve taken many many classes in programming and obtained an AS in computer languages. Took C++ a few years ago. I’ve coded as a hobby for 30 years but always little projects. I would be interested in trying to help fix this issue but I’ve never been involved with GitHub or any large project for that matter. If someone wanted to take me as an apprentice I would not mind learning. I’m between jobs right now. My professional job is IT systems Admin and Senior Desktop tier 3 Support.

@nowani
Copy link

nowani commented Jul 20, 2023

This is actually a very interesting discussion about alt-tabbing and how it can cause programs to crash. A lot of good technical details. An older version of Stellarium (.22.1) works on my laptop. In this newest version, something my have happened that’s not managing the change in state when Stellarium is Alt Tabbed out to a different application.

https://www.reddit.com/r/gamedev/comments/xtg6ug/why_are_some_games_more_prone_to_crash_when_i/#:~:text=if%20you%20are%20alt%2Dtabbing,is)%20to%20update%20itself%20appropriately.&text=threading%2C%20concurrency%2C%20async%20things%20can%20get%20jostled%20pretty%20hard.

@gzotti
Copy link
Member

gzotti commented Jul 20, 2023

Interesting details. IIRC all reported incidents were with Qt6 based builds on Windows. Are there any other common properties that may relate to drivers: Always Intel GPU, always ASCOM, particular ASCOM devices? Was this with the classical or the new sky model? ...

@nowani
Copy link

nowani commented Jul 20, 2023

It seems to be related to ASCOM and Stellarium running together with a connection. I found even the ASCOM simulator with a simulated connection crashes. Stellarium with its own simulator does not crash with Alt Tab switching.

I’ve been out of the hobby for about 3 years and never had these kind of issues before with Stellarium. I decided to test with my old laptop (8 year old Dell Inspiron with I7 and 32 Gb ram). This is the old laptop I used to control my telescope without issue. I updated the laptop today to current Stellarium (23.2) as well as the ASCOM Platform to 6.5. I can repeat the crash on this old laptop when Using an ASCOM connection with Stellarium. It crashed when I Alt Tab To another app.

@gzotti
Copy link
Member

gzotti commented Jul 20, 2023

Does this have Intel, NVidia or AMD GPU?

@freekinfrog
Copy link

Not trying to butt in but ascom has updated to 6.6sp1..i was not sure it the OP made a mistake in stating his current build of 6.5 ascom

@alex-w
Copy link
Member

alex-w commented Sep 11, 2023

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@gzotti
Copy link
Member

gzotti commented Sep 13, 2023

Several Qt6/TelescopeControl issues have been solved before 23.3. We would like to clean-out a large group of related issue reports which are hard to reproduce without actual telescopes or external software. If no follow-up to this happens by November 1, 2023, we will close this as tentatively solved.

@kantn8r
Copy link

kantn8r commented Sep 15, 2023

I'm a Version 1.2.4 (Qt5) users that is hesitant to try a newer Qt6 version. Do you suggest I try the 23.2 (Qt5) version? I see you still maintain the note "Like in the 1.* series, it seems the TelescopeControl plugin at least on Windows works better in the Qt5-based releases", so I'm assuming that Qt6 still has issues.

@10110111
Copy link
Contributor

10110111 commented Sep 15, 2023

The suggestion is to check the latest snapshot (not a release!) of the Qt6 version. A new version is going to be released soon, and we need a confirmation that the issues we think solved are actually solved.

@kantn8r
Copy link

kantn8r commented Sep 15, 2023

OK, you are looking for a guinea pig to test a snapshot. I tried that several times back with 1.1 and 1.2 and the Qt6 versions did not work for me. Just to confirm, you need users (like me) that have had problems with Qt6 to install "stellarium-23.2-75a6ab4-qt6-win64.exe" and see if the bugs have been fixed? Sorry for the extra follow up but I'm an end user, not a programmer and this stuff is way over my head.

@gzotti
Copy link
Member

gzotti commented Sep 15, 2023

Yes, we have found two issues in the Qt6 build after 23.2 was out. These fixes are available in current betas. Some users have already confirmed this solved their problems, but we can use more people testing with their equipment (which we don't have, so we developers cannot check or predict with any certainty whether their equipment works).

@kantn8r
Copy link

kantn8r commented Sep 16, 2023

OK Georg, I've installed [stellarium-23.2-75a6ab4-qt6-win64.exe]. It's cloudy the next few nights so it may take a while to test my equipment.

@kantn8r
Copy link

kantn8r commented Sep 20, 2023

Georg, I tested [stellarium-23.2-75a6ab4-qt6-win64.exe] last night with the CPC 1100, a Windows 10 laptop, CPWI 2.5.2 Final, PHD2 and SharpCap 4.1 using a USB connection to the laptop. I did not have any issues with the Telescope Control plugin. Go-to's, telescope navigation within SharpCap and plate solving all worked fine.

I still need to test my other mount, a Losmandy G11G, that I run with a Ryzen 5 Mini-PC and Windows Remote Desktop. I will provide an update once I test the G11G.

@alex-w alex-w added this to the 23.3 milestone Sep 20, 2023
@alex-w alex-w moved this from Needs triage to In progress in Plugin: Telescope Control Sep 20, 2023
@gzotti
Copy link
Member

gzotti commented Sep 20, 2023

Thanks for testing! Now let's cross fingers the other setup also works.

@alex-w alex-w closed this as completed Sep 21, 2023
Plugin: Telescope Control automation moved this from In progress to Done Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something likely wrong in the code good first issue Get involved in development! help wanted We may not have the hardware or expertise
Projects
Development

No branches or pull requests

7 participants