Rocket Division Software
http://www.starburnsoftware.com/forum/

CacheObject allocation error
http://www.starburnsoftware.com/forum/starburn-sdk-f3/cacheobject-allocation-error-t2437.html
Page 1 of 2

Author:  jtrammell [ Wed Apr 24, 2013 7:16 pm ]
Post subject:  CacheObject allocation error

Good morning,

I have an application which is happily running on hundreds of Winows XP computers with a wide variety of configurations. It has recently begun to be installed on Windows 7 computers and we are seeing a problem with Starburn on these installations. It only occurs in Windows 7, and it only occurs when using Pioneer BDR-206D optical drives. The problem is that after the application has been running for a while (typically after processing somewhere between 20 and 30 discs) the following function call fails:

Code:
result = StarBurn_CdvdBurnerGrabber_Create(&m_Handle, textresult, sizeof(textresult), &sysresult, &cdbinfo, (PCALLBACK) StarBurnCallback, this, m_PortId, m_BusId, m_TargetId, m_LUN, 0);


It fails with the following error message:
Quote:
Error 4 'CStarBurn_CacheObject::CStarBurn_CacheObject(): Failed to allocate memory'


Our application always (to the best of my knowledge, and given that the problem only occurs in Windows 7 with a specific drive I believe this is true) releases the allocated drive handle thusly:
Code:
StarBurn_Destroy(&m_Handle);


Since we do allocate and release the drive handles several times per disc, it would seem there is a memory leak in Starburn. Further evidence of this can be seen when comparing the starting memory usage of the application (1,588K) with the memory usage at the point of failure in Starburn (900,000K+).

Is this a known issue? Is there a known or anticipated fix?

Author:  anton (staff) [ Wed Apr 24, 2013 7:19 pm ]
Post subject:  Re: CacheObject allocation error

1) What StarBurn SDK version are you running?

2) Can you send full debug log to support@starburnsoftware.com?

Initially sounds like PC is running out of virtual memory. For a reason...

Author:  jtrammell [ Wed Apr 24, 2013 10:56 pm ]
Post subject:  Re: CacheObject allocation error

The DLL is version 12.0.0.272. I'll send a log file as soon as I can generate one.

Author:  jtrammell [ Thu Apr 25, 2013 6:18 pm ]
Post subject:  Re: CacheObject allocation error

It appears that my client no longer has the debug version of this DLL. Can you provide it?

Author:  jtrammell [ Fri Apr 26, 2013 7:52 pm ]
Post subject:  Re: CacheObject allocation error

I managed to track down a debug version of the DLL and reproduce the error. Here is a log file from that batch. The error, of course, occurs at the end.

Attachments:
Starburn.zip [14.7 KiB]
Downloaded 2311 times

Author:  dima (staff) [ Mon Apr 29, 2013 1:48 pm ]
Post subject:  Re: CacheObject allocation error

Thanx,

We are checking this issue!

Regards,

Dmitry

Author:  jtrammell [ Tue May 07, 2013 10:44 pm ]
Post subject:  Re: CacheObject allocation error

Any progress on this?

Author:  andrey(staff) [ Mon May 13, 2013 11:34 am ]
Post subject:  Re: CacheObject allocation error

Hello,

Sorry for delay, there were holidays in our country.
I analysed your log and saw that before first failure were created two device objects with default (for write) cache size. And these device objects weren't destroyed before you tried to create next one. And you used "zero" cache size for device object creation - it's default value for writing (160 MBs). Possibly you didn't have enough free memory at this moment.
Are you using "zero" value of cache parameter while you enumerating devices?

Author:  jtrammell [ Mon May 13, 2013 5:52 pm ]
Post subject:  Re: CacheObject allocation error

I'm not sure I understand your question... There is no "cache size" when we initially enumerate the available devices. All device handles are opened with a cache size of zero, though.

Author:  andrey(staff) [ Mon May 13, 2013 6:01 pm ]
Post subject:  Re: CacheObject allocation error

jtrammell wrote:
I'm not sure I understand your question... There is no "cache size" when we initially enumerate the available devices. All device handles are opened with a cache size of zero, though.


Zero is a special value that tells the toolkit to allocate default cache size (160 MB).
Please use define STARBURN_CACHE_SIZE_READ_ONLY for enumeration and STARBURN_CACHE_SIZE_READ_WRITE when you use object for burning.

Author:  jtrammell [ Mon May 13, 2013 6:11 pm ]
Post subject:  Re: CacheObject allocation error

Okay, I'll give that a shot. I assume that when you say "enumerate", you actually mean "open the device".

Author:  andrey(staff) [ Tue May 14, 2013 8:01 am ]
Post subject:  Re: CacheObject allocation error

jtrammell wrote:
Okay, I'll give that a shot. I assume that when you say "enumerate", you actually mean "open the device".


"Enumerate" - I mean you get the list of the optical drives to show it to the user. And you open(create object) each device with some cache size.

Author:  jtrammell [ Mon Jun 24, 2013 7:43 pm ]
Post subject:  Re: CacheObject allocation error

It looks like that worked, thanks!

Author:  andrey(staff) [ Tue Jun 25, 2013 8:40 am ]
Post subject:  Re: CacheObject allocation error

Ok :)

Author:  jtrammell [ Tue Oct 01, 2013 8:04 pm ]
Post subject:  Re: CacheObject allocation error

Hello again.

Unfortunately it appears that this problem has actually not been solved. It turns out that the problem still exists, it just takes longer for it to surface now (110+ discs instead of 20+ discs). Once again it seems to be that there is a memory leak in Starburn, or perhaps in the driver for the BDR-206D.

Page 1 of 2 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/