You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

25. April 2010, 07:30:57

spadija

Posts: 1643

GDI leak when saving images

I believe there is a GDI leak when saving images using either the context menu or Ctrl+Click. Under normal circumstances, this shouldn't be much of a problem, but if you leave Opera running for a while and save a large number of images, it will eventually freeze Opera.

In this screenshot, note the number of GDI objects opera.exe is using. All I did was Ctrl+Click the image in the center of the Opera window and hit Escape to cancel the dialog over and over for a while (5-7 minutes), but the number of GDI objects Opera used steadily rose until eventually Opera froze.

<a href="http://my.opera.com/spadija/albums/showpic.dml?album=2241911&picture=41059271"></a>

For some reason, this seems to be isolated to saving with the context menu's "Save Image" or Ctrl+Clicking an image. If you open the image in a tab and use Ctrl+S or Menu->Page->Save As to bring up the save dialog, Opera doesn't seem to leak (or use any more) GDI objects.

I'm on Windows 7 x64 using build 3370 (10.52 RC5). Can anyone else confirm this?

25. April 2010, 07:59:55

Vectronic

... ... ...

Posts: 2538

Confirmed... for me (XP SP3, 10.52 3370) it creates 38 new ones for each Ctrl+Click/Dialog... on cancel, it removes 20 of them, keeps 18...

25. April 2010, 20:52:54 (edited)

crash71

Posts: 127

Confirmed something of this sort, after hundred(s) of context menu "save-as", the "Save As" window loses it's graphics/icons for all elements in the window, ie: no History, Desktop, My Documents, My Computer, My Network Places (on the sidebar), no icons for BackArrow, UpDir, New Folder, or View Menu (along the top), and the FileName and Save as Type dropdowns no longer have a downArrow graphic on the side, it becomes a "6".

And eventually, Opera just plain crashes.

Note: I experienced it initially with 10.51 Final; this did not occur with 10.10.
Currently, I'm using Opera 10.52, Build 3370, Win2K

25. April 2010, 19:08:57

robsonpc

Pensamento Positivo!

Posts: 570

I'm disappointed with so many bug reports about memory leaks in plugins, problems in managing virtual memory. Someone read this and puts a priority?
The software is not perfect and does not verify the claims unfounded!
Manjaro Linux 0.8.8 - Opera Linux ?
AMD Vision A4-3305M - 4GB DDR3 - ATI HD 6480G - 500GB HDD

26. April 2010, 21:46:27

Araiel

Posts: 82

Has anyone reported this as a bug? That's the only sure way to get Opera people to know about the issue. https://bugs.opera.com/wizard/

27. April 2010, 08:45:13

lewisje

Posts: 11

Originally posted by crash71:

Confirmed something of this sort, after hundred(s) of context menu "save-as", the "Save As" window loses it's graphics/icons for all elements in the window, ie: no History, Desktop, My Documents, My Computer, My Network Places (on the sidebar), no icons for BackArrow, UpDir, New Folder, or View Menu (along the top), and the FileName and Save as Type dropdowns no longer have a downArrow graphic on the side, it becomes a "6".

And eventually, Opera just plain crashes.

Note: I experienced it initially with 10.51 Final; this did not occur with 10.10.
Currently, I'm using Opera 10.52, Build 3370, Win2K

Normally this only happens in Windows Explorer (the "Save As" dialog uses the same set of common controls though); normally the Marlett font is used for those little bits of user-interface, but then for some reason, a little before crashing, it will only be able to load the System typeface. Try opening Paint and typing a 6 and then changing the font to Marlett.
Anyway I have seen this happening consistently since Opera 10.5, along with the inability to right-click an image that is also a link and have it open in a new tab, and I never had that problem in Opera 10.1 and earlier; I run XP SP3.

27. April 2010, 13:17:41

Opera Software

mitchman2

Opera Developer

Posts: 416

Known and fixed, but not in time for 10.52. Expect it in a later version.
Petter Nilsen
Opera Software ASA
Senior Desktop developer

6. May 2010, 18:00:39

spadija

Posts: 1643

I don't know if the fix has made it into the latest builds, but this seems to be better (but not gone) in build 3383. It seems to take a bit longer for the GDI object count to reach the 9000's.

6. May 2010, 18:42:59

Vectronic

... ... ...

Posts: 2538

Slightly... it seems.

After the initial dialog (where it adds nearly 100 new objects), it adds 35 per dialog, and still removing 20 (leaving 15) when the dialog is closed... so it's 3 better than before...lol

7. May 2010, 18:55:21

Vectronic

... ... ...

Posts: 2538

In the <a href="http://my.opera.com/desktopteam/blog/2010/05/07/performance-speed-dial-enhancements-and-bug-fixes">latest build</a> (10.54, 3386)

Originally posted by Desktop Team:

DSK-294130 (GDI leak on "Save to Download Folder)


And it indeed does appear to be fixed.

7. May 2010, 20:48:23

spadija

Posts: 1643

Originally posted by Vectronic:

And it indeed does appear to be fixed.



Confirmed. Thank you Opera team!

Forums » Opera for Windows/Mac/Linux » Beta testing (including snapshots and previews)