Runtime problem
Disinterpreter opened this issue · 8 comments
Describe the bug
I've got a runtime problem in
amx/amx-deps/src/amx/amxfile.c
Line 167 in 9ccf54e
To reproduce
Build the king.dll and try to start 'amx' resource with it.
It is reproducing with 'debug' and 'release' presets.
Expected behaviour
Must work without error
Screenshots
P.S Sorry I don't have Paint right now.
Version
a develop branch
Is this when trying to load text files? I noticed that my log files no longer load.
Is this when trying to load text files? I noticed that my log files no longer load.
I'm getting an error when trying to make start amx
with latest version of the module. All resources of amx-* is from this repo. I've tried to launch it.
Is this when trying to load text files? I noticed that my log files no longer load.
I'm getting an error when trying to make
start amx
with latest version of the module. All resources of amx-* is from this repo. I've tried to launch it.
Try this resource temporarily (just to confirm), I believe it's crashing when it executes the fopen
native on your script
http://whileago.mov.re/nffiles/images/amx-grandlarc.zip
Is this when trying to load text files? I noticed that my log files no longer load.
I'm getting an error when trying to make
start amx
with latest version of the module. All resources of amx-* is from this repo. I've tried to launch it.Try this resource temporarily (just to confirm), I believe it's crashing when it executes the
fopen
native on your script
http://whileago.mov.re/nffiles/images/amx-grandlarc.zip
It works! Thanks. I think We should update the default resource or edit/make a new issue :)
Check in your script for wrong fread
or fgetchar
usage (namely the File: parameter being 0):
amx/amx-deps/src/amx/amxfile.c
Line 583 in 9ccf54e
iirc in SA-MP the assertion check is removed so it's just an instant crash unlike here.
Check in your script for wrong
fread
orfgetchar
usage (namely the File: parameter being 0):amx/amx-deps/src/amx/amxfile.c
Line 583 in 9ccf54e
iirc in SA-MP the assertion check is removed so it's just an instant crash unlike here.
Lines 22 to 26 in dd50399
As I remember this fork https://github.com/Daniel-Cortez/pawn-3.2-plus can handle this crash. You should take a look it.
Look at ptrarray_* functions
https://github.com/Daniel-Cortez/pawn-3.2-plus/blob/master/source/amx/amxfile.c