Debug.dump crashes server? #71

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

Comments

Projects
None yet
3 participants
Contributor

alokmenghrajani commented Jul 17, 2012

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)

Contributor

OpaOnWindowsNow commented Jul 17, 2012

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.

Contributor

alokmenghrajani commented Jul 17, 2012

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)

Contributor

BourgerieQuentin commented Sep 27, 2012

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