-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Command-line render segfaults if ~/.lmmsrc.xml cannot be written #2245
Comments
For what it's worth, rendering is still functional when using the gui, if ~/.lmmsrc.xml is unwritable. |
We should probably disable config writing when there's no GUI. However, I've tested your theory about the QMessageBox with the following change and I still receive a segfault so I believe we have a few segfaults related to command line rendering on master. 👍 QString err = MainWindow::tr( "Could not save configuration file %1. "
"You're probably not permitted to "
"write to this file.\n"
"Please make sure you have write-"
"access to the file and try again." ).
arg( m_lmmsRcFile );
if ( gui )
{
QMessageBox::critical( NULL,
MainWindow::tr( "Could not save config-file" ),
err );
}
return; |
Related: #588 |
It's trying to write ./lmmsrc.xml twice. First when opening the project it's calling
|
This seems like a pretty obscure bug, but it comes down to ConfigManager trying to show a QMessageBox when the gui doesn't exist. All you have to do is
chown root ~/.lmmsrc.xml
and then launchlmms -r path/to/file.mmpz
and you'll segfault.Backtrace:
I'm going to assign this to myself & fix it in the coming days.
The text was updated successfully, but these errors were encountered: