Project Monitor, assert if logcache disabled and monitoring an unaccessible url

11 views
Skip to first unread message

Daniel Sahlberg

unread,
Nov 30, 2022, 5:29:48 AM11/30/22
to TortoiseSVN-dev
  Hi,

I'm getting an assert in CCacheLogQuery::GetCache(). I believe it is reproducible:

- Disable log caching in the TortoiseSVN settings
- Setup two projects to monitor, one functional (eg https://svn.osdn.net/svnroot/tortoisesvn/) and one where you don't have access (I'm using https://svn.apache.org/repos/private/pmc/)
- Start Project Monitor
- Click on the functional project, then on the non-functional project, then on the functional project again. The assert in GetCache() triggers.

I don't fully understand how the logcache works, but it seems the cache variable is not initialized with log caching turned off (which sounds reasonable!), however there should be no calls to the logcache objects. Or they should handle a NULL cache properly.

Anyone?

Kind regards,
Daniel

Stefan

unread,
Dec 1, 2022, 1:19:47 PM12/1/22
to TortoiseSVN-dev

I don't fully understand how the logcache works, but it seems the cache variable is not initialized with log caching turned off (which sounds reasonable!), however there should be no calls to the logcache objects. Or they should handle a NULL cache properly.


The log cache is always used, even if disabled. But if disabled, the data in the cache is not saved to disk or loaded from it. Then the 'cache' just holds all the log info in memory.

the assertion is fixed in r29488

Daniel Sahlberg

unread,
Dec 3, 2022, 2:14:28 PM12/3/22
to TortoiseSVN-dev
Thanks both for the fix and the explaination. Seems to work now =) 

/Daniel
Reply all
Reply to author
Forward
0 new messages