! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
In pixman_region32_init_rect: Invalid rectangle passed
Status:
RESOLVED: FIXED

Comments

Description ToZ editbugs 2019-03-15 20:01:54 CET
As of gtk 3.24.7 (Arch), Thunar's "Create Document" submenu no long displays any content. Hovering over the thin line that is shown, generates the error message:

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Reverting back to previous version of GTK3 (3.24.5) results in a working sub-menu again. 

The "Create Document" submenu in xfdesktop is unaffected.
Comment 1 alexxcons editbugs 2019-03-15 22:19:37 CET
Meh, yet another gtk3 problem :/  .. thanks for reporting !
Comment 2 ToZ editbugs 2019-03-16 02:36:20 CET
Noticed another odd idiosyncrasy. When right-clicking on a file, the popup menu is compressed with arrows at the top an bottom. If I scroll through all of the options, then the complete menu will show (without the arrows) from there on in until thunar is restarted.

Looks like it might be related to the issue above.
Comment 3 alexxcons editbugs 2019-03-22 21:50:02 CET
I am on debian testing, which currently ships gtk 3.24.5 ... soo I will just wait a bit till 3.24.7 is available here ... dont want to build gtk3 from source.
Though AndreLDM as well uses arch ... I'll ask if he feels like taking a look into it.
Comment 4 Andre Miranda editbugs 2019-03-24 22:22:17 CET
*** Bug 15221 has been marked as a duplicate of this bug. ***
Comment 5 Andre Miranda editbugs 2019-03-24 22:32:41 CET
Yes, I can reproduce, tried to investigate it last week, but no luck. I suspect this is caused because the menu is populated asynchronously (ThunarJob), but it could be a gtk regression. Perhaps git bisect'ing gtk could yield some answers.
Comment 6 Murari 2019-03-25 21:48:01 CET
*** Bug 15224 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Lange 2019-03-25 22:38:45 CET
Created attachment 8362 
Commit log of git-bisect
Comment 8 Thomas Lange 2019-03-25 22:40:51 CET
The GTK+ commit 57300b49602b856b53f5d30ab3174591c0fb2845 is the culprit for this issue.
I have also attached the log of git-bisect here and hope this was helpful.

https://gitlab.gnome.org/GNOME/gtk/commit/57300b49602b856b53f5d30ab3174591c0fb2845
Comment 9 Thomas Lange 2019-03-25 22:42:58 CET
Reverting only this commit for 3.24.7 resolves this issue, so it is definitively this commit which breaks the menu.
Comment 10 Andre Miranda editbugs 2019-03-30 17:20:58 CET
*** Bug 15226 has been marked as a duplicate of this bug. ***
Comment 11 ToZ editbugs 2019-03-31 17:35:11 CEST
*** Bug 15246 has been marked as a duplicate of this bug. ***
Comment 12 Andre Miranda editbugs 2019-04-03 22:59:57 CEST
Thanks Thomas for the bisect, unfortunately that commit doesn't show anything that I can related to this bug.
I already spent some time investigating this, but nothing conclusive yet, just that the problem may stem from here:
https://git.xfce.org/xfce/thunar/tree/thunar/thunar-templates-action.c?id=a7a6aabb955df4c59190c012daab98424905735b#n170

And here:
https://git.xfce.org/xfce/thunar/tree/thunar/thunar-templates-action.c?id=a7a6aabb955df4c59190c012daab98424905735b#n495

Menu items are added after the show signal and only after a ThunarJob is finished. That causes the menu to have scrollbars, I just don't know why the menu items aren't shown. If they are hardcoded to be added right after the "show" signal, they will appear.

Xfdesktop is not affected because menu items for file templates are created before the menu is shown (i.e. synchronously). This seems to be a race condition we are dealing with.

I'm working on a reproducer sample so I can report this to gtk devs.
Comment 13 Amadeusz Sławiński 2019-04-04 00:00:37 CEST
*** Bug 15255 has been marked as a duplicate of this bug. ***
Comment 14 Amadeusz Sławiński 2019-04-04 00:13:10 CEST
If you want a reproducer, I guess you can use one of gnome apps, for example take 'evince' and use open dialog.

Steps would be:

1. Launch evince
2. Click 'open' button
3. Select 'All files'
4. Move open dialog window, so 'All files' is just below top of screen
5. Click 'All files' and then scroll down (using mouse scroll) and click back on window to unselect menu ('All files' still should be selected after this)
6. Move open dialog window back to the center of screen, so it has lots of space and shouldn't need to do scrolled menus
7. Click 'All files' and observe that it creates scrolled menu

Overall I would say there is something wrong with how gtk3 calculates if menus need scroll arrows.
Comment 15 ToZ editbugs 2019-04-13 14:45:15 CEST
*** Bug 15283 has been marked as a duplicate of this bug. ***
Comment 16 Andre Miranda editbugs 2019-04-14 20:16:28 CEST
Created attachment 8408 
fix.patch

The attached patch changes the template loading to be synchronous.
I didn't notice any side-effect, with hundreds of files in ~/Templates the context menu appears without any delay.
Comment 17 Luis S. 2019-04-14 21:18:00 CEST
That fixed it for me.

Thanks Andre!
Comment 18 ToZ editbugs 2019-04-14 21:22:46 CEST
Thanks. This fixes the missing templates folder. 

The scrolling right-click menu issue still exists though. Does the same asynchronous menu population routines exist for the context menu?
Comment 19 Andre Miranda editbugs 2019-04-15 15:02:59 CEST
(In reply to ToZ from comment #18)
> The scrolling right-click menu issue still exists though.
I think that's a GTK regression, need to check if there's a bug for this.

> Does the same
> asynchronous menu population routines exist for the context menu?
I don't know that part of code very well, but I'm almost sure everything else is sync.
Comment 20 Git Bot editbugs 2019-04-16 04:00:15 CEST
Andre Miranda referenced this bugreport in commit 6f980dbd6fed2b471d9fb9c7e1dd11d95b502150

Load templates synchronously (Bug #15200)

https://git.xfce.org/xfce/thunar/commit?id=6f980dbd6fed2b471d9fb9c7e1dd11d95b502150
Comment 21 Andre Miranda editbugs 2019-04-16 04:09:28 CEST
Nemo is also affected (includes link to upstream):
https://github.com/linuxmint/nemo/issues/2118
Comment 22 Git Bot editbugs 2019-04-23 16:19:13 CEST
Andre Miranda referenced this bugreport in commit 9004a8237c4192f54e32a38e29ee29f625d72e2a

Load templates synchronously (Bug #15200)

https://git.xfce.org/xfce/thunar/commit?id=9004a8237c4192f54e32a38e29ee29f625d72e2a
Comment 23 Andre Miranda editbugs 2019-04-24 03:59:13 CEST
(In reply to Andre Miranda from comment #21)
> Nemo is also affected (includes link to upstream):
> https://github.com/linuxmint/nemo/issues/2118

Just to be clear, I meant the unnecessary arrow scrolls.
Upstream bug: https://gitlab.gnome.org/GNOME/gtk/issues/1843

I'm closing this bug since the fix landed the development branches and will be available in the next release.
Comment 24 Mário Luís Pinto Antunes 2019-05-09 20:53:55 CEST
Dear all,

I tried to apply the patch in the version 1.8.4 but I have this error during compile time:
make[3]: *** No rule to make target 'thunar-misc-jobs.c', needed by 'thunar-thunar-misc-jobs.o'.  Stop.

How can I fix this?
Comment 25 alexxcons editbugs 2019-05-09 22:07:09 CEST
Looks like you are mising a generated Makefile ? Possibly try to make clean and ./autogen.sh again before make.

Or if nothing helps, do a fresh clone. The following should do:

git clone https://git.xfce.org/xfce/thunar --branch thunar-1.8.4
cd thunar
curl https://git.xfce.org/xfce/thunar/patch/?id=9004a8237c4192f54e32a38e29ee29f625d72e2a | git am
./autogen.sh
make
Comment 26 Mário Luís Pinto Antunes 2019-05-10 12:20:09 CEST
Created attachment 8506 
Thunar Slackbuid
Comment 27 Mário Luís Pinto Antunes 2019-05-10 12:21:38 CEST
Comment on attachment 8506 
Thunar Slackbuid

This is the Slackbuild I am trying to use to compile Thunar.
I have already tried to add the ./autogen.sh but it does not work.
The script compiles without any issue if I remove the patch.
Comment 28 Evangelos Foutras 2019-05-10 13:17:15 CEST
You need to apply this preceding change as well:

https://git.xfce.org/xfce/thunar/patch/?id=03b8362dd9946fa4593497672ef4f341330170ed
Comment 29 Git Bot editbugs 2019-05-18 16:00:07 CEST
Andre Miranda referenced this bugreport in commit fe9eec8d923d318ab49044724334370bfbbb06d3

Job is now optional for thunar_io_scan_directory

https://git.xfce.org/xfce/thunar/commit?id=fe9eec8d923d318ab49044724334370bfbbb06d3

Bug #15200

Reported by:
ToZ
Reported on: 2019-03-15
Last modified on: 2019-10-27
Duplicates (6):
  • 15221 Buttons dysfonction
  • 15224 Create Document context menu broken
  • 15226 Broken right click behavior / right click menu size problems
  • 15246 1.8.4 Regression: Right Click > Create Document doesn't show menu entries
  • 15255 right click context menus not shown fully
  • 15283 Thunar 1.8.4 'Create Document' Context Submenu does not Show in gtk+3 greater than 3.24.5

People

Assignee:
Xfce Bug Triage
CC List:
17 users

Version

Attachments

Commit log of git-bisect (1.44 KB, text/plain)
2019-03-25 22:38 CET , Thomas Lange
no flags
fix.patch (16.51 KB, patch)
2019-04-14 20:16 CEST , Andre Miranda
no flags
Thunar Slackbuid (4.82 KB, text/plain)
2019-05-10 12:20 CEST , Mário Luís Pinto Antunes
no flags

Additional information