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

Every run of qgis from build dir results in a new directory created and never removed in TMPDIR ( qgis-python-crash-info-#### ) #50609

Closed
2 tasks done
strk opened this issue Oct 19, 2022 · 1 comment · Fixed by #53417
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@strk
Copy link
Contributor

strk commented Oct 19, 2022

What is the bug or the crash?

Whenever you run qgis from the build dir a qgis-python-crash-info-XXX directory is created in the TMPDIR and

Steps to reproduce the issue

output/bin/qgis

Versions

current master at time of writing ( e8dcb89 )

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@strk strk added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 19, 2022
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Jun 8, 2023

This file is is probably generated by

void QgsPythonUtilsImpl::initPython( QgisInterface *interface, const bool installErrorHook, const QString &faultHandlerLogPath )
{
init();
if ( !checkSystemImports() )
{
exitPython();
return;
}
if ( !faultHandlerLogPath.isEmpty() )
{
runString( QStringLiteral( "import faulthandler" ) );
QString escapedPath = faultHandlerLogPath;
escapedPath.replace( '\\', QLatin1String( "\\\\" ) );
escapedPath.replace( '\'', QLatin1String( "\\'" ) );
runString( QStringLiteral( "fault_handler_file=open('%1', 'wt')" ).arg( escapedPath ) );
runString( QStringLiteral( "faulthandler.enable(file=fault_handler_file)" ) );
}
when called by

QGIS/src/app/qgisapp.cpp

Lines 12226 to 12227 in 18cafd8

QgsCrashHandler::sPythonCrashLogFile = QStandardPaths::standardLocations( QStandardPaths::TempLocation ).at( 0 ) + "/qgis-python-crash-info-" + QString::number( QCoreApplication::applicationPid() );
mPythonUtils->initPython( mQgisInterface, true, QgsCrashHandler::sPythonCrashLogFile );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants