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

app with v8 snapshot doesn't work in Mac OS #1316

Closed
dmpost opened this issue Nov 15, 2013 · 3 comments
Closed

app with v8 snapshot doesn't work in Mac OS #1316

dmpost opened this issue Nov 15, 2013 · 3 comments

Comments

@dmpost
Copy link

dmpost commented Nov 15, 2013

Hi, I work on a project based on node-webkit for several months.
Mostly on Windows, just test Mac version from time to time.
(So I had very old NW version on my Mac, but it worked.)

After update to the latest NW the project doesn't work.
It looks like because of snapshot.bin.

Been trying to downgrade the version,
versions 7.2 - 8.0 have a problem, for sure.
(Or maybe I do something wrong?)

Of course I create new snapshot.bin using the nwsnapshot file each time I change the NW version.

@kingFighter
Copy link
Contributor

like #1266, Would you please provide your demo?

@dmpost
Copy link
Author

dmpost commented Nov 18, 2013

Yes, I just found out that on Windows our project doesn't work either (maybe like #1266), with NW 0.8.0.
I cannot send you our project,
we have too many files.

Will try to make a small demo, later, if you need it.

The version 0.6.2 working perfectly for me on both platforms Win and Mac.
Versions 0.7.xx and 0.8.0 doesn't work with different error messages on startup:
(MacOS errors)

node-webkit 0.8.0
Errors

Extension or internal compilation error in v8/i18n at line 1678.
Error installing extension 'v8/i18n'.

node.js:0
process.proto = Object.create(EventEmitter.prototype, {
^
TypeError%3A%20%23%3CObject%3E%20is%20not%20a%20function

node-webkit 0.7.2
Errors:

Stacktrace (dead0000-dead0001) 0x21c38b19 0x3b008c11:
==== JS stack trace =========================================

Security context: 0x21c38a11 #0#
1: DefaultString [native runtime.js:664](this=0x21c2cb4d #1#,a=0x21c38b19 #2#)
2: ToString [native runtime.js:566](this=0x21c2cb4d #1#,a=0x21c38b19 #2#)
3: URIDecode(aka decodeURI) [native uri.js:303](this=0x21c2cb4d #1#,a=0x21c38b19 #2#)
4: arguments adaptor frame: 2->1
5: Instantiate [native apinatives.js:49](this=0x21c2cb4d #1#,a=0x21c38b19 #2#,b=0x21c08091 <undefined)
6: arguments adaptor frame: 1->2

==== Details ================================================

[1]: DefaultString [native runtime.js:664](this=0x21c2cb4d #1#,a=0x21c38b19 #2#) {
// stack-allocated locals
var b = 0x21c08091
var c = 0x21c08091
var d = 0x21c08091
var e = 0x21c08091
// expression stack (top to bottom)
[05] : 0x37b0cec5 <String[8]: toString>
[04] : 0x21c38b19 #2#
--------- s o u r c e c o d e ---------

function DefaultString(a){?var b=a.toString;?if((%_ClassOf(b)==='Function')){?var c=%_CallFunction(a,b);?if(%IsPrimitive(c))return c;?}??var d=a.valueOf;?if((%_ClassOf(d)==='Function')){?var e=%_CallFunction(a,d);?if(%IsPrimitive(e))return e;?}??throw %MakeTypeError('cannot_convert_to_primitive',[]);?}

}

[2]: ToString [native runtime.js:566](this=0x21c2cb4d #1#,a=0x21c38b19 #2#) {
// expression stack (top to bottom)
[02] : 0x21c38b19 #2#
[01] : 0x21c2cb4d #1#
[00] : 0x21c2cb4d #1#
--------- s o u r c e c o d e ---------

function ToString(a){?if((typeof(a)==='string'))return a;?if((typeof(a)==='number'))return %_NumberToString(a);?if((typeof(a)==='boolean'))return a?'true':'false';?if((typeof(a)==='undefined'))return'undefined';?return((a===null))?'null':%ToString(%DefaultString(a));?}

}

[3]: URIDecode(aka decodeURI) [native uri.js:303](this=0x21c2cb4d #1#,a=0x21c38b19 #2#) {
// stack-allocated locals
var b = 0x5570878d <JS Function b (SharedFunctionInfo 0x21c38bf1)>#3#
var d = 0x21c08091
// expression stack (top to bottom)
[03] : 0x21c38b19 #2#
[02] : 0x21c2cb4d #1#
--------- s o u r c e c o d e ---------

function decodeURI(a){?var b=function(c){??if(35<=c&&c<=36)return true;??if(c==38)return true;??if(43<=c&&c<=44)return true;??if(c==47)return true;??if(58<=c&&c<=59)return true;??if(c==61)return true;??if(63<=c&&c<=64)return true;??return false;?};?var d=ToString(a);?return Decode(d,b);?}

}

[4]: arguments adaptor frame: 2->1 {
// actual arguments
[00] : 0x21c38b19 #2#
[01] : 0x21c08091 // not passed to callee
}

[5]: Instantiate [native apinatives.js:49](this=0x21c2cb4d #1#,a=0x21c38b19 #2#,b=0x21c08091 <undefined) {
// stack-allocated locals
var c = 0
var d = 0x21c08091
var g = 0x21c08091
// expression stack (top to bottom)
[05] : 0x21c08091
[04] : 0x21c38b19 #2#
[03] : 0x21c2cb4d #1#
--------- s o u r c e c o d e ---------
function Instantiate(a,b){?if(!%IsTemplate(a))return a;?var c=%GetTemplateField(a,0);?switch(c){?case 0:?return InstantiateFunction(a,b);?case 1:?var d=%GetTemplateField(a,2);???var g=typeof d==='undefined'??{}:new(Instantiate(d))();?ConfigureTemplateInstance(g,a);?g=%ToFastProperties(g);?return g;?default:?throw'Unkno...


}

[6]: arguments adaptor frame: 1->2 {
// actual arguments
[00] : 0x21c38b19 #2#
}

==== Key ============================================

#0# 0x21c38a11: 0x21c38a11
#1# 0x21c2cb4d: 0x21c2cb4d
#2# 0x21c38b19: 0x21c38b19

#3# 0x5570878d: 0x5570878d <JS Function b (SharedFunctionInfo 0x21c38bf1)>

@rogerwang
Copy link
Member

This should be fixed in 0.9.x. If it's not working for you, feel free to reopen it.

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

3 participants