-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
Stellarium waiting several seconds on 'Audio' at startup #3725
Comments
Is it from our PPA? |
Yes, after installing Ubuntu and Stellarium with |
I also thought this first of all. From the code it looks like it's only used in the scripting engine, to make it possible for scripts to emit sounds. |
Yes, audio is required by the scripting engine, so this is required. Just like you have an audio system in a physical planetarium. |
Please check the fresh beta version of Stellarium: |
Hello @freebrowser1! We really need your feedback. |
@alex-w I strongly believe that disabling media support in the install files on all platforms will make more users unhappy than delaying startup by a few seconds on some systems. A viable solution would be an option (config.ini or command line) to switch off media support, which would prevent loading/initializing of the demanding (?) infrastructure. This may solve or prevent OP's case found in the logfile:
Or maybe @freebrowser1 's Gstreamer is just broken, which takes a few seconds to recover after (or before?) this message. |
@gzotti media support is disabled by default now. In any way our official packages for windows and macos provide media support. The media support in linux packages is not important and this task in hands of maintainers. |
Why? Do Linux users not use scripting?.. |
I just wonder, can you still even buy a system without sound support? No AC97, no Intel sound chip on board? I remember my last add-on sound card was in the 1990s. Or is this OP's system deliberately configured without sound support? (Kernel module deliberately disabled?) In the latter case, Stellarium worked as could have been expected: trying to initialize sound subsystem, and giving up after some time, emitting an error message, and starting. If single users want no sound and know how to disable the Kernel module, they also know or can easily find out how to build the program without multimedia support on their systems without the rest of Linux users suffering. And if we are complaisant, we add another runtime option. But don't disable a feature that works well on the vast majority of systems. |
Media support is important for real planetariums, and who heard about linux there? Windows - definitely yes, sometimes macOS, but not linux. |
Not sure about buy, but I've just recently been on a VirtualBox-powered Windows without any emulated sound card (I guess I could have enabled it before trying, but the MS-supplied image has it disabled by default). When running under Dr. Memory the initialization of sound was way too long, so I had to comment out this in the sources to see some progress.
This "after some time" is the keyword: there shouldn't be any time to wait if there's no sound device in the system. |
Ah, VMs. Did not think of those. But what is "too long"? 10 seconds, or several minutes? |
Well, under Dr. Memory it took many hours until I decided to take action. But well, this is quite an unusual scenario, I suppose Dr. Memory works as Valgrind, software-emulating each instruction, which, in addition to being under virtualization, does take its toll on performance. |
I think I have solved this in #3775. At least this disables sound on Windows. @freebrowser1 can you test this (build and run with --no-audio)? |
When starting Stellarium it shows a splash screen showing what is loading and then it starts Stellarium normally.
The issue is that in the splash screen I see 'Initializing audio...' which takes several seconds. But In don't have audio (and why does a planetarium app need sound ?) so this is completely useless.
Expected Behaviour
No audio loading.
Actual Behaviour
Loading Audio at startup takes several seconds.
Steps to reproduce
Start Stellarium on Ubuntu without sound drivers.
![Screenshot 2024-04-27 at 11 01 19](https://private-user-images.githubusercontent.com/26625141/326167847-1e019bb9-43f5-4e53-9986-ed7cbc153496.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MDM2NTgsIm5iZiI6MTcxOTYwMzM1OCwicGF0aCI6Ii8yNjYyNTE0MS8zMjYxNjc4NDctMWUwMTliYjktNDNmNS00ZTUzLTk5ODYtZWQ3Y2JjMTUzNDk2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDE5MzU1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxMjA3YTUzYWUxNTc2YWM5MTE4NjU0ZTg2MTNhNTg4MjZhODE4OTBiNjgxNTgwZWZkYTQzYzAzMTMyODQ3OWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GWvHB4EZwgAGnnuz9u46Zzf8Pm8_CKzrKyk6WoTU_t0)
System
Logfile
stellarium 2>&1 | tee err2
results in attached file.err2.log
The text was updated successfully, but these errors were encountered: