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

Debug.dump crashes server? #71

Closed
alokmenghrajani opened this issue Jul 17, 2012 · 3 comments
Closed

Debug.dump crashes server? #71

alokmenghrajani opened this issue Jul 17, 2012 · 3 comments

Comments

@alokmenghrajani
Copy link
Contributor

The following piece of code results in a crash when the link is clicked:

server function my_log(obj) {
Debug.warning(Debug.dump(obj))
}

function resource foo(x) {
Resource.styled_page("hi", [], crash me)
}

Server.start(
Server.http,
[
{dispatch: foo}
]
)

[Opa] Debug { size: 6, key_code: { none: { size: 0, }, }, key_modifiers: { nil: { size: 0, }, }, kind: { click: { size: 0, }, }, mouse_button: { size: 1, some: { left: { size: 0, }, }, }, mouse_position_on_page: { size: 2, x_px: 49, y_px: 24, }, value_change: { none: { size: 0, }, }, }
<no position available (cons.untyped)>: Match failure 4348473

/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/qmlCpsClientLib.js:26
error = true;global.console.log("Uncaught exception : " + global.e.toString()
^
TypeError: Cannot call method 'toString' of undefined
at global.loop_schedule (/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/qmlCpsClientLib.js:26:222)
at global.launch_schedule (/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/qmlCpsClientLib.js:27:78)
at global.push (/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/qmlCpsClientLib.js:22:128)
at global.return
(/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/qmlCpsClientLib.js:28:263)
at Object. (/opt/mlstate/lib/opa/stdlib/stdlib.qmljs/stdlib.core.rpc.core.opx/a.js:1736:79)
at Object.global.Continuation.execute1 (/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/qmlCpsClientLib.js:17:208)
at Object.global.Barrier.release (/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/qmlCpsClientLib.js:5:405)
at IncomingMessage.global.BslNet_Requestdef_get_request_message_body (/Users/amenghra/github.com/alokmenghrajani/prototype_forum/prout_depends/bslNet.nodejs:84:335)
at IncomingMessage.EventEmitter.emit (events.js:85:17)
at IncomingMessage._emitEnd (http.js:366:10)

@OpaOnWindowsNow
Copy link
Contributor

The crash is solved on the current version.
You still have a "global.e.toString" in qmlCpsClientLib.js ? That's old code ?
Which version are you using ?

However the Match failure is intriguing.

@alokmenghrajani
Copy link
Contributor Author

I'm seeing this with 1.0.4

Sent from my iPhone

On Jul 17, 2012, at 1:29 PM, "Rudy Sicard" reply@reply.github.com wrote:

The crash is solved on the current version.
You still have a "global.e.toString" in qmlCpsClientLib.js ? That's old code ?
Which version are you using ?

However the Match failure is intriguing.


Reply to this email directly or view it on GitHub:
#71 (comment)

@BourgerieQuentin
Copy link
Contributor

The match failure was fixed since the bypass projections are fixed.

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