Cool VL Viewer forum
http://sldev.free.fr/forum/

Crash/Assertion error in LLRefCount after editing appearance
http://sldev.free.fr/forum/viewtopic.php?f=4&t=2394
Page 1 of 1

Author:  kathrine [ 2023-09-05 15:20:58 ]
Post subject:  Crash/Assertion error in LLRefCount after editing appearance

Hi Henri,

got a crash after editing appearance due to an assertion failing:

2023-09-05 15:12:35Z C:\Users\root\source\cv13020\indra\llcommon\llrefcount.cpp(44) : error
2023-09-05 15:12:35Z ERROR: LLRefCount::~LLRefCount: Deleting non-zero reference

Logs and Crash dump attached.

Cool VL Viewer v1.30.2.26, 64 bits, Sep 2 2023 11:27:11
RestrainedLove viewer v2.09.29.28
Release notes

CPU: AMD Ryzen 7 5700G with Radeon Graphics (3801 MHz)
Memory: 32662MB
OS version: Microsoft Windows 10 64 bits v10.0 (build 19045.3324)
Memory manager: OS native
Graphics: RADEON RX VEGA
Windows graphics driver version: Loading...
OpenGL version: 4.6.0 Core Profile Context 23.7.1.230626
Detected VRAM: 8120MB
J2C decoder: OpenJPEG: 1.4.0.635f
Audio driver: FMOD Studio v2.02.17
Networking backend: libcurl 7.47.0/OpenSSL 1.0.2u/zlib 1.2.11.zlib-ng
Browser plugin: Dullahan 1.12.3/CEF 91.1.21/Chromium 91.0.4472.114

Attachments:
crash_refcount.zip [45.07 KiB]
Downloaded 81 times

Author:  Henri Beauchamp [ 2023-09-05 15:47:45 ]
Post subject:  Re: Crash/Assertion error in LLRefCount after editing appear

Very nice !

Quite a nasty, stealth bug...

It is due to LLTexLayerSetBuffer being still LLRefCounted, instead of LLThreadSafeRefCounted like it now should be, given all texture classes have been changed to be thread-safe ref-counted, due to how GL textures can be created in shared OpenGL threads...

Fixed for next release. If you compile the viewer yourself, simply change line 44 of linden/indra/llappearance/lltexlayer.h to read:
Code:
class LLTexLayerSetBuffer : public virtual LLThreadSafeRefCount


Thanks for the report (and crash dump, which got me right to the point) !

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/