Comments (6)
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.
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.
Does this function crash in empty script? Or is it specific to OnHousesLoad? What happens when you comment it out?
from samp-plugin-profiler.
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.
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.
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)
- No output from profiler HOT 8
- Profiler only attach to the first filterscript HOT 5
- Profiler Crashes After Function Call HOT 1
- Profiler_Dump() crashed HOT 3
- Make Profiler_Dump log writing optional
- Doesn't Generate Log When we restart the script
- Profiler crashes on server start HOT 2
- Conflicting include guards with profiler.inc from amx_assembly HOT 4
- Error while excecuting AMX file.
- Files inside a subfolder [FS] HOT 5
- server crash HOT 2
- Unloading another file, profiler dumps different file.
- assertion failed on (call_graph_.root() != call_graph_.sentinel()) HOT 1
- Ambiguity with amx_assembly's profiler.inc when including profiler plugin's include HOT 6
- LeaveFunction HOT 1
- tablesorter.com is down HOT 2
- Not all publics are logged
- I have this error, I would like to resolve it. HOT 2
- How to make it works on OMP-Server
- How to use this? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samp-plugin-profiler.