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

Remove support for multiple URLs #63

Closed
norm opened this issue Feb 7, 2014 · 6 comments
Closed

Remove support for multiple URLs #63

norm opened this issue Feb 7, 2014 · 6 comments

Comments

@norm
Copy link
Contributor

norm commented Feb 7, 2014

When capturing multiple URLs from one instance of webkit2png, the following error occurs:

Python[10560:1107] *** WebKit discarded an uncaught exception in the webView:didFinishLoadForFrame: delegate: <NSUnknownKeyException> [<DOMAbstractView 0x7ff0650d3b30> valueForUndefinedKey:]: this class is not key value coding-compliant for the key webkit2png.

Have tracked it down to the new Webkit2PngScriptBridge. With the code for that commented out, it works fine.

@norm
Copy link
Contributor Author

norm commented Feb 7, 2014

(cc @spicyj as the original author of that)

@paulhammond
Copy link
Owner

I'm actually considering removing the ability to capture multiple urls in one webkit2png instance - it makes the code a lot messier, I'm fairly sure it's the source of a lot of bugs like this, it makes error handling difficult for calling scripts (because the entire process crashes when one url breaks) and it's not much easier than just using a bash for loop or similar.

On the other hand, it is slightly slower (although I haven't benchmarked this).

Thoughts?

@norm
Copy link
Contributor Author

norm commented Feb 11, 2014

I always used to capture one at a time, so this wouldn't upset me.

norm added a commit to alphagov/webkit2png that referenced this issue Feb 18, 2014
As discussed in paulhammond#63,
webkit2png might be better capturing just one URL at a time.
@RSully
Copy link

RSully commented Mar 5, 2014

I'd say we should strip out multiple URL support. The complexity isn't worth the limited functionality. It would be easy enough to add another script that takes a bunch of URLs and any webkit2png options and launches n processes, if someone really wanted out-of-the-box functionality.

@bschneider45701
Copy link

@norm: Could you please provide more detail on what you commented? I have a need to process multiple URLs without the added slowdown of re-initializing WebKit. Thanks.

@paulhammond paulhammond added the v2 label Mar 26, 2020
@paulhammond paulhammond changed the title Error when capturing multiple URLs Remove support for multiple URLs Mar 26, 2020
@paulhammond paulhammond added this to the v2.0 milestone Mar 26, 2020
@paulhammond paulhammond removed the v2 label Mar 26, 2020
@paulhammond
Copy link
Owner

Closing in favor of #109

@paulhammond paulhammond removed this from the v2.0 milestone Mar 26, 2020
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

4 participants