EA2 - loss of window focus when fetching rows

Whenever Sql Developer has to pull information for Table or View tabs (switching panes or scrollling down in the Data pane), it looks like the window loses focus for 1/2 second, then regains it. This makes scrolling in the Data pane disconcerting, as the titlebar flashes all the time. I don't see any windows pop up or anything, so I don't know what's taking focus away. Scrolling a resultset in the SQL worksheet doesn't have this problem; focus is kept and fetching the next 100 rows is almost instantaneous.

I would be sharing some tech. details to give you an idea on the tradeoff made.
Querying and fetching data from db in all grids in sqldev is being done in background thread. You can see that 2.1 leaves GUI free for interaction, using background threads, in many area's, where 1.5.5 blocked you.
When an operation is done in a background thread we show you a progress component to let you know that it's working and to let you cancel or pause the operation in some cases.
As you can see in the worksheet's grids this progress component is shown in the results tab toolbar and in Task Progress dockable.
In case of all Object Viewer tabs this progress component is a modal dialog. Modal because we don't want the user to interact with the other parts of GUI till the operation in complete. In an ideal world, there should be no modal dialogs..but what you have now is what we could achieve.
The modal progress dialog, though created as soon as the operation starts in a background task, are shown to you after a tiny delay. This delay has been deliberately added since in most cases the operation would finish within seconds or split seconds. If there was no forced delay in the appearance of the dialog, constantly flashing dialogs would be disconcerting. The important thing is that though the dialog is visible after a little delay, or if the operation finishes within this force delay thereby not making this dialog to appear, the GUI is still blocked by an "invisible" modal dialog. Again, this is deliberate since we wan't to prevent interaction with GUI in this usecase, till the background task has finished.
When the operation finishes the Object Viewer tab regains the focus.
Scrolling and thereby incremental fetching in worksheet's grids is smoother because there is no modal dialog there which takes the focus from grid and later sets it back.
This is the tradeoff. As I said, ideally we would not want to show a modal task progress dialog when grid is busy. We'll try to address this in future.
-Raghu

Similar Messages

  • Creative Cloud causing loss of Window Focus and preventing screensaver from running?

    I am running Windows 8.1, and have been very annoyed lately with an intermittent loss of window focus. Any window I am working in would quickly lose focus and then regain it.  Frequently I would be entering data into a field, and, while typing, the loss and recapture of focus would cause me to type over/replace everything I had just typed.  Also, my screensaver would not run.  Screensaver preview would work, but the screensaver never ran on its own.
    After a few hours of Internet searching, and by using some Windows tools, I discovered a plethora of system errors related to CoreSync.exe.  This executable is part of Adobe Creative Cloud.  I uninstalled Creative Cloud, and now the problems have vanished.  Are there any known workarounds for this?  I do not want Creative Cloud installed if I have to put up with these issues.

    This is an open forum with a mix of program users and Adobe staff, not Adobe support... you need Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Firefox loses window focus when I switch Windows user accounts

    If I have Firefox running in one Windows account and switch to another account (where I don't use Firefox) and then switch back to the account where Firefox is running, and then I open a new Firefox window, Firefox loses focus (in other words, I cannot use the new window unless I first bring it back into focus on the Desktop.) ...and, no, it is not a Windows issue, as other program behave a expected. It's just Firefox that does this. Highly annoying, btw.
    [Oh, and, mods, please reopen my previous thread, I wasn't done with it, thanks.]

    Threads are automatically locked after 6 months and that older thread was started Sunday January 19, 2014.
    This thread was archived:
    *[[/questions/983798]]
    We moderators can't reopen such an archived thread, but can add a link to a new thread if necessary.
    How do you open that new window?
    Is that by clicking the Firefox desktop shortcut or via the Firefox File menu or a toolbar button?

  • Firefox loses window focus when flash reloads

    This is an old problem that has NOT been solved by Mozilla/Adobe. If you load a flash web page, do nothing involving flash for a few minutes, and then load a new flash page in a different FF window, application focus will get yanked to the OLD window (the one you haven't touched in minutes). This problem was documented here as far back as June 2012. But for some reason the thread was closed even though the issue has not been fixed.
    This issue has nothing to do with extensions or outdated plugins, as I can replicate it with a fresh copy of FF on a brand new Win7 machine with no options changed on FF. Yes, I am using the very latest Flash plugin, which works fine with the exception of this persistent and annoying issue. The issue does not exist with Chrome, and therefore it should be a priority for Mozilla to work with Adobe to fix it ASAP.

    Sorry, solutions to problems such as that don't come from this support forum. Bugzilla is the place to report Bugs like that. <br />
    https://bugzilla.mozilla.org/ <br />
    First search for an existing Bug, then if none is found file your own report providing as much information as you can about your issue.
    https://developer.mozilla.org/en/Bug_writing_guidelines

  • Lasso tool problem, using alt key, no click within 5sec causes loss of active window focus

    I have been using Photoshop since ver. 4 and have never seen this happen.  The only difference is now I'm on Windows 7 64bit.  Did not have this problem with XP.  Current version CS3 Extended.
    Problem: While using Lasso tool with the alt key if I do not make a mouse click in 5 seconds Photoshop's active window loses focus for a split second and then the first point of my selection and the last point will connect.  Thus, wasting my time and my attempt at a selection.
    I have task bar buttons to "Never combine".  I see for that split second what appears to be another program button opening but it is so fast that I cannot see if there is a name on the task bar button.  The current Photoshop button moves to the right and back too fast.  This all happens very quickly as the window loses focus.
    I first thought it was some another program but after many searches found nothing I can identify as the cause.
    Right before posting this I had a thought and did a test that concluded in the 5 sec rule. For over a minute I held down the alt key and made a mouse click within the 5 second window of time and there was no loss of window focus.  While still holding down the alt key in this same test but not making a mouse click within 5 seconds the window lost focus and the tool stopped with my selection.
    I have a wireless Logitech M305 mouse that this morning updated the driver to its current version 5.20.51, Control Center version: 6.20.50.
    I have not tested a wired mouse, yet.
    Any help would be appreciated.  Anyone else seen this?  Windows 7 64 bit the culprit?????
    Message was edited by: golfnut333

    UPDATE
    After I removed Photoshop from Norton 360's Administrative Settings_Silent Mode Settings_User-Specified Programs, I did not have the problem with the lasso tool that I first had with loss of window focus.  I then put Photoshop back in the 360's settings and the lasso tool still worked, BUT...............
    After a couple of days of not using Photoshop and turning computer on and off in that time, I tried Photoshop again and the same problem, it came back.  Loss of focus after 5 seconds of not clicking mouse.  So, once again I open Norton and took Photoshop out of the User-Specified Programs and the problem went away, no loss of focus.
    So, I will see if after a couple of days of turning on and off the computer and NOT putting Photoshop in the Norton's User-Specified Programs setting if the problem stays fixed.
    I don't have to have Photoshop in the Norton's setting I just thought that it would be a good idea so Norton didn't try to do any background processes or whatever while I was working in Photoshop or I was rendering a filter or something.
    Another thought I also have the Full Screen Detection setting ON.  I do use Photoshop in Full Screen mode so maybe when having both the Full Screen mode and User-Specified Programs setting selected it makes something go wacky.
    Hope this helps anyone having the same problem I "did".  Will post back after a few days to let you know if focus problem is gone.
    If it does relieve the problem then I will leave Photoshop off the list in Norton.  No sense in trying to fix something that really doesn't matter, really.
    UPDATE 2
    January 8, 2011, I tried the lasso tool again and it still appears to be working. I did my standard test of holding the alt key and clicking to make selections then not click for 5 seconds or more and I did not lose window focus.  I do not know why the Norton 360 setting triggers the loss of focus but since I turned that setting off I'm not having any problem.
    Will update again if something changes.
    Anyone else out there with the same problem that was solved using this method?
    Message was edited by: golfnut333

  • Problem with onBlur="window.focus()"

    Hi,
    inside the body tag of a popup widow i have used onBlur="window.focus()" and it is working fine i.e. when i tried to click on parent window the focus transfers back to popup window but i tried this by clicking like hundred times it fails i.e. the focus transfers to parent window.
    Does this function depends on number of click.
    manish

    Hi,
    No the problem is still there and it is not related to no of clicks because today for the just first time it failed.
    U have written
    "except maybe you can use onBlur and onFocus to set a variable to indicate the state and use setInterval to constantly check that every couple seconds as a backup to push it forward."
    i have not used this setInterval. ok let me tell u how i have used.
    In the parent page when it popups a window i have set a flag(global var.) to true and in the body tag (of parent itself) i used "onFocus="javascript:chkChildWin()""
    <script language="Javascript" >
    function chkChildWin()
    if(childFlag)
              cal_setFocus()// method to set the focus to popupwindow
    </script>and inside the popup window body tag i used
    onBlur="window.focus()"
    when user selects some thing from popup window or it closes the popup window then variable is reset to false. and as it is clear from the above mentioned code that parent window checks this flag on its focus method.
    sometimes it work fine and sometimes it does not.
    I don't know how to solve a problem which is not consistent, i mean this occurs randomly.
    plz help me out
    manish

  • Firefox frequently loses window focus

    It seems that Firefox frequently loses window focus when I open a new page. It may be a bookmark, a link opened into a new tab via CTRL+Left-Click, or whatever. The following scenario always results in the window losing focus (for me).
    # Open Firefox.
    # [http://www.foxnews.com Open this link and bookmark it].
    # Close and reopen Firefox.
    # Open the page just bookmarked using the bookmark list and don't touch the window.
    I read this page daily, so when I start Firefox and open the page, I have to click in it so as to scroll, etc..
    Firefox 13, Windows 7 Home Premium 64-bit
    I wish this site had "Preview" for its posts. Geez Louise.

    Oh please fix this ******* issue, it is driving me mad.
    ''Edited by a moderator due to language. See the [http://support.mozilla.com/kb/Forum+and+chat+rules+and+guidelines Rules & Guidelines] .''

  • Spaces loses window focus?

    Hello.
    If you use traditional cmd+tab, you'll notice that whatever window (in an app) you've last been on will be the one you cmd+tab to.
    For example, I have three Safari windows open, window 1, 2, and 3. I am looking at window 2 right now. I cmd+tab to an app on a different Space, and then cmd+tab back to Safari. Window 1, 2, OR 3 might now have focus. There's no way to predict it. Contrast to traditional cmd+tab, in which window 2 would have focus (since it's the last window focused when I cmd-tabbed away).
    An interesting consequence is that if you have several app windows open in different spaces, you *cannot predict which space you will be transported to when you cmd-tab to that app!*
    Am I missing something? Is there a switch I forgot to check?

    Having the same annoying trouble here as well. If I command-tab to an application in another space, when I command-tab back to the original app, the window I had just been working in is now buried and I need to cycle through each to find it again. Interestingly, the window I was previously working in is still receives keyboard input like it is in focus, but it has been cycled visibly behind other windows.

  • Bug: when fetching arrays of rows with null data values

    Using Oracle ODBC Driver 8.01.73.00 or 8.01.74.00 (called
    8.1.7.3.0 and 8.1.7.4.0 on the Oracle downloads page).
    When fetching multiple rows, and where some of the data is null,
    the the indicator variable quite often (but not always) has
    incorrect values.
    Is this a known bug? This seems like something that lots of
    people would encounter so I find it hard to understand why it
    hasn't already been fixed.
    Also, how do I report this as a bug to Oracle? I couldn't find
    the place on the site to do this.
    To reproduce:
    Create the following data in Oracle
    create table null_test
    item_id number (10, 0) not null,
    data1 number (10, 0) null,
    constraint null_test_pk1 primary key (item_id)
    insert into null_test (item_id) values (1);
    insert into null_test (item_id) values (2);
    commit;
    When you run the code to print out indicators and values, you
    get this output
    4: 1 -1:
    4: 2 0:-858993460
    The code to do this is as follows (put in your own values for
    the #defines at the top)
    #include <windows.h>
    #include <sql.h>
    #include <sqlext.h>
    #include <stdio.h>
    #define DB_NAME ""
    #define USER_NAME ""
    #define PASSWORD ""
    #define TEST_RETVAL(R) if (R != SQL_SUCCESS && R !=
    SQL_SUCCESS_WITH_INFO) return 1;
    int main()
         SQLRETURN retval;
         SQLHENV henv;
         retval = SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE,
    &henv);
         TEST_RETVAL(retval);
         retval = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION,
    (void*)SQL_OV_ODBC3, 0);
         TEST_RETVAL(retval);
         SQLHDBC hdbc;
         retval = SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
         TEST_RETVAL(retval);
         retval = SQLConnect(hdbc, (unsigned char*)DB_NAME,
    SQL_NTS, (unsigned char*)USER_NAME, SQL_NTS, (unsigned char*)
    PASSWORD, SQL_NTS);
         TEST_RETVAL(retval);
         SQLHSTMT hstmt;
         retval = SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);
         TEST_RETVAL(retval);
         const char* Query =     "select item_id, data1 from
    null_test order by item_id";
         const int NumRows = 13;
         int NumRowsFetched;
         retval = SQLSetStmtAttr(hstmt, SQL_ATTR_ROW_BIND_TYPE,
    SQL_BIND_BY_COLUMN, 0);
         TEST_RETVAL(retval);
         retval = SQLSetStmtAttr(hstmt, SQL_ATTR_ROW_ARRAY_SIZE,
    (void*)NumRows, 0);
         TEST_RETVAL(retval);
         retval = SQLSetStmtAttr(hstmt,
    SQL_ATTR_ROWS_FETCHED_PTR, &NumRowsFetched, 0);
         TEST_RETVAL(retval);
         SQLINTEGER rgnItemId[NumRows], rgnData1[NumRows],
    rgnData2[NumRows];
         SQLINTEGER rgnItemIdInd[NumRows], rgnData1Ind[NumRows],
    rgnData2Ind[NumRows];
         retval = SQLBindCol(hstmt, 1, SQL_C_LONG, rgnItemId, 0,
    rgnItemIdInd);
         TEST_RETVAL(retval);
         retval = SQLBindCol(hstmt, 2, SQL_C_LONG, rgnData1, 0,
    rgnData1Ind);
         TEST_RETVAL(retval);
         retval = SQLExecDirect(hstmt, (unsigned char*)Query,
    SQL_NTS);
         TEST_RETVAL(retval);
         for (int i = 0; i < NumRows; i++)
              rgnData1Ind[i] = rgnItemIdInd[i] = rgnData2Ind
    = 0;
         while ((retval = SQLFetchScroll(hstmt, SQL_FETCH_NEXT,
    0)) != SQL_NO_DATA)
              TEST_RETVAL(retval);
              for (int i = 0; i < NumRowsFetched; i++)
                   if (rgnData1Ind[i] == SQL_NULL_DATA)
                        printf("%2d:%5d %2d:%6s\n",
    rgnItemIdInd[i], rgnItemId[i], rgnData1Ind[i], "", rgnData2Ind
    [i], rgnData2[i]);
                   else
                        printf("%2d:%5d %2d:%6d\n",
    rgnItemIdInd[i], rgnItemId[i], rgnData1Ind[i], rgnData1[i],
    rgnData2Ind[i], rgnData2[i]);
              for (i = 0; i < NumRows; i++)
                   rgnData1Ind[i] = rgnItemIdInd[i] =
    rgnData2Ind[i] = 0;
         retval = SQLCloseCursor(hstmt);
         TEST_RETVAL(retval);
         retval = SQLFreeHandle(SQL_HANDLE_STMT, hstmt);
         TEST_RETVAL(retval);
         retval = SQLDisconnect(hdbc);
         TEST_RETVAL(retval);
         retval = SQLFreeHandle(SQL_HANDLE_DBC, hdbc);
         TEST_RETVAL(retval);
         retval = SQLFreeHandle(SQL_HANDLE_ENV, henv);
         TEST_RETVAL(retval);
         return 0;

    We get this problem too. We do a large fetch (200K rows)and find
    that not only do the null indicators report incorrectly, but the
    data for the nullable column is corrupt as well.

  • Is there a way to focus the Firefox proxy authorization window to be on top or be the focus when opening a new session?

    Using FF 3.6.7 through a Squid proxy server on Windows XP Pro at my office. When starting FF, the proxy authorization dialogue box (for proxy user ID and password) is always hidden behind other open windows. A new tab for the box doesn't even appear in the Windows taskbar. I have to ALT-TAB may way through the windows to get to it, and sometimes, I even forget that it's there and I wonder why FF isn't opening.
    Is there any way to force that proxy authorization dialogue window to be the focus when opening FF? This problem does not happen with IE.

    This addon ought to do the job
    * https://addons.mozilla.org/en-US/firefox/addon/always-on-top/
    You will need to open your video in a window and not minimise it fully only shrink it to the size you want.

  • Indesign CS5.5 hang on loss of focus when opening files

    I know there's going to be no quick fix but I'm going to throw this out. InDesign CS5.5 / 7.5.2 running on WindowsXP SP3 seems to hang when the program looses focus when a file is opened. The program will ocassionally lose focus if you click on the "update" button or if you select another application/window. The result is that the file will open but InDesign does not allow any actions. Just a "ding" when you click anywhere.
    Besides the obvious "don't touch your computer", any fixes/ideas? Hang on update is really annoying, especially if you don't touch anything except the update button.

    Hello all, sorry to bump such an old thread but this is the most similar topic I've come across to a problem some of us here are also having. I think the hidden alert is simply the update links progress bar, after playing with my monitors a bit:
    but even with it active on the main monitor, the progress bar is stuck and cancel does nothing.
    I have a theory that it is to do with linking to EPS files... but nothing to back that up.
    This is InDesign CS5 and Win7
    edit: I'm canvassing the other users here to see if it might be that file specifically.

  • Giving Stage Focus When First Opening In Browser Window - How??

    Is there any reliable way to give the stage focus when you first open it in a browser window WITHOUT first clicking on the stage? By reliable, I mean something that works across different browsers and on both PCs and Macs.
    I've seen numerous threads on this subject, and I've read the Adobe tech note, and it seems there is no reliable way. This is a joke, right???? How in the world can Adobe ask people to use Flash and not provide a reliable way to give the stage focus on startup. Requiring the user to click on the stage first is totally stupid.
    Has this problem been solved since all the other threads were posted, and if so, what's the solution?
    Thanks.

    for online swfs, it's a security issue and there's no reliable way to do it.  for local files, it's straight-forward.

  • After recent update to ff 10 my ff loses focus when opening non-active window. ALready tried everything. Any sugestions?

    After update to ff10 widnows lose focus when migrating to a different window. tried all possible options and still the same even after recent update to 11. Any suggestions?

    After update to ff10 widnows lose focus when migrating to a different window. tried all possible options and still the same even after recent update to 11. Any suggestions?

  • How to stop preview window from automatically getting focus when you move up/down the message list.

    Since updating (my TB was a few versions old) to 31.2, the preview window automatically gets focus when I move up/down the message list. I'm assuming this is a new "feature". Is there a way to shut this off and leave the focus on the message list so I can navigate up/down like before?

    You are referring to the 'Message Pane' which displays selected opened emails below the list of emails. It is not a 'preview'.
    When you select an email by either using mouse to click on an email in the list or using the arrow keys to select emails up and down the list, you are selecting an email to open and read. That is why it is being opened in the Message Pane so that you can read it.
    If you select an email in the list and then cllck anywhere else including in the Message Pane, then you will have moved focus away from the list and the strong highlight on email in list is reduced to paler highlight.
    When you click on an email in the list, the email becomes highlighted, at this point you can use eg: arrow keys to move up and down the list.
    If you are performing single left click on email in list and then do nothing else and the strong highlight auto changes to paler highlight.
    Check you do not have a conflict with an addon by starting Thunderbird in Safe Mode.
    Help > select 'Restart with addons disabled'

  • Query results window limited to 100 rows then 150 then 200

    Great product - I love this tool and don't mind helping to find the bugs in the prereleases like this.
    When I
    SELECT * FROM MY_TABLE
    in a sql worksheet, the results window initially only displays the first 100 rows.
    I can try to scroll down, but it stops at 100 rows.
    If click on Script Output window, the fetch count goes up to 150 and if I click back into
    Results window, I can then scroll to row 150. Click back over to Script Output and come back, now I'm up to 200. As long I scroll to the bottom of the Results window and click back and forth, I can increase the size of the results window by 50 rows each time. If I want the result window to show 2000 rows this will get real tedious real quick...
    Maybe a bug in dynamically resizing the result set?

    Hi gary,
    You may have already seen one or more threads like the following on the issue of increased memory overhead for the Excel formats:
    Re: Sql Developer 3.1 - Exporting a result set in xls generates and empty file
    Basically SQL Developer uses a third-party API to read and write these Excel formats. There are distinct readers and formatters for each of the xls and xlsx forms.
    There is a newer version of the API that supports streaming of xlsx Workbooks. Basically it achieves a much lower footprint by keeping in memory only rows that are within a sliding window, while the older, non-streaming version gives access to all rows in the document. The programmer may define the size of this window. I believe the newer API version was either not available or not stable during our 3.1 development cycle. Possibly a future SQL Developer version might use it.
    Regards,
    Gary
    SQL Developer Team

Maybe you are looking for