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

local reference table overflow (max=512) error #95

Closed
jeonhoeun opened this issue Sep 5, 2017 · 6 comments
Closed

local reference table overflow (max=512) error #95

jeonhoeun opened this issue Sep 5, 2017 · 6 comments

Comments

@jeonhoeun
Copy link

when I call duktape.set ("someName" , interface.class, interface instance );

local reference table overflow (max=512) error occured

interface method has 40 methods.

and if I set method count 30, the error is not occured.

so I'm call set two interface.class.

the first interface has 20 methods. and second interfacde has 20 method.

Is it a bug?

@jeonhoeun
Copy link
Author

error position is
DuktapeContext.cpp
void DuktapeContext::set(JNIEnv *env, jstring name, jobject object, jobjectArray methods) {
....
....
for( jsize i=0; i< numMethods; ++i){
...
//here
const JString methodName(env, static_cast(env->CallObjectMethod(method, getName)));
....
}
...

@ghost
Copy link

ghost commented Sep 5, 2017

Yes, this is a bug. Thanks for the report!

@jeonhoeun
Copy link
Author

Execuse me..
I'm making a apps which using duktape android^^;...
Can I know that your team made a plan to fix this bug?

@ghost
Copy link

ghost commented Sep 7, 2017

A fix is in progress: #97. I'll try to get a release out in the next week or two.

ghost pushed a commit that referenced this issue Sep 8, 2017
@ghost
Copy link

ghost commented Sep 8, 2017

Fixed.

@ghost ghost closed this as completed Sep 8, 2017
@jeonhoeun
Copy link
Author

Thank you for it.
Now it works very well~

This issue was closed.
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