Giter Club home page Giter Club logo

Comments (6)

Zeex avatar Zeex commented on June 15, 2024

From what I see in the crash log it is not related to profiler at all - the server crashed inside format(), perhaps due to wrong format specifier. Try running crashdetect to be sure.

from samp-plugin-profiler.

AndreT avatar AndreT commented on June 15, 2024

Thanks for the feedback, I ran it with crashdetect enabled.

[debug] Backtrace (most recent call first): [debug] #0 native format() from samp-server.exe [debug] #1 Debug(DEBUG_TYPE=3, fstring[]=@0x00028618 "OnHousesLoad(%d, %d, %d)") at SFSE_functions.pwn:3346 [debug] #2 public OnHousesLoad(query_ex[]=@0x00000003 "", index=165400, extraid=619200, connectionHandle=619204) at SFSE_houses.pwn:79

This is the result of Y_Less' combination of yours and his format code using #emit. Nothing there has changed, and using the code without the profiler plugin works perfectly.

But I could get some cool information by disabling my custom debug function.

from samp-plugin-profiler.

Zeex avatar Zeex commented on June 15, 2024

Does this function crash in empty script? Or is it specific to OnHousesLoad? What happens when you comment it out?

from samp-plugin-profiler.

AndreT avatar AndreT commented on June 15, 2024

I have edited the bare gamemode a little to replicate the crash. Here it is: http://pastebin.com/ML88WzB6

It happens when a string parameter is passed to the Debug function! I hope you can work out the problem :)

from samp-plugin-profiler.

Zeex avatar Zeex commented on June 15, 2024

Change

        #emit LOAD.I
        #emit PUSH.pri
        arg_end -= BYTES_PER_CELL;
        #emit LOAD.S.pri      arg_end

to

        #emit LREF.S.pri arg_end
        #emit PUSH.pri
        arg_end -= BYTES_PER_CELL;

in the do-while loop.

from samp-plugin-profiler.

AndreT avatar AndreT commented on June 15, 2024

Thank you, this made it work perfectly! If you have the time, could you explain the difference to me a little. And does this mean that anyone using Y_Less' code would need to change that?

Also, another small question: Since my server crashes when being gmx-ed on linux (CentOS distro), I saw this in my error log:

    [12:00:44] [debug] Run time error 4: "Array index out of bounds"
    [12:00:44] [debug]   Accessing element at negative index -1
    [12:00:44] [debug] Backtrace (most recent call first):
    [12:00:44] [debug] #0  public Streamer_OnPlayerDisconnect(playerid=4, reason=1) at SFSE.pwn:822
    [12:00:44] [debug] #1  native CallLocalFunction() from samp-server.exe
    [12:00:44] [debug] #2  public Streamer_OnPlayerDisconnect(playerid=4, reason=1) at SFSE.pwn:822

I had a look around in Streamer_OnPlayerDisconnect and a few other sections, but cannot find anything related. Should I contact the plugin author about the issue or is there something simpler on my hands?

from samp-plugin-profiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.