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

SCRIPT ERROR: native 000000000b856a90: exception at address 0x7ff6d6e9af64 (DrawLine_2d) on b3407 #3126

Open
ImBaphomettt opened this issue Feb 4, 2025 · 1 comment · May be fixed by #3127
Labels
bug crash ScRT: Lua Issues/PRs related to the Lua scripting runtime triage Needs a preliminary assessment to determine the urgency and required action

Comments

@ImBaphomettt
Copy link

ImBaphomettt commented Feb 4, 2025

What happened?

Hello,

Using the following DrawLine_2d native on gamebuild b3407 results in an execution exception. Here is a code snippet to reproduce the issue.

Note that this error does not occur on gamebuild 3258.

Citizen.CreateThread(function()
    while true do
        local centerX, centerY = 0.5, 0.5
        local halfLength = 0.05
        local lineWidth = 0.005
        local red, green, blue, alpha = 255, 0, 0, 255
        DrawLine_2d(
            centerX - halfLength, centerY, 
            centerX + halfLength, centerY, 
            lineWidth,                    
            red, green, blue, alpha     
        )
        Citizen.Wait(0)
    end
end)

Image

Expected result

Draw line in the screen.

Reproduction steps

  1. Start the server using gamebuild 3407.
  2. Execute the code above.
  3. An exception occurs.

Importancy

Crash

Area(s)

FiveM, ScRT: Lua

Specific version(s)

b3407

Additional information

No response

@ImBaphomettt ImBaphomettt added bug triage Needs a preliminary assessment to determine the urgency and required action labels Feb 4, 2025
@github-actions github-actions bot added crash ScRT: Lua Issues/PRs related to the Lua scripting runtime labels Feb 4, 2025
@draobrehtom
Copy link

draobrehtom commented Feb 4, 2025

Same here, test on b3407, FXServer-master SERVER v1.0.0.12255 win32. Doesn't occur on b3095 and b2944.

@DaniGP17 DaniGP17 linked a pull request Feb 4, 2025 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug crash ScRT: Lua Issues/PRs related to the Lua scripting runtime triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants