clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

Weird Bug "Call to a member function getParent() on null"

Open mstaack opened this issue 3 years ago • 9 comments

Don't know how to really reproduce this, but it started to appear the last days:

image

laravel/framework                        v7.24.0
laravel/nova                             v3.8.2
itsgoingd/clockwork                      v4.1.6

clearing cache / deleting storage files does not help :/

any hints/ideas?

mstaack avatar Aug 10 '20 08:08 mstaack

hey, will check this out soon, in the meantime you can turn off the duplicate queries detection:

CLOCKWORK_DATABASE_DETECT_DUPLICATE_QUERIES=false

itsgoingd avatar Aug 10 '20 10:08 itsgoingd

thanks this helps for now 👍

mstaack avatar Aug 10 '20 17:08 mstaack

i feel it has something todo with nova

mstaack avatar Aug 10 '20 17:08 mstaack

Not using Nova and I am getting it from time to time.

sinnbeck avatar Aug 20 '20 12:08 sinnbeck

Released Clockwork 4.1.7 with an additional check to avoid the crash. I would still like to know why the stack frame object would be null, but I guess that will remain a mystery.

itsgoingd avatar Aug 25 '20 20:08 itsgoingd

I managed to get my debugger to catch it. In my case it seems to be triggered by spaties permissions package.

http://i.imgur.com/3wkFDaZ.png http://i.imgur.com/eCpZuPe.png

sinnbeck avatar Aug 26 '20 10:08 sinnbeck

Ah, it's a static call so there is no object instance. Very useful, will investigate further, thanks.

itsgoingd avatar Aug 26 '20 10:08 itsgoingd

Disabling clockwork, refreshing, and enabling it again solves the issue (temporarily)

sinnbeck avatar Aug 26 '20 11:08 sinnbeck

great so see some investigations & improvements 🚀

mstaack avatar Aug 28 '20 14:08 mstaack