[SOLVED]Long delay opening files if multiple selection in file chooser

neok wrote:
Hi,
When I try to open several files in an application, (example: Gimp), by multiple selection in the 'open' filechooser, there is a long delay (about 1 sec per file) before the Gimp starts opening image files. During this delay, the disk access LED flashes continuously and iotop indicates that its jbd2 accessing (writing) on the / partition on my SSD drive. This is despite the fact that the image files are on an external USB hard disk and the Gimp would have no reason to write anything on the / partition. Even if it did, the image files are small (50-100 kb) and such a long delay would be out of place.
The significant thing is that the delay occurs _before_ the Gimp starts opening files. It seems the delay is in the filechooser making a list of the files to be opened. Once the Gimp starts opening files, it finishes quickly.
This sort of thing happens with other apps that can open several files by multiple selection in a filechooser.
Any hints please? I am lost here :-(
The delay is caused by (apparently) GTK which writes to the ~/.local/share/recently-used.xbel file, to record all the files that are opened in the multiple selction. Even so, this writing seems too slow, even when opening a large number of files (the ones that I open by multiple selection, by an app that I am working on, are about 10k each, so opening a few hundred should not take the delay I see, about 30 sec).
Anyhow, I patched the problem eventually by chattr +i ~/.local/share/recently-used.xbel to stop the writing. But I would prefer to disable the use of this file by configurtion rather than brute force, if there is such a choice.
Last edited by neok (2012-03-13 04:55:31)

neok wrote:
Hi,
When I try to open several files in an application, (example: Gimp), by multiple selection in the 'open' filechooser, there is a long delay (about 1 sec per file) before the Gimp starts opening image files. During this delay, the disk access LED flashes continuously and iotop indicates that its jbd2 accessing (writing) on the / partition on my SSD drive. This is despite the fact that the image files are on an external USB hard disk and the Gimp would have no reason to write anything on the / partition. Even if it did, the image files are small (50-100 kb) and such a long delay would be out of place.
The significant thing is that the delay occurs _before_ the Gimp starts opening files. It seems the delay is in the filechooser making a list of the files to be opened. Once the Gimp starts opening files, it finishes quickly.
This sort of thing happens with other apps that can open several files by multiple selection in a filechooser.
Any hints please? I am lost here :-(
I re-installed and reconfigured Arch so that I now have a fresh, uptodate system. In the process, I found that this problem occurs when I run the Gimp as a normal user. If I run it under sudo, all is well. I am strggling to find out why, but no results so far (have checked file permissions where I thought there may be a problem, but no joy).
Any hints much appreciated.

Similar Messages

  • 'No Upload Authorization' While Uploading a Text File from Multiple Select

    Hi all,
       The User is trying to upload a text file from Multiple Selection screen of a Query in BEx and it gives the error message of 'No Upload Authorization' (Error DB886).
       In 'Logon data' tab of Tcode SU01, it has 'User' for 'User Group for Authorization check' for this User.
       I could upload a text file from Multiple Selection screen with my User Id.
       An idea about this error, PLEASE ?
    Thanks,
    Venkat.

    Hi Ron,
       This User does not have the access to Tcode ST01.
       The user executed Tcode SU53 immediately following the authorization failure to see the authorization objects. The 'Authorization obj' is blank and under the Description it has 'The last Authorization check was successful' with green tick mark.
      Any further suggestions, PLEASE.
    Thanks.

  • Stor.E TV+ doesn't transfer large file or large selection of files

    Hi Everyone,
    I've just bought a Stor.E TV+ 2TB and I've found a very noisy problem related to file transfers from PC to the HDD trough the LAN (wired &/or wireless).
    The unit doesn't transfer large file or large selection of files and hangs the PC process.
    Does anyone knows if there's an update firmware or a workaround to solve this?
    Looking forward to read from someone.
    Thanks
    G.

    Hi
    As far as I know this was solved by firmware update
    You could find the firmware on Toshiba European driver page:
    http://eu.computers.toshiba-europe.com/innovation/download_drivers_bios.jsp
    Here choose:
    - Options
    - Drive Devices
    - Multimedia HDDs
    - 3.5 inch StorE TV +

  • AppleScript : modify labels for multiple selection of files and folders in Finder ?

    As an experienced programmer in Pascal, Excel VBA, ... I am trying to find my way in AppleScript (first steps).
    I am trying to build a small script that will run on a keyboard shortcut, and that will toggle the label of selected files and folders (multiple selection ?) in Finder between "purple" and "no label".
    Based on a recorded action, I was trying something along the lines of
    tell application "Finder"
              Activate
              repeat with oneItem in selection
                             set label index of oneItem to 3
              end repeat
    end tell
    I am not clear on how to make the script understand that in a multiple selection I want to apply the requested command to each item. In addition, when testing it on one single item, it appears that I can't set the label index property of "selection" ...
    Can someone please advise what the correct way is of (a) setting the property of a selected item in the Finder and (b) looping through a multiple selection ?
    Thanks in advance.
    Philip
    P.S. Running Mac OSX 10.8.2 on MacBook Air, MacBook Pro and MacMini

    Thanks alot, Softwater. In fact, I have been playing around with that and found that the "get" statement in your script suggestion is not even necessary. The script I saved as a Finder Service is now :
    tell application "Finder"
              repeat with oneItem in selection as list
                             if label index of oneItem = 0 then
                                            set label index of oneItem to 5
                             else
                                            set label index of oneItem to 0
                             end if
              end repeat
    end tell
    By assigning a shortcut key to this one, I can now toggle labels.
    Additional trick I did is to restrict the applicability of the script to only movie-files (I am using this to change the labels of movies / TV shows on my computer which I still want to see versus the ones that I don't want to see anymore). I noticed during testing that the script would also color folders and drives selected in other finder windows than the one I was working in, so now it only works on movie files which is more what I want.
    Great tool, the AppleScript Editor and the Automator. Only a little bit a pitty that finding out about object structure and properties is not very straightforward in the AppleScript Editor (comparing to e.g. the VBA in MS Excel, which has an almost perfect help system and built-in reference). I am not a Microsoft fan in general, but when it comes to MS Excel VBA, I have not seen any built-in help system yet that approaches its usefulness ...
    I guess I will be "seeing" you again on this forum ... I am getting the taste of scripting again :-D

  • Multiple Selection of files for File Upload

    HI,
    Can we upload Multiple files at a time using File Upload option?
    Regards,
    Raju

    hi
    Check this link it might give hint, same you can try in wd java.
    http://www.roseindia.net/jsp/file_upload/uploadingMultipleFiles.shtml
    As in above code separate file up-loader is used for each file.
    I know you might be looking;like lotus or outlook copy all attachment is such a way.
    Edited by: Yogesh Galphade on Mar 22, 2011 7:51 PM

  • To pick files from multiple directory in FILE ADAPTER

    Hi all,
    Is their any settings or adapter configuration parameters to be used  to pick  the files from multiple directory .

    Hi,
    You can only specify one directory on the communication channel. The advance selection allows the selection of different files within this directory.
    Therefore you will need a communication channel for each directory you wish to pull files from.
    (Just looked at the blog and see it is possible after all - I'm on the wrong SP)
    Kind regards
    Colin.
    Message was edited by:
            Colin Bickell

  • Multi-page ID file into multiple individual ID files

    I am creating a catalog in ID and have started it as a single file with multiple pages. My printer has asked that I submit it as multiple individual ID pages. I found a script that will do it for me. The problem is that I have applied master pages to the files and when the files get exported into individual pages they all take the characteristics of the 1st page. i.e. the number is "1" on all of them and appears on the right side. The question is, is there a script that has been made that deals with this already, or is there a way to "flatten" the ID file before I run the script so that the numbering doesn't shift around?

    @RGBguyinaCMYKwrld – +1 to that what Larry and Colin already said.
    But, in general, there might be really good reasons separating a document into individual parts.
    Might be a colaboration workflow with several designers where the project began with one person…
    Or in a DPS workflow.
    The Swiss scripter Hans Häsler did a lot of scripts and one of them is slicing an InDesign file into pieces. Page by page, range by range or other criteria. The script comes in German language, but the source code is available, so you could translate it. It has a ScriptUI graphical user interface. A extensive readme file comes with the code (LiesMich_Aufsplitten.txt).
    Hans Haesler
    (Split Documents Script v515d)
    DokumenteAufsplitten.zip
        DokumentAufsplitten_515d.js
        LiesMich_Aufsplitten.txt
    German Interface:
    http://www.fachhefte.ch/downloads.php?groupIDX=&orderby=name&sort=ASC&search_query=&itemID X=&begin=&limit=&read_group=18&page=0&downloadIDX=655
    If the link will not work (maybe due to an update of the site), look under Downloads / JavaScripts at: www.fachhefte.ch
    Uwe

  • WAR files sharing multiple JAR library files?

    Hello all, I want to make an EAR file that contains 4 WAR files, each of those WAR files relies on the same jar library files, is there some way I can make an EAR that only has one copy of each jar file?
    i put the jar files in the /library of the EAR as per the java deploytool, but that just gives class not founds
    my ear structure currently is this
    test.ear
    ======
    a.war
    b.war
    c.war
    d.war
    \library\xerces.jar
    \library\tools.jar
    \meta-inf\manifest.mf
    \meta-inf\application.xml
    \meta-inf\sun-j2ee-ri.xml
    i tried putting classpath: xerces.jar tools.jar
    but that doesnt work, any idea on how my syntax or EAR structure is wrong?
    thanks!

    Hi,
    Have you tried this way ?
    (including the line below in the Manifest file of the your wars file)
    Class-Path: library/xercers.jar library/tools.jar

  • Long delay opening files

    Just installed Dreamweaver 8 & all updates on an intel
    Mac. Everytime I go to open a file I get the beachball for up to 30
    seconds before I can open the file. Ive reinstalled & the
    behavior is unchanged. Would appreciate any clues.

    To answer your questions. I don't use DW to work remotely, I
    only work locally. All of my local files are kept on a windows
    server accessed via AFP. There are no external images being
    accessed & the delays are for opening any file, even a blank
    file. I do notice that when I use the open recent feature the files
    open automatically with no delay. But there are also delays when I
    change view mode and when I edit anything in design mode.

  • Reader X long delay opening multiple documents

    I have Reader X (10.0.1).  With Protected Mode enabled, there is a 30-second (or more) delay when opening a second (or third, etc.) PDF document.  Task manager does not show any processor usage during this time.  Any ideas how to fix this?
    Hardware & OS: P4 3.2 GHz w/ HT enabled, 2.5 GB RAM, Win XP Pro SP3
    J

    In case you haven't already found a solution, here's a fix I found in another forum:
    Go to Edit / preferences / general - the uncheck box "Enable protected mode at startup" This got rid of the lag in opening adobe docs.
    It works! 

  • How to create a button to get File Open popup window and select a file

    Hi,
    I have an applet that contains Browse button. When user clicks on that, a File Open popup window should be displayed to enable user to select the input file. This file path should be given back as parameter.
    How to do this? I have tried using LoadFileData but not able to get the desired result.
    Any pointers would be helpful.
    Thanks,
    Lalitha Dandibotla

    Do you need only the path or also the file back into Siebel?
    If you need both, the have a look at any attachment applet, that will give you a good start.
    Are you using Siebel in High Interactivity (HI) Mode or Standard Interactivity (SI) Mode?
    If you are in SI Mode have a look at the html type
    <input type="file">
    http://www.w3.org/TR/html401/interact/forms.html#h-17.4
    Axel

  • Ctrl-Shift-U uploading open file, not those selected in File window

    I regularly use the quick-key of Ctrl-Shift-U to upload ("put") a file or files from the File window, but as of this morning it's instead uploading my open file. If I have no open files it does nothing. I can only assume I've accidentally changed an option somewhere, but Google isn't helping me figure out where it might have been. Any ideas? I'm using Dreamweaver CS6. Thanks!

    1. Go into Edit > Keyboard Shortcuts
    2. Choose "Files panel options menu" from the Commands dropdown
    3. Click the + by Site
    4. Scroll down to "Put" and verify that it's set to Ctrl + Shift + U
    If it is, and this is a behavior that just started happening recently, another thing to try would be to clear the program cache file: http://forums.adobe.com/thread/494811

  • Long delay opening socket

    I'm seeing a very strange behavior in a simple client/server application. When we run it all on "localhost" (ie both client and server on "localhost") everything works fine. But when we run the application with Client and Server located on two different computers (located in the same room but networked together) here's the behavior we're seeing:
    1. Server listens on Server Socket.
    2. Client attempts to open a socket to Server. Client is kept waiting for a long time for this socket; usually the wait time is 20 seconds (and this is very repeatable) but sometimes the wait time is very short. Usually we're seeing the 20second wwait time.
    Any suggestions as to how to debug this or as to what may be causing it?

    sabre150 wrote:
    R2me2 wrote:
    We did that already. It's not a hardware problem.I don't have the problem as you have described it and I don't know of anybody else that does. Sounds to me like a DNS lookup problem.@Op. What happens if you are trying to connect using ip-address rather than host name?
    Kaj

  • How to display all the files that are selected using JFile chooser

    please hepl me i m posting my code here.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    public class browser extends JFrame
    String curDir;
    JLabel statusbar;
    public browser()
    super("File Chooser Test Frame");
    setSize(1050,600);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    curDir = System.getProperty("user.dir") + File.separator;
    statusbar = new JLabel("Output of your button choice goes here!");
    Container c = getContentPane();
    c.setLayout( null );
    JButton openButton = new JButton("Browse file");
    JButton dirButton = new JButton("Pick Dir");
    JButton resetButton = new JButton("Reset");
    JButton submitButton = new JButton("Submit");
    final JTextArea tf = new JTextArea(100,50);
    final JList l1 = new JList("list");
    tf.setEditable(true);
    // add the open FILE chooser
    openButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
         JFileChooser chooser = new JFileChooser(curDir);
         chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         chooser.setMultiSelectionEnabled(true);
    //Java 1.6 can use FileNameExtensionFilter class
    // FileFilter filter=new FileNameExtensionFilter("HTML file","htm","html")
    // chooser.addChoosableFileFilter(filter);
    //Prior versions must use external extension of FileFilter class (ie ExtFilter)
    //ExtFilter requires separate compile to enable choosable selection
         String[] html = new String[] {"htm","html","xhtml"};
         int option = chooser.showOpenDialog(browser.this);
         if (option == JFileChooser.APPROVE_OPTION)
         File[] sf = chooser.getSelectedFiles();
         String filelist = "nothing";
         try
         if (sf.length > 0) filelist = sf[0].getCanonicalPath();
         for (int i = 1; i < sf.length; i++)
         {filelist += ", " + sf[i].getCanonicalPath();
    tf.setText("our choices" + filelist);
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("Your choices: " + filelist );
    // String[] text = new String[100];
    //getChars(0,100,text[],0);
    l1.setText("your choices \n" + filelist);
         else {statusbar.setText("You cancelled!");}
    // add the open DIRECTORY chooser
    dirButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    JFileChooser chooser = new JFileChooser(curDir);
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
         chooser.setMultiSelectionEnabled(false);
    int option = chooser.showOpenDialog(browser.this);
    if (option == JFileChooser.APPROVE_OPTION)
    File[] sf = chooser.getSelectedFiles();
    String filelist = "nothing";
    try
    if (sf.length > 0) filelist = sf[0].getCanonicalPath();
    for (int i = 1; i < sf.length; i++)
              {filelist += ", " + sf[i].getCanonicalPath();}
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("You chose " + filelist);
         else {statusbar.setText("You cancelled!");}
    System.out.println("Example of ZIP file creation.");
    // Specify files to be zipped
    String[] filesToZip = new String[1];
    filesToZip[0] = "filelist";
    byte[] buffer = new byte[18024];
    // Specify zip file name
    String zipFileName = "example.zip";
    try {
    ZipOutputStream out =
    new ZipOutputStream(new FileOutputStream(zipFileName));
    // Set the compression ratio
    out.setLevel(Deflater.DEFAULT_COMPRESSION);
    // iterate through the array of files, adding each to the zip file
    for (int i = 0; i < filesToZip.length; i++) {
    System.out.println(i);
    // Associate a file input stream for the current file
    FileInputStream in = new FileInputStream(filesToZip);
    // Add ZIP entry to output stream.
    out.putNextEntry(new ZipEntry(filesToZip[i]));
    // Transfer bytes from the current file to the ZIP file
    //out.write(buffer, 0, in.read(buffer));
    int len;
    while ((len = in.read(buffer)) > 0)
    out.write(buffer, 0, len);
    // Close the current entry
    out.closeEntry();
    // Close the current file input stream
    in.close();
    // Close the ZipOutPutStream
    out.close();
    catch (IllegalArgumentException iae) {
    iae.printStackTrace();
    catch (FileNotFoundException fnfe) {
    fnfe.printStackTrace();
    catch (IOException ioe)
    ioe.printStackTrace();
    c.add(openButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(resetButton);
    c.add(submitButton);
    //c.add(tf);
    c.add(l1);
    Insets insets = c.getInsets();
    Dimension size = openButton.getPreferredSize();
    openButton.setBounds(745 + insets.left,115 + insets.top, size.width, size.height);
    size = dirButton.getPreferredSize();
    dirButton.setBounds(755 + insets.left,165 + insets.top, size.width, size.height);
    size = statusbar.getPreferredSize();
    statusbar.setBounds(755 + insets.left,215 + insets.top, size.width, size.height);
    size = resetButton.getPreferredSize();
    resetButton.setBounds(755 + insets.left,265 + insets.top, size.width, size.height);
    size = submitButton.getPreferredSize();
    submitButton.setBounds(755 + insets.left,465 + insets.top, size.width, size.height);
    size = tf.getPreferredSize();
    tf.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    size = l1.getPreferredSize();
    l1.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    setSize(1000,800);
    setVisible(true);
    public static void main(String[] args)
    new browser();

    Start by defining "display". Then continue by reading this:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • How can I get file from multiple instance using file adapter

    Hi.
    Our system(PI7.1) have three application instances running with each physical servers.
    We use sender file adapter.
    The file data is sent to one of the servers.
    Now, how can I get the file using three file adater?
    Should I put the file "sapmnt(\usr\sap)" .
    Or are there another solution?
    regards,

    Hi Ashutosh
    You will have to use sapcar.zip which contains the utility Sapcar.exe utility for unzipping the files from SAP compressed files. (*.car file)
    Regards
    Gaurav
    PS: Reward points if solved

Maybe you are looking for