Skip to content

Fatal Error on exit while using multiprocessing.BaseManager/connection.Pipe with PyQt and Windowed #1937

@akamos

Description

@akamos

Hi,
I'm trying to compile a program that uses PyQt4 with the multiprocessing.BaseManager. So the program is windowed and all works fine, expecting when I quit/close the application I get following error:

fatal_error_base_manager

The error not influence the running code, but is only annoying and for a user it seems like something went wrong.When I running in normal python console or compiled with console all is normal and no error is shown. I also don't know how correctly debug such a error. I'm sorry!

Here is the little and simplified code snipped which is already not working:

import datetime

import multiprocessing
from multiprocessing import Manager
from multiprocessing.managers import BaseManager

import time
import sys
from PyQt4 import QtGui, QtCore

if __name__ == '__main__':
    multiprocessing.freeze_support()
    app = QtGui.QApplication(sys.argv)

    window = QtGui.QWidget()
    window.setFixedHeight(300)
    window.setFixedWidth(400)
    window.setWindowTitle("Demo App")

    manager = BaseManager()
    manager.start()

    sys.exit(app.exec_())

Compile as followed:

pyinstaller -D -w demo.py

I tried it on Windows Server 2012 R2 and Windows 7, in 64bit and 32bit Python 3.4.4 and the newest PyInstaller. Pip and all components are up to date. I tried all possibilities, shutdown manager on exit and so on, nothing helped.

It seems to me that it is a bug. I would be really great if that gets fixed.

Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions