ID 459817 - Mari Python "mari.app.exiting.connect(function)" is called 3 times.

Follow

Problem summary
Mari Python mari.app.exiting.connect(function) is called 3 times.

Customer reported version
mari.4.6v2

Customer reported platform
centos7

Steps to reproduce

1) From Mari, open the Python Console.

2) Run the following snippet: 


def myfunc(): with open("C:/Temp/maririsetest.txt","a+") as f:  f.write("test")mari.app.exiting.connect(myfunc)

3) Exit Mari, and view the output of the text file in the specified directory.

Expected behavior
Only one call should be made.

Actual behavior
A call is made 3 times when exiting Mari.

Workaround
There is no available workaround at this time.

Reproduced by Support in
Mari 4.6v4 - Windows 10
Mari 4.6v1 - Windows 10
Mari 4.5v1 - Windows 10

Unable to reproduce bug in:
Mari 4.0v1 - Windows 10

Earliest version tested
Mari 4.0v1 - This issue doesn't appear in this version and has regressed

 

    We're sorry to hear that

    Please tell us why