Skip to content
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

No such method 'cache' for invocant of type 'NQPMu' #6443

Open
p6rt opened this issue Aug 12, 2017 · 7 comments
Open

No such method 'cache' for invocant of type 'NQPMu' #6443

p6rt opened this issue Aug 12, 2017 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Aug 12, 2017

Migrated from rt.perl.org#131888 (status was 'open')

Searchable as RT131888$

@p6rt
Copy link
Author

p6rt commented Aug 12, 2017

From emmiller@gmail.com

I'm using the Rakudo nom and MoarVM master. A call to "await" on an array
of Promises is failing with the error​:

  No such method 'cache' for invocant of type 'NQPMu'
  in any at
/Users/emiller/Code/rakudo/install/share/perl6/runtime/CORE.d.setting.moarvm
line 1

The full error can be seen here​:

  scmorrison/uzu#10 (comment)

The failing call to "await" is here​:

https://github.com/scmorrison/uzu/blob/8d619bb682992baaf07c84262898b29f4e6c3fe6/lib/Uzu/Render.pm6#L401

I'm running a version of that source file with "use v6.d.PREVIEW". Here's
the output from perl6 --version​:

  This is Rakudo version 2017.07-148-g5fcce6732 built on MoarVM version
2017.07-382-g348b4262
  implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Aug 12, 2017

From @bdw

Hi,
Thanks for the report.
Can you try running it with the one of the following two variables set​:

MVM_SPESH_DISABLE=1
MVM_SPESH_INLINE_DISABLE=1
MVM_SPESH_OSR_DISABLE=1
MVM_JIT_DISABLE=1

Last weeks we've seen lots of development in the dynamic optimizer, so
there are undoubtedly a few bugs to shake out.

Regards,
Bart

2017-08-12 14​:46 GMT+02​:00 Evan Miller <perl6-bugs-followup@​perl.org>​:

# New Ticket Created by Evan Miller
# Please include the string​: [perl #​131888]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=131888 >

I'm using the Rakudo nom and MoarVM master. A call to "await" on an array
of Promises is failing with the error​:

    No such method 'cache' for invocant of type 'NQPMu'
      in any  at

/Users/emiller/Code/rakudo/install/share/perl6/runtime/
CORE.d.setting.moarvm
line 1

The full error can be seen here​:

scmorrison/uzu#10 (comment)

The failing call to "await" is here​:

https://github.com/scmorrison/uzu/blob/8d619bb682992baaf07c84262898b2
9f4e6c3fe6/lib/Uzu/Render.pm6#L401

I'm running a version of that source file with "use v6.d.PREVIEW". Here's
the output from perl6 --version​:

This is Rakudo version 2017.07-148-g5fcce6732 built on MoarVM version
2017.07-382-g348b4262
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Aug 12, 2017

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 13, 2017

From emmiller@gmail.com

None of the provided environmental variables reliably fixed the issue. MVM_SPESH_INLINE_DISABLE=1 seemed to provide slightly better results overall, but that may have been due to random chance, and the original error still sometimes appeared.

@p6rt
Copy link
Author

p6rt commented Aug 13, 2017

From @AlexDaniel

I think things would go faster with this one if it was golfed down.

Given the previous warnings saying “Use of uninitialized value $key of type Any in string context.”, the issue is quite possibly in Uzu itself (or maybe even Mustache). The ticket is of course valid because the error should not complain about NQPMu's, and maybe there's some deeper issue with this.

On 2017-08-13 05​:13​:40, emmiller@​gmail.com wrote​:

None of the provided environmental variables reliably fixed the issue.
MVM_SPESH_INLINE_DISABLE=1 seemed to provide slightly better results
overall, but that may have been due to random chance, and the original
error still sometimes appeared.

@p6rt
Copy link
Author

p6rt commented Aug 13, 2017

From emmiller@gmail.com

I think things would go faster with this one if it was golfed down.

I will try to golf it when I have time. In the meantime, I have occasionally seen the same error in place of the memory errors described in #​131889. If that one is resolved then this one may go away too.

@p6rt
Copy link
Author

p6rt commented Aug 20, 2017

From sam@linux.com

Here is a script that demonstrates this issue relatively consistently.

https://gist.github.com/scmorrison/d7506b69e5778381c8374163435ae651

Sometimes it works fine, but mostly not. I have tried several variations of this and any that use the >>.map, hyper, or promises fail.

Sam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant