[Gambas-user] Gambas IDE in open project scanning entire home directory

Benoît Minisini gambas at ...1...
Sat May 24 14:29:28 CEST 2014


Le 24/05/2014 14:22, richard terry a écrit :
> when using the IDE, gambas takes an extraordinary long time to open the
> "Open Project" dialog
>
> using "strace -e stat gambas3" I can see gambas3 is doing something
> rather strange: it's stating every file recursively throughout the home
> directory, which on my machine takes an unusably long time due to tens
> of thousands of files (i.e. we have given up waiting for the dialog box
> to hold, and have had to create anew user on the system with the minimum
> files in their home directory)
>
> this is the same on two systems (mine and Ian Haywood's) gambas 3.5.3
> and 3.5.2, Linux Mint 14 (Nadia)
>
> thanks
>
> Richard
>
> this is standard stuff:
>
> stat("/etc/cups/ppd/HL-5240-series.ppd", {st_mode=S_IFREG|0644,
> st_size=22415, ...}) = 0
> stat("/etc/cups/ppd/HL-5240-series.ppd", {st_mode=S_IFREG|0644,
> st_size=22415, ...}) = 0
> stat("/usr/share/fonts/truetype/fonts-japanese-gothic.ttf",
> {st_mode=S_IFREG|0644, st_size=6234746, ...}) = 0
> stat("/usr/share/fonts/X11/Type1/lmcsc10.pfb", {st_mode=S_IFREG|0644,
> st_size=116427, ...}) = 0
> stat("/usr/share/gambas3/examples", 0x7fffb1cc8ba0) = -1 ENOENT (No such
> file or directory)
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
> stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2183, ...}) = 0
>
> ---> and here's were the insanity starts
>
> stat("/home/richard/mybackup", {st_mode=S_IFDIR|0755, st_size=4096,
> ...}) = 0
> stat("/home/richard/.texmf-var", {st_mode=S_IFDIR|0755, st_size=4096,
> ...}) = 0
> stat("/home/richard/may14-2-1.txt", {st_mode=S_IFREG|0644,
> st_size=17265, ...}) = 0
> stat("/home/richard/My_Video", {st_mode=S_IFDIR|0755, st_size=4096,
> ...}) = 0
> stat("/home/richard/.lyx", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
> stat("/home/richard/tempproject", {st_mode=S_IFDIR|0755, st_size=4096,
> ...}) = 0
> stat("/home/richard/pgadmin.log", {st_mode=S_IFREG|0644, st_size=35895,
> ...}) = 0
> stat("/home/richard/.thunderbird", {st_mode=S_IFDIR|0700, st_size=4096,
> ...}) = 0
> stat("/home/richard/Ms-Joan-Blogss_workcover.pf.pdf",
> {st_mode=S_IFREG|0644, st_size=160724, ...}) = 0
> stat("/home/richard/test.aux", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> stat("/home/richard/plan.pdf", {st_mode=S_IFREG|0644, st_size=85230,
> ...}) = 0
> stat("/home/richard/.project", {st_mode=S_IFREG|0644, st_size=1144,
> ...}) = 0
> stat("/home/richard/more_create_db_bugs", {st_mode=S_IFREG|0644,
> st_size=1568, ...}) = 0
> stat("/home/richard/plan2.pdf", {st_mode=S_IFREG|0644, st_size=85247,
> ...}) = 0
> stat("/home/richard/.mplayer", {st_mode=S_IFDIR|0755, st_size=4096,
> ...}) = 0
> stat("/home/richard/.ICEauthority", {st_mode=S_IFREG|0600,
> st_size=129458, ...}) = 0
> stat("/home/richard/.googleearth", {st_mode=S_IFDIR|0700, st_size=4096,
> ...}) = 0
> stat("/home/richard/test-description.log", {st_mode=S_IFREG|0644,
> st_size=2589, ...}) = 0
>

Strange...

Can you run the IDE inside itself to debug it, and break while it 
browses your directory to see where is the code that does that?

-- 
Benoît Minisini




More information about the User mailing list