! 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 !
copying many files blocking on mouse input
Status:
CLOSED: FIXED
Severity:
critical
Product:
Thunar-vfs
Component:
General

Comments

Description Jani Monoses 2006-04-30 18:02:09 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060413 Ubuntu/dapper Firefox/1.5.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060413 Ubuntu/dapper Firefox/1.5.0.1

Trying to copy a >2000 files folder from a USB stick I found that the copy does not progress unless the mouse is moved. Stracing Thunar indicates it stays in poll until mouse it pressed/moved. It also happens with copying between folders on the hard drive, it's just easier to see with many files and slower media.
Moving the mouse over the progress dialog causes it to progress.
Clicking or scrolling the mousewheel even when thunar is not focused again causes progress. Moving the mouse on the panel OTOH does not, it's stuck.
Sometimes even when not moving the mouse it seems to go ahead but at a much slower rate (watch du -ks destdir while thunar is minimised).
gtk 2.8.17 on ubuntu dapper


Reproducible: Always
Comment 1 Benedikt Meurer editbugs 2006-04-30 20:52:52 CEST
Created attachment 531 
Suggested fix

There's indeed a race condition between the job and the main loop. Please try this patch.
Comment 2 Jani Monoses 2006-05-01 12:46:59 CEST
the patch does not seem to help
Comment 3 Benedikt Meurer editbugs 2006-05-01 13:24:09 CEST
Created attachment 534 
Next try

Ok, please try this one then.
Comment 4 Jani Monoses 2006-05-01 13:29:35 CEST
umm, actually the first patch worked. Have thunar installed in 3 places and launched an old one. Sorry.
Comment 5 Benedikt Meurer editbugs 2006-05-01 13:37:21 CEST
No biggie, the second patch is better anyways. :-)
Comment 6 Benedikt Meurer editbugs 2006-05-01 13:37:37 CEST
Committed with revision 21421.

2006-05-01	Benedikt Meurer <benny@xfce.org>

	* thunar-vfs/thunar-vfs-job.c: Fix a possible race condition when emit-
	  ting signals from another thread, and make sure the prepare source
	  method doesn't return -1 for the timeout if the source is ready to
	  be dispatched. Bug #1743.

Bug #1743

Reported by:
Jani Monoses
Reported on: 2006-04-30
Last modified on: 2010-11-07

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
unspecified

Attachments

Suggested fix (1.17 KB, patch)
2006-04-30 20:52 CEST , Benedikt Meurer
no flags
Next try (1.52 KB, patch)
2006-05-01 13:24 CEST , Benedikt Meurer
no flags

Additional information