-
Notifications
You must be signed in to change notification settings - Fork 13
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
Getting an error when deleting an object immediately after creating it. #109
Comments
what is the code that leads to this error?
if you replace delete with some other function from the object. do you
get the same?
the error effectively claims that a call is made on 0->delete()
which means, the object reference is broken, and returns 0, and
therefore any access to the object should fail.
try the following:
wait a few seconds. does the problem still occur?
restart the client (Reconnect). does that work?
if the object is permanently broken, does restarting the server fix it?
|
I am getting the error for other call also. I tried query_attribute instead of delete. The problem persists. The code is: The error does not occur 100% of the times I run the code. Sometimes restarting the server or the client fixes the error but it comes back on repeated execution. |
maybe there is a problem with the trail.
try instead saving a reference to the object, and access it directly, or
access it by path.
trail should only be used to test the trail function.
also, trail only holds rooms. no other objects.
|
object room = OBJ("/TestRoom"); I changed the code to this and removed all references to get _trail, however the error persists. |
can you reploduce the problem with any other class? if not, then that
suggests that the Calendar class has an issue. it is not actively used,
so if that's the case i'd leave it as a failing test.
|
No the problem is not only for the calendar class. It is occurring quite randomly. I am creating 4 objects Document, Calendar, Date and Container and the error occurs for any one of the class and that also not always so reproducing the problem is difficult. |
@eMBee This problem is occurring not only with the delete function but also other functions like get_class(). In fact I changed the code so as to make sure that the object exists. |
this is actually what i expected. somehow the reference to the object
disappears.
does it come back if you restart the client?
if not, does it come back if you restart the server?
|
Yes this behavior is quite random sometimes it comes back on restarting the client and sometimes on restarting the server. |
usr/local/lib/steam/tmp/net/coal/protocoll.pike:174: /kernel/securesocket()->COAL_command(42,Server Object,({}))
usr/local/lib/steam/tmp/net/coal.pike:175: /kernel/securesocket()->receive_message("")
usr/local/lib/steam/tmp/kernel/securesocket.pike:30: /kernel/securesocket()->receive_message("�\0\0\0#\0\0\0_\1\0\0\0\0\0\0\0\0\5\0\2\3\0\0\0\6delete\5\0\0")
usr/local/lib/steam/tmp/kernel/coalsocket.pike:68: /kernel/securesocket()->f_read_callback(0,"�\0\0\0#\0\0\0_\1\0\0\0\0\0\0\0\0\5\0\2\3\0\0\0\6delete\5\0\0")
-:1: Pike.Backend(0)->`()(3600.0)
usr/local/pike/7.8.866/lib/master.pike:3908: master()->_main(({"steam","server/server.pike","--pid=/var/run/steam.pid","--quiet","--auto-restart"}))
delete:Bad line array
1
Function: delete not found inside (0)
192
This error is occurring in the create test case sometimes but not always. The object is being deleted immediately after creation so this error shouldn't be there.
The text was updated successfully, but these errors were encountered: