https://redmine.stoutner.com/https://redmine.stoutner.com/favicon.ico?16699090422022-08-20T16:27:54ZStoutner - RedminePrivacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=24182022-08-20T16:27:54ZSoren Stoutnersoren@stoutner.com
<ul><li><strong>Tracker</strong> changed from <i>Feature</i> to <i>Bug</i></li><li><strong>Subject</strong> changed from <i>Search text in View Source</i> to <i>View Source crashes if the source file is large.</i></li><li><strong>Status</strong> changed from <i>New</i> to <i>Feedback</i></li></ul><p>Please file a separate issue for each item. Combining them makes it difficult to tell when each one is resolved.</p>
<p>As providing a search functionality is a duplicate of <a class="external" href="https://redmine.stoutner.com/issues/380">https://redmine.stoutner.com/issues/380</a>, I will address the crashing aspect of your report. Please attach a logcat showing the details of the crash.</p> Privacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=24332022-08-30T03:20:36Zराही अखेराजोत
<ul><li><strong>File</strong> <a href="/attachments/219">Untitled.txt</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/219/Untitled.txt">Untitled.txt</a> added</li></ul> Privacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=24342022-08-30T03:52:05ZSoren Stoutnersoren@stoutner.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>New</i></li><li><strong>Assignee</strong> set to <i>Soren Stoutner</i></li></ul><p>As you can see from the logcat, the problem is that the app is running out of memory. I am a little surprised as I don't think I have every seen Privacy Browser use that much memory (you can check at any time in About > Version). However, as this bug report is about really large files, I suppose that makes sense.</p>
<p>There is a plan in <a class="external" href="https://redmine.stoutner.com/issues/380">https://redmine.stoutner.com/issues/380</a> to render the source inside of a WebView instead of in a TextView. Doing so might solve the problem as WebViews have the ability to only render part of their content in RAM if resources are scarce, whereas I believe TextViews must render their entire contents in RAM.</p>
<p>Do you have a sample URL that can be used for testing to see if the problem is fixed? I will leave this bug report open and look at it more closely if the switch to WebView doesn't solve the problem.</p> Privacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=24382022-09-05T12:09:00Zराही अखेराजोत
<ul><li><strong>File</strong> <a href="/attachments/220">Screenshot_20220905-172758_HttpCanary.jpg</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/220/Screenshot_20220905-172758_HttpCanary.jpg">Screenshot_20220905-172758_HttpCanary.jpg</a> added</li><li><strong>File</strong> <a href="/attachments/221">Screenshot_20220905-173553_Dev Tools.jpg</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/221/Screenshot_20220905-173553_Dev%20Tools.jpg">Screenshot_20220905-173553_Dev Tools.jpg</a> added</li></ul><p>You can look at Http Canary app, it shows a safe length of source in the textview and after that - "The data is too large to display all..."</p>
<p>Sample URL<br /><a class="external" href="https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4">https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-576p.mp4</a></p> Privacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=24402022-09-05T15:43:13ZSoren Stoutnersoren@stoutner.com
<ul></ul><p>I would probably prefer to go the route of finding something that can display all the source, like the proposed WebView solution linked to above, rather than not displaying all the source. Especially because most modern Android devices have plenty of RAM and can display any source I have thrown at them, so truncating the source would be a step backwards in most cases.</p> Privacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=25162022-10-24T12:04:51Zराही अखेराजोत
<ul></ul><blockquote>
<p>render the source inside of a WebView instead of in a TextView</p>
</blockquote>
<p>Opening view source in a new tab will be very useful. Also searching is already implemented for tabs (Find on Page).</p> Privacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=30892023-08-13T19:56:35Zv ...
<ul></ul><p>Seems the two main concerns...</p>
<ol>
<li>"search text in View Source page" </li>
<li>"Privacy Browser crashes while Viewing Source when source file is large"</li>
</ol>
<p>...have been resolved by <a class="issue tracker-2 status-5 priority-4 priority-low2 closed" title="Feature: Switch View Source to use the (undocumented) built-in WebView View Source (Closed)" href="https://redmine.stoutner.com/issues/1023">#1023</a> (<a href="https://www.stoutner.com/privacy-browser-android-3-15-1/" class="external">v3.15.1</a>).</p> Privacy Browser Android - Bug #891: View Source crashes if the source file is large.https://redmine.stoutner.com/issues/891?journal_id=30952023-08-14T14:21:22ZSoren Stoutnersoren@stoutner.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Yes, good catch. This was substantially resolved with the 3.15.1 release.</p>