Cuberite Forum
SphinxOres is hitting a VERIFY() - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: SphinxOres is hitting a VERIFY() (/thread-1793.html)



SphinxOres is hitting a VERIFY() - sphinxc0re - 02-17-2015

Moin!

I have a problem that I would like to address now. It's been a while that I tried to create an Anti-XRay plugin for MCServer. It worked for a while and created some awesome XRay-landscapesBig Grin

But after some time, when I was working to implement the function that would make it possible for players to just mine as normal, my plugin hit a VERIFY after some time (20 seconds) playing on the server.

Since the LightingThread has it's own instance and the whole generation process is multi-threaded, it hits the VERIFY even before the server is able to start the generation.
Here is a screeeeeenshot:
[Image: kvs3QHJ.png]

I would appreciate it soo much if we somehow were able to fix this because this would be a huge step forward in popularity of MCServer.
The source of my plugin is obviously on Github: https://github.com/SphinxC0re/SphinxOres
If you have any suggestions for my code, feel free to submit a PR.

Thanks in advance


RE: SphinxOres is hitting a VERIFY() - sphinxc0re - 02-26-2015

Anyone? D:


RE: SphinxOres is hitting a VERIFY() - NiLSPACE - 02-26-2015

I can't see a reason why it would crash. Maybe if you let it crash in debug mode that it will report a better error message?


RE: SphinxOres is hitting a VERIFY() - sphinxc0re - 02-28-2015

[Image: 6tlCBlf.png]
Here. I don't think this will help though. But I hope so Smile


RE: SphinxOres is hitting a VERIFY() - NiLSPACE - 04-16-2015

Looking back at this, I think the changeblock packet might be too big? Is that a possibility? The NetworkSingleton is destroyed, but it's still sending the packet or something? Or is that crash only a result of the error in cWorld::GetChunkData?


RE: SphinxOres is hitting a VERIFY() - xoft - 04-16-2015

That's only a secondary damage. The first verification fail causes the server to abort, which calls the cNetworkSingleton destructor without deinitializing first, so it asserts for the second time.
The real culprit is somewhere in the lighting code, it requests chunk data for a nonexistent chunk, although one should be present, because it's all running inside a cChunkStay.


RE: SphinxOres is hitting a VERIFY() - sphinxc0re - 04-17-2015

My question is if the problem is on the plugins' side or on the server side?


RE: SphinxOres is hitting a VERIFY() - sphinxc0re - 10-15-2015

I'd appreciate if someone would tell me how to fix this. I think it crashes because I'm requesting a chunk regeneration inside a HOOK_CHUNK_GENERATED

The problem occurs since the servers lightning is done multithreaded


RE: SphinxOres is hitting a VERIFY() - NiLSPACE - 10-15-2015

I actually don't think that this is a problem in your plugin, but some kind of weird thing in the server.


RE: SphinxOres is hitting a VERIFY() - sphinxc0re - 10-15-2015

Ah, okay. That's not really a good thing but it's a startBig Grin