Issue 11529

Title
deserialize called with 7 arguments
Priority
bug
Status
in-progress
Nosy list
ced, reviewbot, udono
Assigned to
ced
Keywords
backport, review

Created on 2022-05-31.13:20:49 by ced, last changed 2 months ago by ced.

Messages

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-07-23.00:44:58

The patch has been merged but it is not enough to fix https://gitlab.gnome.org/GNOME/gtk/-/issues/992.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-07-19.23:57:45

Indeed the proper fix would be to be able to use serialize function of GTK.
So here is https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4893 which should fix it.

Author: [hidden] (udono) Tryton translator
Date: 2022-06-01.09:22:33

Anyway, I applied your patch and it seems not breaking something related to rich-text widget. But I can't really test its functionality, because I can't reproduce your issue and havn't seen it.

Using the same *args pattern on my issue solves my serialize issue, but raises new problems which I don't know how to debug, as REPL don't work in the client app:

ERROR:tryton.common.common:
TypeError: Must be number, not str
Author: [hidden] (udono) Tryton translator
Date: 2022-05-31.13:56:04

Interesting I have also recognized a similar client error, but can not reproduce reliable:

I think I found a way to reproduce at least in branch 6.0: * Open Preferences from the top toolbar * Add a rich text content to signature, e.g test in bold * Cut the text, close the preferences * Open Preferences from the top toolbar * Paste the text to signature, error raises

TypeError: serialize() takes 5 positional arguments but 6 were given

Author: [hidden] (udono) Tryton translator
Date: 2022-05-31.13:37:17

Interesting I have also recognized a similar client error, but can not reproduce reliable:

TypeError: serialize() takes 5 positional arguments but 6 were given

I have the error sometimes in 5.8 and 6.0 when I copy paste rich text fields from one user signature to another.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-05-31.13:20:49

Sometimes GTK calls deserialize callback with an extra argument.

History
Date User Action Args
2022-09-11 17:59:33cedlinkissue10807 superseder
2022-07-23 00:44:58cedsetmessages: + msg77451
2022-07-20 00:16:46reviewbotsetmessages: + msg77440
2022-07-19 23:57:45cedsetmessages: + msg77439
status: testing -> in-progress
2022-06-01 09:22:33udonosetmessages: + msg76870
2022-05-31 13:56:04udonosetmessages: + msg76840
2022-05-31 13:37:17udonosetmessages: + msg76839
nosy: + udono
2022-05-31 13:30:23reviewbotsetmessages: + msg76838
nosy: + reviewbot
2022-05-31 13:21:20cedsetkeyword: + backport, review
reviews: 433181003
status: in-progress -> testing
2022-05-31 13:20:49cedcreate

Showing 10 items. Show all history (warning: this could be VERY long)