JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 07.07.2015, 19:21
mweut
Guest
 
Posts: n/a
Default jd2 hangs, after pasting selection from firefox source view

Steps to reproduce. (vista 32 bit)

In JD2: Do NOT monitor the clipboard. (If you do, it will hang after step 4)

1) Open a page which has links to known filehosters in firefox
2) select some text, including a link to filehoster (may or may not contain additional other links)
3) firefox context menu "View selection source"

A window should open with a highlighted html source, it should contain the link. The link and some of the surrounding html should be selected
4) context menu (in source viewer,mouse over selection) "Copy"

5) In JD2, open the submenu of "Add new links", choose "Add and analyse from clipboard"

The dialog opens, and it will just keep parsing, but nothing ever happens

Same if you just click the "Add new links" button.

6) Paste the clipboard to notepad, select the pasted text, and paste this text: Now JD2 will work correctly.
Reply With Quote
  #2  
Old 08.07.2015, 09:42
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Can we do Teamviewer? This works perfectly for me (firefox, chrome..)
Please contact me via support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 08.07.2015, 19:29
mweut
Guest
 
Posts: n/a
Default

I dont like teamviewer (or any means of providing access to my pc).

But I will look further into this. Maybe it is something else on my PC, that interferes with the clipboard.

I tested to open the "Analyse and add links" while the clipboard was empty, then copy from firefox "Dom source of selection" window, and then paste via the contextmenu. The contextmenu never closed. JD2 hang immediately.

I thought maybe it is something with the clipboard being locked. But if I copy other parts from the "Dom source of selection" window, then I can paste them.

Except, it pastes something different.
- I open the "Analyse and add links" dialog (while clipboard is empty)
- I select (while on this forums "reply to thread" page, a bit of text. e.g. "Additional Options" (from below the textarea where I type this reply)
- I Open the popup menu, "view selection source"
- I change the selected text in the "Dom source of selection" window. SO just "Additional" is selected. And I copy it (using the context menu)
- Now if I paste into JD2 "Analyse and add links" window, I get the text "http://Version:0.9"
- But if I paste into a text editor, I paste the word "Additional"

It appears that firefox adds several formats to the clipboard, and JD2 chooses one that has added meta info. (and then filters it down to the links)

Repeating the steps above, In the firefox source view I have:
Code:
<td class="tcat">
			<a style="float:right" href="#top" onclick="return toggle_collapse('newpost_options')"><img id="collapseimg_newpost_options" src="images/kirsch/buttons/collapse_tcat.gif" alt="" border="0"></a>
			Additional Options
		</td>
I select the word "images" (from the src= tag)

Pasting into JD2, I get
Code:
https://board.jdownloader.org/images/kirsch/buttons/collapse_tcat.gif"%20class="attribute-value"
I was not able to get the hang with content from this site, so I guess that when I tested before some of the attribute info may have contained bad links.

SO I guess that the content I tried to paste had some links that caused the problem. I will try to find and isolate them. It is not just that hey do not resolve (I waited 15 minutes, and it still hang). It is also that it causes 100% load one one core of the CPU (waiting for a url to resolve should not do that)


------------------------------
BTW, it seems (from the time needed) JD2 immediately checks links online when i paste? The old JD did that only when Y pressed OK/Continue.
I prefer if they do not get checked on paste, because once I have the links (filtered out of the overall text), I might want to go through that list and remove some.
Reply With Quote
  #4  
Old 09.07.2015, 10:07
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Fixed with next core update
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 09.07.2015, 10:10
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,554
Default

Cause: SourceView pasted different than expected content into x-moz-url-priv flavor. This caused high cpu usage in pattern matching
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:18.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.