Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

guiCreateBrowser Issue #3786

Open
1 task done
Jihedbrahim opened this issue Oct 10, 2024 · 5 comments
Open
1 task done

guiCreateBrowser Issue #3786

Jihedbrahim opened this issue Oct 10, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Jihedbrahim
Copy link

Describe the bug

each time i try to destroy the browser my game crashes and even that happened not only to me.
https://forum.multitheftauto.com/topic/144578-need-help-on-executebrowserjavascript/#comment-1029546

Steps to reproduce

open browser
close the browser
my game crashes

Version

No response

Additional context

No response

Relevant log output

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not security related.
@Jihedbrahim Jihedbrahim added the bug Something isn't working label Oct 10, 2024
@Lpsd
Copy link
Member

Lpsd commented Oct 10, 2024

When submitting an issue, please provide as much detail as possible.

Ideally, you still need to confirm the following:

  • MTA client version.
  • Exact reproduction steps including relevant script(s).

Also, do you receive a crash dialog?

@Lpsd
Copy link
Member

Lpsd commented Oct 10, 2024

From a quick test (custom build of latest master 4e18928) it appears that creating a GUI browser and deleting the browser element (not the GUI element) can cause instability and crash-to-desktop (no dialog). e.g:

browserGUI = guiCreateBrowser(0, 0, width, height, false, false)
browser = guiGetBrowser(browserGUI)

destroyElement(browser)

Instead, you should destroyElement(browserGUI) to avoid crashes. This should be fixed in MTA however.

@Jihedbrahim
Copy link
Author

this is how i done on my script : https://forum.multitheftauto.com/topic/144578-need-help-on-executebrowserjavascript/#comment-1029546
and here i have already reported it : https://forum.multitheftauto.com/topic/144614-mta-crashes/
i get different module each time as i remember i got d3d9.dll and cgui.dll

@Jihedbrahim
Copy link
Author

MTA client version : 1.6.0-9.22746.0

@Lpsd
Copy link
Member

Lpsd commented Oct 11, 2024

Have you tested the suggestion?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants