1920x1200 Bug

I have a lenovo w500 4058-cto. There has been several concerns that where really annoying. Currently i am running on windows 7 supported by lenovo.
(1) The native display is 1920x1200, with a default 150% DPI. Programs which are (window independent) always act weird, for example Hotkeys display, Norton 2011, and other similar window independent applications sometimes are displayed either small (high resolution) or stretches to bigger ones. 
(2) Skype notifications cannot popup unless i downgrade the resolution. Plus, if you move the mouse over the close button it starts blinking, and other applications act the same.
Kindly advise me if there is a fix or other workarounds possible because it is really annoying.
Note: tried different windows 7 versions, generic windows drivers but no good.
Highly appreciate your efforts.

I tried all possible combination with no luck. one of the lenovo supporting centers told me you might have to replace your display to 1680x1050. But of course that will cost me a fortune and it is a bug that is not worth investing for a solution. 
I really like the high resolution but its really buggy and causing a headache to fix it. 
Please advise me.
Regards

Similar Messages

  • Version 4 Bug - Multiple Object Editors of Same Object on Single Click

    Hi Jeff,
    thanks for your reply. You have missed that rule because you don't use SQL Developer for development. But never mind, lets go through it...
    1) Of course I have both options activated (all preferences were imported from previous version). The difference between previous version is that when you click on the SAME table multiple times - in the old version, it opened the table just once and in case you had another tab active, it swithed to the tab where the table was opened. So to have it clear, in the old version when you have table A and table B, both opened in separate tab and the focus was on table B, when you clicked on table A (in the tree) it activated tab with table A. It didn't create new tab with table A. Of course - why would I want to have multiple tabs opened with the same table??? In current version clicking on the same table multiple times, opens multiple tabs with the same table.
    This is also the reason why it sometimes openes a table multiple times even when you click it just once. This you cannot simulate because you are probably connecting to some local DB when you have perfect connection. Activate the autopin function and connect to different DBs all over the world and you will see what I mean. Right now, I have opened a connection and got 3 tabs opened, just after a single click on a table.
    2) Fetch size is again taken from previous version of SQL Developer and is set to 50. PgUp and PgDown are not working at all. I am talking about scrolling with a mouse wheel. In the old version it is working normally as expected. In this version if you scroll using a mouse wheel, the scroll speed is about 1 or even 0.5 lines per wheel round - so you can even not use a mouse wheel for scrolling! On all other places in this new release (connection tree, packages, ...) the scrolling is working normally, in the table it is unusable.
    3) I don't say it is on every table and every click. I cannot tell you how often is it because I am not using the new version. I am quite sure this is dependent on the connection speed maybe connectin quality. The difference between previous version is that in the previous version, refresh always worked. This particular issue cannot be solved by testing and searching for some rule when it happens. You must check the code and see when you display it!
    4) My screen resolution is 1920x1200, but that is only because I have an external monitor connected to my laptop. My laptop resolution is only 1366x768. Switch to this resolution and open the View menu.
    New worksheet - yes, this is exactly what I mean. I have planty of connections, for sure over 100 - but this is irelevant. Whenever you do a menu which can grow, you need to do it scrollable!!!
    I am not sure what you mean by Flyout menus, but I am scared only to hear about it

    Screen resolution, no scrolling on menus - that's a bug. Severity 2, a bad one, as you have noticed, and we'll try to make sure it's addressed for version 4.0.
    The other issue isn't as straightforward as you insinuate. I know you don't care about the particulars or why you might see this issue, so I won't bore you. But, we are aware that this is still coming up more frequently that it should, and we're on a big bug hunt to eradicate the behavior completely. It's not a simple thing, so it will more likely be incremental improvements. That being said, we are seeing it MUCH less than in previous versions of the tool.

  • Photoshop CS can't show the actual print size & other bugs...

    Although I have set in preferences my display's exact dots per inch (which is 92.72) , the rulers in mm and the real print size of the document, when I click on view print size, the document is displayed much smaller than the actual size! I have also set the printer (a virtual pdf printer) in A1 to avoid a possible scaling of the print size. So the software has all the required information, but still it can't figure out the actual print size!  What do you guys think about that? I personally think that the developers couldn't figure out how to do a simple task either!  Even though I work on photoshop CS occasionally, I have found too many bugs to mention.  The most frustrating one, is that it suddenly stops responding to key shortcuts! Then I have to select everything from the menus or save, exit, restart and re-open the documents -now imagine being in the middle of a complicated task...  Another huge annoying bug: When I "Select All" in order to copy a layer, if that layer happens to have some parts surrounded with transparency, Photoshop destroys their position and the image overall, by arbitrarily centering those parts in the pasted frame!!!  Also, too often everything disappears temporarily if I pause for a second while I drag a selection rectangle etc. They haven't even made the cursor capable to move in a gray background without being invisible!  So much for a "professional" expensive application!  Note I have installed the available patches for this version. I know it's a bit old but as I said, I work occasionally and I don't wish to pay hundreds of euros almost each year for a new version upgrade while I'm not even happy with the previous one!   BTW, on this thread editor when I hit "enter" to start a new line, the cursor goes at the beginning of the document!  Now, are the Adobe's web developers drunk or what?  Sorry, I cannot stand too much of stupidity right now...

    function(){return A.apply(null,[this].concat($A(arguments)))}
    function(){return A.apply(null,[this].concat($A(arguments)))}FrustratedToo wrote:
    @Noel
    - 317,632 pixels/inch ( 125,052pixels/cm )
    image size x,y = 28,9 x 25,56 cm, 3614 x 3196 pixels
    "Screen resolution" set to 92,719 pixels/inch
    The horizontal displayed size is only about 21cm instead of 28,9.
    - Windows XP Pro (version 2002) SP3 updated.
    - Asus (Nvidia) 8800 GTX, driver date: 20/11/2009, driver version: 6.14.11.9562
    monitor: Apple Cinema HD (aluminium) (1920x1200)
    New Document preset resolutions
    print resolution: 317,625 pixels/inch
    screen resolution: 92,719 pixels/inch
    Hm, your readings seem to imply Photoshop thinks your screen resolution is just about 128 pixels / inch.  Not sure where it might be getting that number.
    For what it's worth, on my Vista system I mocked up an image as you described above:  An image of 3614 x 3196 pixels at 317.632 pixels per inch.  My monitors display 100 ppi, and that's what I have set in the Edit - Preferences - Units & Rulers.
    When I selected the zoom tool and clicked the [ Print Size ] button it zoomed to 31.48% and when I measured the display width with the ruler it came up 11-3/8", which is just about right.
    HOWEVER...  When I right-clicked the image with the zoom tool active, and chose Print Size it came up 8-1/4", which just happens to be about the same amount smaller than proper size that you're seeing.  Sounds like a bona fide buglet in Photoshop CS.
    I repeated the performance with Photoshop CS2.  It works fine in CS2 - the [ Print Size ] button and right-click context menu entry both put the image up the same (proper) size.
    -Noel

  • Stroke Bug Illustrator CS6

    I contacted Adobe in June 2013 about a problem with the stroke profile items. I was told that there would be an update available and no updates were available. Will this be fixed anytime soon? Is it fixed in CC? In my photo I show the same exact stroke with different profiles applied. I have yet to find any efficient work arounds. Any info would be very helpful. Thanks!

    Below more elements
    My computer:
    Processor: Intel Xeon E5410 (Intel (R) Core (TM) i7 CPU 2.67Ghz [email protected]
    Microsfot Windows 7 Service Pack 1 +
    Installed memory (RAM): 8.00 GB
    64bit operating system
    Display: 1920x1200
    Graphics Card: NVIDIA Quadro FX 1800-30bits
    My usage:
    illustrations (I only use Illustrator CS6)
    planes (I use Illustrator with CADtools)
    documentions-packaging (I use illustrator with jpeg or psd done with photoshop CS6)
    information: I work on my computer and then I put my files on the corporate network
    My problem:
    regularly Illustrator will not start or it cuts abruptly, the following message appears:
    "A problem caused the program has stopped working properly. Windows will close the program and tell you if a solution is available"
    Do you have enough evidence to help me?
    De : Mylenium [email protected]
    Envoyé : vendredi 14 mars 2014 16:19
    À : Alison LEPREUX
    Objet : bug illustrator CS6
    Re: bug illustrator CS6
    created by Mylenium<http://forums.adobe.com/people/Mylenium> in Creative Suites - View the full discussion<http://forums.adobe.com/message/6209512#6209512

  • Changing Brush size in ACR 7.2 - bug oder feature?

    The update to ACR 7.2 changed the way the adjustment of the brush size is behaving. Before one pressed the right mouse button and moved left or right to change the size. Now it's not just left to right but right to left or up and down depending on where the tiny mouse indicatior on the outmost circle is placed. The has as an effect that it's not immediately clear in which direction the mouse has to be moved to change the size. Also the brush circle is move to the side while adjusting and is not congruent with the brushcircle after releasing the mouse botton.
    Any ideas if this is a feature or a bug?

    The ACR7.3 update did not fix the brush resize problem on my system either - also Win7x64 Ultimate, Ps 13.0.1 (currently I use only the x64 install but the problem exists with ACR hosted in the 32-bit install as well) and ACR 7.3.0.71.
    Another annoying thing I've noticed with 7.3 (maybe it was there before 7.3 but I never noticed it) is that even if you set the Feather slider to zero pixels, as soon as you set the brush size to 10 pixels or more, the brush is shown as being feathered. Maybe the 10 pixel cutoff is related to my screen size and resolution: 1920x1200 and 88ppi (NEC MultiSync LCD 2690 WUXi2) but it is still disconcerting at any size.
    The unexpected movement of the centre of the brush when you right click reported by the OP, another annoying characteristic, is always towards the centre point of your screen. If you are left of centre, it moves right and vice versa. If you are above centre it moves down and vice versa. Combinations move diagonally towards the centre.
    Eric Chan seemed to acknowledge the mouse right-click brush resize and brush centre movement problems with ACR 7.2 in his post #1. Looks like he's forgotten us or has been too busy with other matters. Either way , it would be nice to hear from him again with an update.

  • CS5 Point to file bug

    I just upgraded to CS5 and noticed that when I use the "point to file" thingy to create a link, it starts to follow my mouse then veers off in the opposite direction ! I can't get it to go near the right side of my monitor. I can make it work if I target it anywhere to the left of the monitor or even on my second monitor, located to the left. I just can't get it to go to the right side of my nice new 23"LCD!
    Anybody else see this?

    > I appreciate the suggestion that we get back on track.
    Thanks, that was actually my initial suggestion to RainyDayMagazine
    > Everyone having this problem is on a Mac, right? Are there any Windows users participating in this forum?
    I haven't been able to find anyone having this issue on Windows yet.
    > We're all running Mac OS 10.5+?
    RainyDayMagazine is incorrect and using only his personal anecdotal experience.  For instance, I've noticed the bug in both 10.6.6 and 10.6.7 so far as well.
    > We're all using DW CS4, CS5, or CS5.5?
    I've experienced this with CS5 and now CS5.5 after upgrading.  And now finding new problems with workspaces in CS5.5 after the upgrade that might be related, but I've started a new thread for that and will only bring that issue over here if a fix there resolves the issues here.
    > This only pertains to multi-monitor setups, right? Single monitors are not a problem, are they?
    This appears to be the case for everyone including me.
    > With two monitors, can you use point-to-file at all?
    Yes, but you are forced to move windows within the limited range.
    In my case, I have an external monitor (on the left) with a resolution of 1280x1024.  I'm able to drag the point-to-file arrow exactly 1280 pixels from the left edge of my MacBook Pro i7 display before it disappears which isn't far enough to reach the Files Window because the resolution of my MacBook Pro is 1920x1200.  I am then forced to put the File Window on the left external monitor and the arrow reaches there fine anywhere in that display.
    > Any brainstorms?
    If you haven't already contacted Adobe, please do so.  The more of us that bring this to their attention, the better.  As I mentioned in my previous post, I'm still analyzing where this errant data is stored.
    I'm probably going to boot into a clone when I have time and completely delete files from various places and see what happens.  I'm also curious to see what happens with a clean install of the Mac OS and running Lion which I will be trying in the coming weeks on an external testing hard drive I'll boot to.
    The main thing is to find what file/code/plist/etc. Dreamweaver utilizes when it defines the range for the point-to-file arrow.  If we can find that and edit it (or if it can be removed and refreshed) Then the problem will probably be fixed unless there's also an Apple bug contributing which I'm still investigating as well.
    But once again, we may all very well be shooting in the dark until Adobe comes in and helps, so contacting them should also be a priority.
    RainyDayMagazine suggested "setting the monitors to mirror, moving the menu bar, etc.", but AFAIK that hasn't worked for anyone else and I tried it and it didn't work.  I analyzed changes to the system/dreamweaver with fseventer while doing this, but it didn't render any clues as to why it didn't work at all.

  • QUICKTIME PLAYER BUG on 30" ADC

    This is a new thread continuing a thread which someone wrongly flagged as having 1 "Solved" answers available.
    For reference the previous thread is here: http://discussions.apple.com/thread.jspa?messageID=6101938#6101938
    The issue affects Fullscreen video (and some resized video) in Quicktime Player in Leopard (all versions of OS & QT up to of 14 Dec 2007)
    It occurs on Resolutions higher than 1920x1080 but more specifically 2560x1600 on 30" Displays
    It affects PPC & Intel with either ATi & Nvidia Graphics cards.
    The video playback can be "choppy" (especially HD content) and some people like myself are experiencing a shearing of the video vertically just left of centre.
    All other software (Quickview, iTunes, Final Cut, et al) seem to play the same video correctly indicating that it is a Quicktime Player issue.
    Also when any overlay (AV control, Adjustments, etc) are present over the Quicktime Player it plays back smoothly and then reverts to choppy and/or shearing when the overlay is cleared.
    A few work-arounds are to use QuickView or iTunes, or to lower the resolution of the display to 1920x1200. However this is absolutely unacceptable as many of us will have paid 1000s for our setup including an 30" Apple Cinema Display to run at 2560x1600 and use Quicktime Player because of its video adjustment features.
    Message was edited by: Ben King

    I think all you need to do is Reset your iPhone (press and hold the Home and Sleep/Wake buttons until you see the Apple logo, then release).  My iPhone 5 on 7.1.1 does not do this, so it is not an iOS bug, just a quirk in your particular installation.  Worse case, you may need to do a Restore of the iPhone, but try Reset first.

  • Matrox dualhead2go 1920x1200 blinking screens

    Hello,
    I've got a problem with Matrox dualhead2go, when trying to run it on two samsung syncmaster 2493hm, on 1920x1200 resolution, the screens starts to blink.
    My graphic card is NVidia GeForce 9400M.
    From Matrox support I got an answer that this is a snow leopard >= 10.6.2 issue, does anybody know what is the status of this bug, and where can I find any information about it on apple sites?

    Not according to their compatibility table, shane.
    I hasten to add that I have never used this device, but their compatability tables don't say that to me:
    Mac System compatibility
    Mac® OS X
    DualHead2Go *Digital Edition*
    Notebook model GPU model Video Output Maximum resolutions
    MacBook Pro (Late 2008 / Mid 2009) NVidia GeForce 9600M/9400M Mini DisplayPort2 2048x768 (*2x 1024x768)*
    (from http://www.matrox.com/graphics/en/support/compatibility/gxm/ )
    From what I can see the pre-unibody MBP models support 2x 1920x1200 on the "Digital Edition", but not the current ones unless you buy the specific "DP" (Display Port) model.
    Rod

  • Bug illustrator CS6

    Hello,
    I use the Adobe suite creative
    I have all the required recommendations for Illustrator CS6
    But regularly Illustrator will not start or it cuts abruptly, the following message appears:
    "A problem caused the program has stopped working correctement.Windows will close the program and tell you if a solution is available"
    Do you have any recommendation of use to avoid this problem?

    Below more elements
    My computer:
    Processor: Intel Xeon E5410 (Intel (R) Core (TM) i7 CPU 2.67Ghz [email protected]
    Microsfot Windows 7 Service Pack 1 +
    Installed memory (RAM): 8.00 GB
    64bit operating system
    Display: 1920x1200
    Graphics Card: NVIDIA Quadro FX 1800-30bits
    My usage:
    illustrations (I only use Illustrator CS6)
    planes (I use Illustrator with CADtools)
    documentions-packaging (I use illustrator with jpeg or psd done with photoshop CS6)
    information: I work on my computer and then I put my files on the corporate network
    My problem:
    regularly Illustrator will not start or it cuts abruptly, the following message appears:
    "A problem caused the program has stopped working properly. Windows will close the program and tell you if a solution is available"
    Do you have enough evidence to help me?
    De : Mylenium [email protected]
    Envoyé : vendredi 14 mars 2014 16:19
    À : Alison LEPREUX
    Objet : bug illustrator CS6
    Re: bug illustrator CS6
    created by Mylenium<http://forums.adobe.com/people/Mylenium> in Creative Suites - View the full discussion<http://forums.adobe.com/message/6209512#6209512

  • Index with "or" clause (BUG still exists?)

    The change log for 2.3.10 mentions "Fixed a bug that caused incorrect query plans to be generated for predicates that used the "or" operator in conjunction with indexes [#15328]."
    But looks like the Bug still exists.
    I am listing the steps to-repro. Let me know if i have missed something (or if the bug needs to be fixed)
    DATA
    dbxml> openContainer test.dbxml
    dbxml> getDocuments
    2 documents found
    dbxml> print
    <node><value>a</value></node>
    <node><value>b</value></node>
    INDEX (just one string equality index on node "value")
    dbxml> listIndexes
    Index: unique-node-metadata-equality-string for node {http://www.sleepycat.com/2002/dbxml}:name
    Index: node-element-equality-string for node {}:value
    2 indexes found.
    QUERY
    setVerbose 2 2
    preload test.dbxml
    query 'let $temp := fn:compare("test", "test") = 0
    let $results := for $i in collection("test.dbxml")
    where ($temp or $i/node[value = ("a")])
    return $i
    return <out>{$temp}{$results}</out>'
    When $temp is true i expected the result set to contain both the records, but that was not the case with the index. It works well when there is no index!
    Result WITH INDEX
    dbxml> print
    <out>true<node><value>a</value></node></out>
    Result WITHOUT INDEX
    dbxml> print
    <out>true<node><value>a</value></node><node><value>b</value></node></out>

    Hi Vijay,
    This is a completely different bug, relating to predicate expressions that do not examine nodes. Please try the following patch, to see if it fixes this bug for you:
    --- dbxml-2.3.10-original/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-04-18 10:05:24.000000000 +0100
    +++ dbxml-2.3.10/dbxml/src/dbxml/optimizer/QueryPlanGenerator.cpp     2007-08-08 11:32:10.000000000 +0100
    @@ -1566,11 +1572,12 @@
         else if(name == Or::name) {
              UnionQP *unionOp = new (&memMgr_) UnionQP(&memMgr_);
    +          result.operation = unionOp;
              for(VectorOfASTNodes::iterator i = args.begin(); i != args.end(); ++i) {
                   PathResult ret = generate(*i, ids);
                   unionOp->addArg(ret.operation);
    +               if(ret.operation == 0) result.operation = 0;
    -          result.operation = unionOp;
         // These operators use the presence of the node arguments, not their valueJohn

  • Bug report follow-up

    is there a way to follow-up on a bug report that i submitted?  i have the bug number, but would like to see if the report was understood, filled out properly and determine the status of the bug report.
    thanks,
    doug

    They comment on bugs if actions were taken. Otherwise - don't expect any feedback.

  • Solaris8 and 9 (possibly 7) /dev/poll driver bug report.

    Hello,
    I'd like to report a bug in the solaris 8 and 9 /dev/poll driver (poll(7d)).
    As i do not have a support account with sun or anything like that, there
    seems to be no other way to do that here (which is of course a very sad
    thing).
    Bug details:
    The /dev/poll device provides an ioctl-request (DP_ISPOLLED) for checking
    if a particular filedescriptor is currently in the set of monitored
    filedescriptors for that particular /dev/poll fd set (open /dev/poll fd).
    A quote from the documentation of the poll(7d) manual page taken from
    Solaris9:
    "DP_ISPOLLED ioctl allows you to query if a file descriptor is already in
    the monitored set represented by fd. The fd field of the pollfd structure
    indicates the file descriptor of interest. The DP_ISPOLLED ioctl returns 1
    if the file descriptor is in the set. The events field contains the
    currently polled events. The revents field contains 0. The ioctl returns 0
    if the file descriptor is not in the set. The pollfd structure pointed by
    pfd is not modified. The ioctl returns a -1 if the call fails."
    It says that when you query for an filedescriptor which is currently being
    monitored in the set, that it would return 1, and change the events field of
    the pollfd structure to the events it's currently monitoring that fd for.
    The revents field would be set to zero.
    However the only thing which actually happens here, is that FD_ISPOLLED
    returns 1 when the fd is in the set and 0 if not. When the fd is in the
    set, when FD_ISPOLLED returns 1, the events field remains unmodified, but
    the revents field gets changed.
    A small sample code to illustrate:
    #include <stdio.h>
    #include <unistd.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <sys/devpoll.h>
    main() {
    struct pollfd a;
    int dp_fd = open("/dev/poll", O_WRONLY);
    a.fd = 0; /* stdin */
    a.events = POLLIN; /* we monitor for readability, POLLIN=1 */
    a.revents = 0;
    write(dp_fd, &a, sizeof(a));
    a.fd = 0;
    a.events = 34; /* filled in with bogus number to show malfunctioning */
    a.revents = 0;
    printf("DP_ISPOLLED returns: %d\n", ioctl(dp_fd, DP_ISPOLLED, &a));
    printf("a.fd=%d, a.events=%hd, a.revents=%hd\n", a.fd, a.events,
    a.revents);
    According to the documentation of /dev/poll and namely DP_ISPOLLED this
    program is supposed to print the following:
    DP_ISPOLLED returns: 1
    a.fd=0, a.events=1, a.revents=0
    However it prints the following:
    DP_ISPOLLED returns: 1
    a.fd=0, a.events=34, a.revents=1
    You can take any number instead of '34' and it will simply remain untouched
    after the DP_ISPOLLED ioctl-request.
    I hope it's clear now that the solaris8 and solaris9 (and probably solaris7
    with /dev/poll patch too) DP_ISPOLLED implementation is broken.
    This bug is also easily illustrated by looking at the solaris8 kernel sourcecode:
    <snippet osnet_volume/usr/src/uts/common/io/devpoll.c:dpioctl()>
    case DP_ISPOLLED:
    pollfd_t pollfd;
    polldat_t *pdp;
    if (pollfd.fd < 0) {
    mutex_exit(&pcp->pc_lock);
    break;
    pdp = pcache_lookup_fd(pcp, pollfd.fd);
    if ((pdp != NULL) && (pdp->pd_fd == pollfd.fd) &&
    (pdp->pd_fp != NULL)) {
    pollfd.revents = pdp->pd_events;
    if (copyout(&pollfd, (caddr_t)arg,
    sizeof(pollfd_t))) {
    mutex_exit(&pcp->pc_lock);
    DP_REFRELE(dpep);
    return (set_errno(EFAULT));
    *rvalp = 1;
    </snippet>
    its' clearly visible that the code writes the current monitored events to
    the revents field:
    'pollfd.revents = pdp->pd_events;'
    and that it doesnt set revents to zero.
    It's funny to see that this has been like this since Solaris8 (possibly 7). That means nobody ever used DP_ISPOLLED that way or people were simply to lazy to file a bug report.
    Another funny thing related to this. is that Hewlett-Packard did seem to know about this. Since HP-UX11i version 1.6 they also support /dev/poll. From their manual page i ll quote some sentences from their WARNING session:
    "The ioctl(DP_ISPOLLED) system call also returns its result in the revents member of the pollfd structure, in order to be compatible with the implementation of the /dev/poll driver by some other vendors."
    Hopefully this will get fixed.
    I also like to reexpress my very negative feelings towards the fact that you're not able to file bug reports when you do not have a support contract. Ridiculous.
    Thanks,
    bighawk

    Have I mentioned how much i love my playbook now Great job on os 2.0

  • [bdb bug]repeatly open and close db may cause memory leak

    my test code is very simple :
    char *filename = "xxx.db";
    char *dbname = "xxx";
    for( ; ;)
    DB *dbp;
    DB_TXN *txnp;
    db_create(&dbp,dbenvp, 0);
    dbenvp->txn_begin(dbenvp, NULL, &txnp, 0);
    ret = dbp->open(dbp, txnp, filename, dbname, DB_BTREE, DB_CREATE, 0);
    if(ret != 0)
    printf("failed to open db:%s\n",db_strerror(ret));
    return 0;
    txnp->commit(txnp, 0);
    dbp->close(dbp, DB_NOSYNC);
    I try to run my test program for a long time opening and closing db repeatly, then use the PS command and find the RSS is increasing slowly:
    ps -va
    PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
    1986 pts/0 S 0:00 466 588 4999 980 0.3 -bash
    2615 pts/0 R 0:01 588 2 5141 2500 0.9 ./test
    after a few minutes:
    ps -va
    PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
    1986 pts/0 S 0:00 473 588 4999 976 0.3 -bash
    2615 pts/0 R 30:02 689 2 156561 117892 46.2 ./test
    I had read bdb's source code before, so i tried to debug it for about a week and found something like a bug:
    If open a db with both filename and dbname, bdb will open a db handle for master db and a db handle for subdb,
    both of the two handle will get an fileid by a internal api called __dbreg_get_id, however, just the subdb's id will be
    return to bdb's log region by calling __dbreg_pop_id. It leads to a id leak if I tried to open and close the db
    repeatly, as a result, __dbreg_add_dbentry will call realloc repeatly to enlarge the dbentry area, this seens to be
    the reason for RSS increasing.
    Is it not a BUG?
    sorry for my pool english :)
    Edited by: user9222236 on 2010-2-25 下午10:38

    I have tested my program using Oracle Berkeley DB release 4.8.26 and 4.7.25 in redhat 9.0 (Kernel 2.4.20-8smp on an i686) and AIX Version 5.
    The problem is easy to be reproduced by calling the open method of db handle with both filename and dbname being specified and calling the close method.
    My program is very simple:
    #include <stdlib.h>
    #include <stdio.h>
    #include <sys/time.h>
    #include "db.h"
    int main(int argc, char * argv[])
    int ret, count;
    DB_ENV *dbenvp;
    char * filename = "test.dbf";
    char * dbname = "test";
    db_env_create(&dbenvp, 0);
    dbenvp->open(dbenvp, "/home/bdb/code/test/env",DB_CREATE|DB_INIT_LOCK|DB_INIT_LOG|DB_INIT_TXN|DB_INIT_MPOOL, 0);
    for(count = 0 ; count < 10000000 ; count++)
    DB *dbp;
    DB_TXN *txnp;
    db_create(&dbp,dbenvp, 0);
    dbenvp->txn_begin(dbenvp, NULL, &txnp, 0);
    ret = dbp->open(dbp, txnp, filename, dbname, DB_BTREE, DB_CREATE, 0);
    if(ret != 0)
    printf("failed to open db:%s\n",db_strerror(ret));
    return 0;
    txnp->commit(txnp, 0);
    dbp->close(dbp, DB_NOSYNC);
    dbenvp->close(dbenvp, 0);
    return 0;
    DB_CONFIG is like below:
    set_cachesize 0 20000 0
    set_flags db_auto_commit
    set_flags db_txn_nosync
    set_flags db_log_inmemory
    set_lk_detect db_lock_minlocks
    Edited by: user9222236 on 2010-2-28 下午5:42
    Edited by: user9222236 on 2010-2-28 下午5:45

  • Multiple return values (Bug-ID 4222792)

    I had exactly the same request for the same 3 reasons: strong type safety and code correctness verification at compile-time, code readability and ease of mantenance, performance.
    Here is what Sun replied to me:
    Autoboxing and varargs are provided as part of
    JSRs 14 and 201
    http://jcp.org/en/jsr/detail?id=14
    http://jcp.org/en/jsr/detail?id=201
    See also:
    http://forum.java.sun.com/forum.jsp?forum=316
    http://developer.java.sun.com/developer/earlyAccess/adding_generics/index.html
    Multiple return values is covered by Bug-ID 4222792
    Typically this is done by returning an array.
    http://developer.java.sun.com/developer/bugParade/bugs/4222792.html
    That's exactly the problem: we dynamically create instances of array objects that would better fit well within the operand stack without stressing the garbage collector with temporary Array object instances (and with their backing store: 2 separate allocations that need to be recycled when it is clearly a pollution that the operand stack would clean up more efficiently)
    If you would like to engage in a discussion with the Java Language developers, the Generics forum would be a better place:
    http://forum.java.sun.com/forum.jsp?forum=316
    I know that (my report was already refering to the JSR for language extension) Generics is not what I was refering to (even if a generic could handle multiple return values, it would still be an allocated Object
    instance to pack them, i.e. just less convenient than using a static class for type safety.
    The most common case of multiple return values involve values that have known static datatypes and that should be checked with strong typesafety.
    The simple case that involves returning two ints then will require at least two object instances and will not solve the garbage collection overhead.
    Using a array of variable objects is exactly similar, except that it requires two instances for the components and one instance for the generic array container. Using extra method parameters with Integer, Byte, ... boxing objects is more efficient, but for now the only practical solution (which causes the least pollution in the VM allocator and garbage collector) is to use a custom class to store the return values in a single instance.
    This is not natural, and needlessly complexifies many interfaces.
    So to avoid this pollution, some solutions are used such as packing two ints into a long and returning a long, depacking the long after return (not quite clean but still much faster at run-time for methods that need to be used with high frequencies within the application. In some case, the only way to cut down the overhead is to inline methods within the caller code, and this does not help code maintenance by splitting the implementation into small methods (something that C++ can do very easily, both because it supports native types parameters by reference, and because it also supports inline methods).
    Finally, suppose we don't want to use tricky code, difficult to maintain, then we'll have to use boxing Object types to allow passing arguments by reference. Shamely boxed native types cannot be allocated on the operand stack as local variables, so we need to instanciate these local variables before call, and we loose the capacity to track the cases where these local variables are not really initialized by an effective call to the method that will assign them. This does not help debugging, and is against the concept of a strongly typed language like Java should be:
    Java makes lots of efforts to track uninitialized variables, but has no way to determine if an already instanciated Object instance refered in a local variable has effectively received an effective assignment because only the instanciation is kept. A typical code will then need to be written like this:
    Integer a = null;
    Integer b = null;
    if (some condition) {
    //call.method(a, b, 0, 1, "dummy input arg");
    // the method is supposed to have assigned a value to a and b,
    // but can't if a and b have not been instanciated, so we perform:
    call.method(a = new Integer(), b = new Integer(), 0, 1, "dummy input
    arg");
    // we must suppose that the method has modified (not initialized!)
    the value
    // of a and b instances.
    now.use(a.value(), b.value())
    // are we sure here that a and b have received a value????
    // the code may be detected at run-time (a null exception)
    // or completely undetected (the method() above was called but it
    // forgot to assign a value to its referenced objects a and b, in which
    // case we are calling in fact: now.use(0, 0); with the default values
    // or a and b, assigned when they were instanciated)
    Very tricky... Hard to debug. It would be much simpler if we just used:
    int a;
    int b;
    if (some condition) {
    (a, b) = call.method(0, 1, "dummy input arg");
    now.use(a, b);
    The compiler would immediately detect the case where a and b are in fact not always initialized (possible use bere initialization), and the first invoked call.method() would not have to check if its arguments are not null, it would not compile if it forgets to return two values in some code path...
    There's no need to provide extra boxing objects in the source as well as at run-time, and there's no stress added to the VM allocator or garbage collector simply because return values are only allocated on the perand stack by the caller, directly instanciated within the callee which MUST (checked at compile-time) create such instances by using the return statement to instanciate them, and the caller now just needs to use directly the variables which were referenced before call (here a and b). Clean and mean. And it allows strong typechecking as well (so this is a real help for programmers.
    Note that the signature of the method() above is:
    class call {
    (int, int) method(int, int, String) { ... }
    id est:
    class "call", member name "method", member type "(IILjava.lang.string;)II"
    This last signature means that the method can only be called by returning the value into a pair of variables of type int, or using the return value as a pair of actual arguments for another method call such as:
    call.method(call.method("dummy input arg"), "other dummy input arg")
    This is strongly typed and convenient to write and debug and very efficient at run-time...

    Can anyone give me some real-world examples where
    multiple return values aren't better captured in a
    class that logically groups those values? I can of
    course give hundreds of examples for why it's better
    to capture method arguments as multiple values instead
    of as one "logical object", but whenever I've hankered
    for multiple return values, I end up rethinking my
    strategy and rewriting my code to be better Object
    Oriented.I'd personally say you're usually right. There's almost always a O-O way of avoiding the situation.
    Sometimes though, you really do just want to return "two ints" from a function. There's no logical object you can think of to put them in. So you end up polluting the namespace:
    public class MyUsefulClass {
    public TwoInts calculateSomething(int a, int b, int c) {
    public static class TwoInts {
        //now, do I use two public int fields here, making it
        //in essence a struct?
       //or do I make my two ints private & final, which
       //requires a constructor & two getters?
      //and while I'm at it, is it worth implementing
      //equals(), how about hashCode()? clone()?
      //readResolve() ?
    }The answer to most of the questions for something as simple as "TwoInts" is usually "no: its not worth implementing those methods", but I still have to think about them.
    More to the point, the TwoInts class looks so ugly polluting the top level namespace like that, MyUsefulClass.TwoInts is public, that I don't think I've ever actually created that class. I always find some way to avoid it, even if the workaround is just as ugly.
    For myself, I'd like to see some simple pass-by-value "Tuple" type. My fear is it'd be abused as a way for lazy programmers to avoid creating objects when they should have a logical type for readability & maintainability.
    Anyone who has maintained code where someone has passed in all their arguments as (mutable!) Maps, Collections and/or Arrays and "returned" values by mutating those structures knows what a nightmare it can be. Which I suppose is an argument that cuts both ways: on the one hand you can say: "why add Tuples which would be another easy thing to abuse", on the other: "why not add Tuples, given Arrays and the Collections framework already allow bad programmers to produce unmainable mush. One more feature isn't going to make a difference either way".
    Ho hum.

  • Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Extensions like Ghostery, WOT or AdBlock stop working after two or three times. Restarting the webpage in a new tab the extensions will work again for several times and then stop again. Has anybody an explanation or a workaround for this bug in Safari 5?

    Remove the extensions, redownload Safari, reload the extensions.
    http://www.apple.com/safari/download/
    And if you really want a better experience, use Firefox, tons more choices and possibilities there.
    Firefox's "NoScript" will block the Trojan going around on websites. Best web security you can get.
    https://addons.mozilla.org/en-US/firefox/addon/noscript/
    Ghostery, Ad Block Plus and thousands of add-ons more have originated on Firefox.

Maybe you are looking for

  • Problems with playback after upgrading to 4.4.2.

    After upgrading my Apple TV 2nd generation to iOS 4.4.2 a great amount of my HD content won't play. I get this message: An erorr occurred loading this content. Try again later. The problem is only associated with HD video, but not every HD video file

  • Automatically shut down during windows 8.1 update (at the time of setting up)

    I faced the problem 5-6 times ...as I can't update win 8.1. After completion of win 8.1 download when it restarts and at the time of setting up it shuts down automatically...(after setting up 25%..15%...etc...).

  • Adobe InDesign CC 2014 has stopped working

    So...I am trying to help our Marketing Manager with some problems with Adobe InDesign CC 2014. On startup of the program, more often than not it comes up with: Adobe InDesign CC 2014 has stopped working A problem caused the program to stop working co

  • Installing TechTool Deluxe

    Hello, When I try And Install TechTool Deluxe v3 I am given a folder with many items in -none of which make sense (to me!) These are the items displyed when the disc is opened..... .vol mach mach_kernal Applications bin dev etc Library Techtool Delux

  • HT4177 how can downolad windows 7 and instal in my macpro

    http://prntscr.com/ris2b i have doit that what i should to do!!! more