It still baffles me that those crashes does still exist.
The issue with onLoadStarted triggered twice is definitely a hint,
though as of now I can't think of any scenarios where it shall occur
(beside redirection, which I don't think you have).
Jörn, any chance to build in debug mode and post the stack trace?
Thanks!
Regards,
--
Ariya Hidayat, http://ariya.ofilabs.com
It's the standard C++ debug mode (not JavaScript). Since we use qmake,
the easiest way is:
qmake CONFIG+=DEBUG
make
Then you should be able to launch the executable with gdb and capture
the stack trace when it crashes.
Thank you!
--
Ariya Hidayat, Passionate Technologist
http://ariya.ofilabs.com
I tried to get the stack trace but I do not get far enough to
reproduce the crash. When calling your script from
https://gist.github.com/75dd5affcd1e7f106517 once without and one with
parameter, the script just exits with error messages:
aportale$ phantomjs test.js
load started
Unable to access network: fail
aportale$ phantomjs test.js http://www.google.com
load started
ReferenceError: Can't find variable: QUnit
Do you have a self-contained script to reproduce the crash?
Could you see if any resource is loaded at all? Check the netsniff
example to see how to dump some network traffic info.
However, we need some material to work with. Ideally, the script that
can reproduce the problem. Preferably of course the reduced test case
which consistently shows the problem.
Another long shots:
- Try the 1.3 branch. A lot of work has been put to prevent many types
of crashes.
- Compile statically. There is deploy/build-mac.sh for Mac OS X and I
still need to adapt it to work on Linux
(http://code.google.com/p/phantomjs/issues/detail?id=197). Help is
welcomed!
- Look at netlog.js and try to live-dump the network request/response.
This should give an idea of the progress of the loading
Looking forward to seeing this problem resolved.
Thanks!
Best regards,