-
-
Notifications
You must be signed in to change notification settings - Fork 535
Description
Describe the bug
Crash when destroying webBrowser element got from guiGetBrowser()
To reproduce
local webBrowser = guiGetBrowser(guiCreateBrowser(0, 0, 640, 480, true, false, false)) -- Get the browser element from gui-browser
destroyElement(webBrowser)
Expected behaviour
Screenshots
Version
Additional context
Able to reproduce in Multi Theft Auto v1.5.5-release-12430. Seems like the crash is related to accessing something in memory that no longer exists. Perhaps a destructor not working in right order or missing something...?
Version = 1.5.5-release-12430.0.000
Time = Sat Jul 21 19:31:15 2018
Module = C:\WINDOWS\SYSTEM32\D3D9.DLL
Code = 0xC0000005
Offset = 0x0004D076
EAX=0B6936E8 EBX=0B975620 ECX=00000000 EDX=00000000 ESI=C605253D
EDI=C605259D EBP=0177FB9C ESP=0177FB84 EIP=64F3D076 FLG=00210282
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
https://bugs.mtasa.com/file_download.php?file_id=1419&type=bug
destroyElement shouldn't do anything on browsers that were created by guiCreateBrowser.
Generally, I'm planning on refactoring it to get rid of guiGetBrowser at all (so that all browser function accept gui-browsers as well).