ccd0 / 4chan-x

Adds various features to anonymous imageboards.
https://www.4chan-x.net/
Other
981 stars 132 forks source link

"Menu" crashed on node Post No.82125131 (g). #3069

Open ccd0 opened 3 years ago

ccd0 commented 3 years ago

Screenshot: https://files.catbox.moe/h2aay3.png Seems to be a duplicate of a number of other issues.

On certain threads, 4chanX stops processing posts in the middle of the thread for seemingly no reason.

New posts added to the thread by the auto updater aren't affected, but refreshing will cause them to lose their formatting.

When trying to hover over a quote link, the preview never loads, and I can assume that it caused the node crash when it timed out, as the crash occured while I was scrolling through the thread.

Resetting 4chanX settings doesn't help the issue. The issue is not present on 4chan's native extension. Using Iridium browser 2020.11 with uBlock Origin and uMatrix set to whitelist 4chan and google domains. (And a Random User Agent extension, as well as Namesync.)

Script: 4chan X ccd0 v1.14.20.4 crx URL: https://boards.4channel.org/g/thread/82119083#p82119603 User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36

TypeError: Cannot read property 'classList' of null at Function.$.rmClass (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:5139:10) at _Class.node (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:17722:11) at Callbacks.execute (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:5867:17) at Object.callbackNodes (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:27880:12) at Fetcher.insert (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:6406:12) at new Fetcher (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:6371:14) at HTMLAnchorElement.mouseover (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:26555:7)

<div class="postContainer replyContainer" id="pc82125131_14" data-full-i-d="g.82125131" data-clone="0"><div class="sideArrows" id="sa82125131_14">&gt;&gt;</div><div id="p82125131_14" class="post reply"><div class="postInfoM mobile" id="pim82125131_14"> <span class="nameBlock"><span class="name">Anonymous</span><br></span><span class="dateTime postNum" data-utc="1623978937">06/17/21(Thu)21:15:37 <a href="#p82125131" title="Link to this post">No.</a><a href="javascript:quote('82125131');" title="Reply to this post">82125131</a></span></div><div class="postInfo desktop" id="pi82125131_14"><input type="checkbox" name="82125131" value="delete"> <span class="nameBlock"><span class="name">Anonymous</span> </span> <span class="dateTime" data-utc="1623978937">06/17/21(Thu)21:15:37</span> <span class="postNum desktop"><a href="#p82125131" title="Link to this post">No.</a><a href="javascript:quote('82125131');" title="Reply to this post">82125131</a></span></div><blockquote class="postMessage" id="m82125131_14"><a href="#p82119775" class="quotelink">&gt;&gt;82119775</a><br>You faggots literally call everything you dislike capitalism. I've even seen some tiktok zoomer calls the USSR under stalin right wing</blockquote></div></div>

shadow7483147 commented 3 years ago

Confirming the issue occurs after the 25th post in a thread... huh.

saxamaphone69 commented 1 year ago

Keeping this one as the main issue instead of 100 other ones, as it was really the only one to provide significant steps to reproduce. Also, not going to reference them all here, but will mark as duplicate.

Doesn't seem to be browser-specific or userscript manager-specific.

Despite #1235 and https://github.com/ccd0/4chan-x/commit/35f44c0941d570f1418550f9554e270e3555bcd9 , this error potentially still occurs. Though, ever since gitreports died, nobody else has reported this issue.

Error is either:

TypeError: Cannot read property 'classList' of null
at Function.$.rmClass (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:5139:10)
at _Class.node (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:17722:11)
at Callbacks.execute (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:5867:17)
at Object.callbackNodes (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:27880:12)
at Fetcher.insert (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:6406:12)
at new Fetcher (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:6371:14)
at HTMLAnchorElement.mouseover (chrome-extension://ohnjgmpcibpbafdlkimncjhflgedgpam/script.js:26555:7)
TypeError: can't access property "classList", el is null
tms_82d394e4_2cd1_4a8c_bb0c_1b504da0aab3/</$</$.rmClass@moz-extension://9d595f12-4078-4c5b-9ce9-c095b84297df/userscripts/4chan%20X.user.js?id=82d394e4-2cd1-4a8c-bb0c-1b504da0aab3:5114:7
node@moz-extension://9d595f12-4078-4c5b-9ce9-c095b84297df/userscripts/4chan%20X.user.js?id=82d394e4-2cd1-4a8c-bb0c-1b504da0aab3:17854:11
tms_82d394e4_2cd1_4a8c_bb0c_1b504da0aab3/</Callbacks</Callbacks</Callbacks.prototype.execute@moz-extension://9d595f12-4078-4c5b-9ce9-c095b84297df/userscripts/4chan%20X.user.js?id=82d394e4-2cd1-4a8c-bb0c-1b504da0aab3:6013:17
callbackNodes@moz-extension://9d595f12-4078-4c5b-9ce9-c095b84297df/userscripts/4chan%20X.user.js?id=82d394e4-2cd1-4a8c-bb0c-1b504da0aab3:28012:12
tms_82d394e4_2cd1_4a8c_bb0c_1b504da0aab3/</Fetcher</Fetcher</Fetcher.prototype.insert@moz-extension://9d595f12-4078-4c5b-9ce9-c095b84297df/userscripts/4chan%20X.user.js?id=82d394e4-2cd1-4a8c-bb0c-1b504da0aab3:6552:12
Fetcher@moz-extension://9d595f12-4078-4c5b-9ce9-c095b84297df/userscripts/4chan%20X.user.js?id=82d394e4-2cd1-4a8c-bb0c-1b504da0aab3:6517:14
mouseover@moz-extension://9d595f12-4078-4c5b-9ce9-c095b84297df/userscripts/4chan%20X.user.js?id=82d394e4-2cd1-4a8c-bb0c-1b504da0aab3:26687:7
TypeError: el is null
userScript/</$</$.rmClass@user-script:4chan-X/4chan%20X:5114:7
node@user-script:4chan-X/4chan%20X:17876:11
userScript/</Callbacks</Callbacks</Callbacks.prototype.execute@user-script:4chan-X/4chan%20X:6021:17
callbackNodes@user-script:4chan-X/4chan%20X:28034:12
userScript/</Fetcher</Fetcher</Fetcher.prototype.insert@user-script:4chan-X/4chan%20X:6560:12
Fetcher@user-script:4chan-X/4chan%20X:6525:14
add@user-script:4chan-X/4chan%20X:26561:7
toggle@user-script:4chan-X/4chan%20X:26539:21