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

Region Info Floater: Crash when clicking an avatar name.
http://sldev.free.fr/forum/viewtopic.php?f=4&t=1919
Page 1 of 1

Author:  Duncan Armundsen [ 2019-04-27 15:38:36 ]
Post subject:  Region Info Floater: Crash when clicking an avatar name.

Segmentation fault when clicking an avatar name in Region/estate, Access tab.

Code:
Cool VL Viewer v1.26.22.44, 64 bits, Apr 27 2019 10:42:46
RestrainedLove viewer v2.09.25.20
Release Notes

CPU: AMD FX-8320E Eight-Core Processor (3470.52 MHz)
Memory: 32132MB
OS version: Linux-x86_64 v5.0.9-1-ck #1 SMP PREEMPT Sun Apr 21 17:37:15 CEST 2019
Memory manager: jemalloc v5.2.0-20190418
Graphics card vendor: NVIDIA Corporation
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2
OpenGL version: 4.6.0 NVIDIA 418.56
Detected VRAM: 6144MB
J2C decoder: OpenJPEG: 1.4.0.635e
Audio driver: FMOD Studio v2.00.00 (PulseAudio)
Networking backend: libcurl/7.47.0 OpenSSL/1.0.2q zlib/1.2.11
Embedded browser: CEF3 plugin v3.3626.1895.g7001d56

Built with: GCC v4.8.5

Compile flags used for this build:
-O3 -fno-delete-null-pointer-checks -fno-align-labels -fno-align-loops -fno-ipa-cp-clone -fsched-pressure -frename-registers -fweb -DNDEBUG -std=c++98 -pipe -g -gdwarf-2 -gstrict-dwarf -fno-var-tracking-assignments -fexceptions -fno-strict-aliasing -fvisibility=hidden -fsigned-char -m64 -mfpmath=sse -fno-math-errno -fno-trapping-math -pthread -fno-stack-protector -Wall -Wno-reorder -Wno-unused-local-typedefs -Werror -DLL_LINUX=1 -D_REENTRANT -D_GLIBCXX_USE_C99_MATH=1 -DXML_STATIC -DLL_USE_JEMALLOC=1 -DLL_ELFBIN=1 -DLL_LUA=1 -DOV_EXCLUDE_STATIC_CALLBACKS -DLL_FMODSTUDIO=1 -DLL_OPENAL=1 -DLL_SDL=1 -DLIB_NDOF=1 -DLL_X11=1


Attachments:
CoolVLViewer_15594.log.gz [17.08 KiB]
Downloaded 180 times
stack_trace.log [2.83 KiB]
Downloaded 156 times

Author:  Henri Beauchamp [ 2019-04-27 16:02:11 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

Please, provide more details, since I am not the owner of a region or estate and cannot reproduce this bug here...

What list did you click into (there are four lists) ?
Is the crash happening for one list, several, all ?

Thank you.

Author:  Duncan Armundsen [ 2019-04-27 17:16:47 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

I am also not an owner of a region or estate, but I have estate management rights for a rented region ;) .

Already opening the Region/estate floater causes:
Code:
2019-04-27T16:59:40Z WARNING: LLFloaterRegionInfo::processEstateOwnerRequest: Mismatched Estate message: estateupdateinfo
2019-04-27T16:59:40Z WARNING: LLFloaterRegionInfo::processEstateOwnerRequest: Mismatched Estate message: setaccess
2019-04-27T16:59:40Z WARNING: LLFloaterRegionInfo::processEstateOwnerRequest: Mismatched Estate message: setaccess (repeated 5 times)
but maybe not related to the segfault.

The segmentation fault happens when I click anywhere in all four lists in the access tab.

I tried to add an avatar with the add-button (in the allowed list), that worked without any issue, no crash and the avatar got listed.

Author:  Henri Beauchamp [ 2019-04-27 17:27:47 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

The warning messages are unrelated and harmless.

I tried to (artificially) add my own avatar in the lists at floater build time, but clicking on the entry does not cause a crash here.

The stack trace you posted also lets me clueless.

Could you please try and run the viewer in debug mode (typing './cool_vl_viewer --debug' in a terminal pointing inside the viewer installation directory) ?
You will of course need to have gdb installed (but all Linux distros provide a package for it).
When the crash happens, please type "bt" in the terminal and post the stack trace you get there.

Author:  Duncan Armundsen [ 2019-04-27 18:05:12 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

gdb complained it can't find debugging symbols, however here it is the output:
Code:
#0  0x00000000016f7627 in LLPanel::~LLPanel() ()
#1  0x0000000001708558 in LLScrollListCtrl::selectFirstItem() ()
#2  0x00000000017075dc in LLScrollListCtrl::setFocus(bool) ()
#3  0x000000000170e811 in LLScrollListCtrl::handleMouseDown(int, int, unsigned int) ()
#4  0x00000000017613be in LLView::childrenHandleMouseDown(int, int, unsigned int) ()
#5  0x0000000001761496 in LLView::handleMouseDown(int, int, unsigned int) ()
#6  0x00000000017613be in LLView::childrenHandleMouseDown(int, int, unsigned int) ()
#7  0x0000000001761496 in LLView::handleMouseDown(int, int, unsigned int) ()
#8  0x000000000172b13f in LLTabContainer::handleMouseDown(int, int, unsigned int) ()
#9  0x00000000017613be in LLView::childrenHandleMouseDown(int, int, unsigned int) ()
#10 0x0000000001761496 in LLView::handleMouseDown(int, int, unsigned int) ()
#11 0x00000000017613be in LLView::childrenHandleMouseDown(int, int, unsigned int) ()
#12 0x0000000001761496 in LLView::handleMouseDown(int, int, unsigned int) ()
#13 0x000000000172b13f in LLTabContainer::handleMouseDown(int, int, unsigned int) ()
#14 0x00000000017613be in LLView::childrenHandleMouseDown(int, int, unsigned int) ()
#15 0x0000000001761496 in LLView::handleMouseDown(int, int, unsigned int) ()
#16 0x00000000017613be in LLView::childrenHandleMouseDown(int, int, unsigned int) ()
#17 0x0000000001761496 in LLView::handleMouseDown(int, int, unsigned int) ()
#18 0x00000000017613be in LLView::childrenHandleMouseDown(int, int, unsigned int) ()
#19 0x0000000001761496 in LLView::handleMouseDown(int, int, unsigned int) ()
#20 0x0000000000f772b4 in LLViewerWindow::handleAnyMouseClick(LLWindow*, LLCoordGL, unsigned int, LLMouseHandler::EClickType, bool) ()
#21 0x0000000000f77c1b in LLViewerWindow::handleMouseDown(LLWindow*, LLCoordGL, unsigned int) ()
#22 0x00000000017a43e8 in LLWindowSDL::gatherInput() ()
#23 0x000000000069bbff in LLAppViewer::frame(LLEventPump&) ()
#24 0x000000000069f8ad in LLAppViewer::mainLoop() ()
#25 0x00000000005ef893 in main ()

Author:  Henri Beauchamp [ 2019-04-27 18:12:58 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

OK, I think I found what the bug comes from. If you can compile the viewer yourself (it's easy under Linux), get the sources for the current release, untar them, and in the linden/indra/newview/llfloaterregioninfo.cpp file, around line 1041, amend the code to read:
Code:
//static
void LLPanelRegionInfo::onChangeChildCtrl(LLUICtrl* ctrl, void* user_data)
{
   LLPanelRegionInfo* self = (LLPanelRegionInfo*)user_data;
   if (self && ctrl)
   {
      self->updateChild(ctrl);
   }
}
Then save the file, and from a terminal pointing to linden/indra/ type ./buildlinux.sh to compile the viewer. It should cure the crash (if it does, I will publish a fixed release tomorrow).

Author:  Duncan Armundsen [ 2019-04-27 18:21:06 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

Thank you for your fast reply :)

I compile anyway the viewer by my own. I preferred to use your binary for reporting the bug.

I recompile and report if it will be fixed.

Author:  Duncan Armundsen [ 2019-04-27 18:54:17 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

Fixed!

It works like it should, no crash anymore, selecting and removing works now.

Thank you :)

Author:  Henri Beauchamp [ 2019-04-27 18:57:05 ]
Post subject:  Re: Region Info Floater: Crash when clicking an avatar name.

Thank you for your report and testing. I will publish a fixed version tomorrow (I found another bug too, that would cause OpenSIM access lists display to get messed up)...

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