strict.lua - How do find out where the error occurred? - lua

I am using strict.lua in a cocos2d-x project under Xcode. When I get an error it doesn't tell me where the error occurred. I just get an error message like:
cocos2d: LUA ERROR: attempt to call a number value
PANIC: unprotected error in call to Lua API (...<folder>/strict.lua:30: attempt to index a nil value)
How can I get strict.lua to tell me where the error occurred or give me a call stack?
(Note putting print(debug.traceback()) in strict.lua doesn't work)

Related

Error thrown Call to undefined function simple_fields_get_post_group_values()

https://marthawilliamson.com/video-archives/
https://marthawilliamson.com/remembering-valerie-harper/
I'm trying to access specific parts of the following website, but I keep getting this error message instead.
Error thrown
Call to undefined function simple_fields_get_post_group_values()
Does anyone know why I am getting this, and if this can be fixed? Thank you.

Trying to use Linkage () function, but I keep getting an error message

I get this error when trying to carry out segmentationenter image description here

Passing all data properly and still highcharts throwing error

ERROR TypeError: Cannot read property 'x' of undefined
does anyone know y this error keeps appearing. Initially graph was working fine but suddenly it started showing this error and below that error i am seeing this error:
"ERROR TypeError: Array.prototype.find called on null or undefined"
Please let me know how to resolve this issue, Thanks in advance
Please find image attached
Found solution. Array which is used for series has an undefined value in it then error appears. pass null or 0 instead of undefined and graphs works properly.

What is "I/O error 1785"?

I am getting "I/O error "1785" in my program in
Vcl.FileCtrl.TDirectoryListBox.SetDirectory ->
Vcl.FileCtrl.ProcessPath
I cannot find a description in Delphi's Help for this.
From the help file:
All errors other than I/O errors and fatal errors are reported with the error codes returned by the operating system.
As all of the listed I/O errors are in the 100..106 range, and the fatal errors are all in 200..232, it stands to reason that this is an OS error, and SysErrorMessage(1785) would give you a description of the error:
The disk media is not recognized. It may not be formatted.
The actual error is ERROR_UNRECOGNIZED_MEDIA (thanks to #JoachimIsaksson for looking it up so I didn't have to do so).

Why on Xcode console I have to print object twice to print it correctly?

Suppose that I set up the breakpoint at some point of my code. I run the compiler, and app stop exactly there where i set up the breakpoint. Now I need to print object in console using, for instance:
po messageIdentifier
But instead of correct object i get a lot of errors:
error: Error in auto-import:
failed to get module 'Module-Name' from AST context:
...
A fatal parse error has occurred.
LLDB may become unstable; please restart your debug session as soon as possible.
but when i try to tap po messageIdentifier second time, the I get correct answer:
"44540ef4-7343-4cd6-89a2-a4ea97048d6f"
Why do I have to do this twice?

Resources