<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Redump Forum — CDArchive - Improved support for ring based protections]]></title>
	<link rel="self" href="http://forum.redump.org/feed/atom/topic/61089/" />
	<updated>2025-05-26T21:49:57Z</updated>
	<generator version="1.4.4">PunBB</generator>
	<id>http://forum.redump.org/topic/61089/cdarchive-improved-support-for-ring-based-protections/</id>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/127235/#p127235" />
			<content type="html"><![CDATA[<p>Ok, I&#039;m glad it worked.</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-05-26T21:49:57Z</updated>
			<id>http://forum.redump.org/post/127235/#p127235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/127232/#p127232" />
			<content type="html"><![CDATA[<p>This seems to have worked. The sectors are saved with the correct ECC Q data. I&#039;m not having any issues with MSF section of the header that you mentioned.</p><p>I&#039;m not sure what happened when dumping the disc initially, but apparently the drive told redumper that the C2 error was corrected despite the ECC Q parity data being corrupted.</p>]]></content>
			<author>
				<name><![CDATA[StriderSkorpion]]></name>
				<uri>http://forum.redump.org/user/63784/</uri>
			</author>
			<updated>2025-05-26T20:17:49Z</updated>
			<id>http://forum.redump.org/post/127232/#p127232</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/127212/#p127212" />
			<content type="html"><![CDATA[<p>Added new command line switch:<br />extrforceecc: 0/1 - this option forces correction of ECC even when EDC is correct. Old version skipped ECC correction when EDC was ok. Default value is 0. </p><p>But... after looking at: <a href="http://forum.redump.org/topic/62503/possible-bug-or-quirk-with-redumper/">http://forum.redump.org/topic/62503/pos … -redumper/</a> @ sector 25701.bad things get complicated. The bad sector internally gets corrected but it zeroes out M/S/F/Track bytes. It looks like ECC is deliberately corrupted. After all even with extrforceecc = 1, repaired sector is not merged into the image.</p><p>So, this version does what you want but not for this specific sector...<br />What do you think about all of this?</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-05-26T19:02:34Z</updated>
			<id>http://forum.redump.org/post/127212/#p127212</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/127016/#p127016" />
			<content type="html"><![CDATA[<p>I have been using this version of CDArchive to get some sectors from problematic discs and noticed that it won&#039;t save the sector if the data section matches, but the ECC Q doesn&#039;t. The problem is in the .bin file, as verified by scanning with CDMage. Would it be possible for CDArchive to (force) save the sector in such cases?</p>]]></content>
			<author>
				<name><![CDATA[StriderSkorpion]]></name>
				<uri>http://forum.redump.org/user/63784/</uri>
			</author>
			<updated>2025-05-24T13:57:52Z</updated>
			<id>http://forum.redump.org/post/127016/#p127016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125356/#p125356" />
			<content type="html"><![CDATA[<p>HandleC2:<br />ERROR_ACCESS_DENIED - error in ECC logic (too many errors)<br />ERROR_INVALID_PARAMETER - error in ECC logic (parameters checking for Python function)<br />ERROR_INVALID_DATA - error in ECC logic (Python function returned not enough data)</p><p>The last two error codes shouldn&#039;t happen - these are sanity checks.</p><p>Under normal circumstances HandleC2 returns either 0 if repair is successful or ERROR_ACCESS_DENIED (5) when it fails.<br />All return values are the same as system error codes.</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-04-05T21:36:37Z</updated>
			<id>http://forum.redump.org/post/125356/#p125356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125351/#p125351" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p>All calls to Python functions are enclosed in try/catch blocks (boost::python::error_already_set) with retVal set to ERROR_ACCESS_DENIED - this value is chosen arbitrarily. What do you mean by &quot;comment-out&quot;?</p></blockquote></div><p>Doxygen style is useful for me.<br /></p><div class="codebox"><pre><code>/**
 * @brief  -&gt; Description of this function
 *
 * @param  -&gt; Description of parameter
 * @return -&gt; Description what value is returned
 */
typedef DWORD (WINAPI *pInitC2)(PC2_CORRECTOR_INIT c2InitBlock);</code></pre></div><div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p>In case sector cannot be repaired (for example because corruption is too big, exception will be thrown, retVal = 5).</p></blockquote></div><p>Is the return value of HandleC2 only 0 and 5? It seems that same as system error code(<a href="https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-">https://learn.microsoft.com/en-us/windo … es--0-499-</a>)</p><div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p>HandleC2 can only handle data sectors (data sectors with ECC blocks, mode 2 sectors without ECC are not supported)...</p></blockquote></div><p>Ok. This dll can repair mode 1 and mode 2 form 1 sector.</p>]]></content>
			<author>
				<name><![CDATA[sarami]]></name>
				<uri>http://forum.redump.org/user/12356/</uri>
			</author>
			<updated>2025-04-05T12:39:33Z</updated>
			<id>http://forum.redump.org/post/125351/#p125351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125349/#p125349" />
			<content type="html"><![CDATA[<p>All calls to Python functions are enclosed in try/catch blocks (boost::python::error_already_set) with retVal set to ERROR_ACCESS_DENIED - this value is chosen arbitrarily. What do you mean by &quot;comment-out&quot;?</p><p>In case sector cannot be repaired (for example because corruption is too big, exception will be thrown, retVal = 5).</p><p>HandleC2 can only handle data sectors (data sectors with ECC blocks, mode 2 sectors without ECC are not supported)...</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-04-04T20:41:37Z</updated>
			<id>http://forum.redump.org/post/125349/#p125349</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125318/#p125318" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p>Hmmm. Maybe commit the codes to github branch and I&#039;ll debug it locally? Something is not right...</p></blockquote></div><p>Thanks, but I&#039;ll try to do it myself a little more.</p><p>Could you upload C2.hpp with all return value of InitC2 and HandleC2 in the comment-out? When boost::python::error_already_set occurs, HandleC2 returns 5.</p><p>Edit:<br />Can HandleC2 only handle a data sector? boost::python::error_already_set occurs when audio sector with c2 error is set.</p>]]></content>
			<author>
				<name><![CDATA[sarami]]></name>
				<uri>http://forum.redump.org/user/12356/</uri>
			</author>
			<updated>2025-04-03T05:15:19Z</updated>
			<id>http://forum.redump.org/post/125318/#p125318</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125306/#p125306" />
			<content type="html"><![CDATA[<p>Hmmm. Maybe commit the codes to github branch and I&#039;ll debug it locally? Something is not right...</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-04-02T20:34:03Z</updated>
			<id>http://forum.redump.org/post/125306/#p125306</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125282/#p125282" />
			<content type="html"><![CDATA[<p>The following was tried in debug mode of Visual Studio.<br /></p><div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p>1) After InitC2 function is called pause the app under debugger. Use tool like ProcessExplorer and view process environment variables. Check how PYTHONHOME looks like.</p></blockquote></div><p>I confirmed that PYTHONHOME is set correctly using ProcessExplorer and HandleC2 func throws the exception in the &quot;boost::python::error_already_set&quot;.<br /></p><div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p>2) In the attachment I put a DLL without a call to SetEnvironmentVariableW. Try to call SetEnvironmentVariableW / SetEnvironmentVariableA with path to your Python install directory (C:\Users\xxx\AppData\Local\Programs\Python\Python312-32) before InitC2 function</p></blockquote></div><p>If &quot;C:\Users\xxx\AppData\Local\Programs\Python\Python312-32&quot; is set using SetEnvironmentVariable, HandleC2 func throws the exception in the &quot;boost::python::error_already_set&quot;.</p><p>If incorrect directory is set, InitC2 func returns the message, &quot;Fatal Python error: failed to get the Python codec of the filesystem encoding&quot;.</p>]]></content>
			<author>
				<name><![CDATA[sarami]]></name>
				<uri>http://forum.redump.org/user/12356/</uri>
			</author>
			<updated>2025-04-01T04:55:43Z</updated>
			<id>http://forum.redump.org/post/125282/#p125282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125276/#p125276" />
			<content type="html"><![CDATA[<p>&gt; Btw, python312.dll and boost_python312-vc143-mt-x32-1_87.dll also need to call using LoadLibrary?</p><p>No, these DLLs are loaded automatically.</p><p>I can trigger this message (Could not find platform independent libraries &lt;prefix&gt;) when PYTHONHOME variable is not set by SetEnvironmentVariableW or when it is set to the wrong path. There are few options left.</p><p>1) After InitC2 function is called pause the app under debugger. Use tool like ProcessExplorer and view process environment variables. Check how PYTHONHOME looks like.</p><p>2) In the attachment I put a DLL without a call to SetEnvironmentVariableW. Try to call SetEnvironmentVariableW / SetEnvironmentVariableA with path to your Python install directory (C:\Users\xxx\AppData\Local\Programs\Python\Python312-32) before InitC2 function. You can also try setting system wide / user wide PYTHONHOME variable and check which case works.</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-03-31T19:04:01Z</updated>
			<id>http://forum.redump.org/post/125276/#p125276</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125272/#p125272" />
			<content type="html"><![CDATA[<p>It seems that PYTHONHOME is set.<br /></p><div class="codebox"><pre><code>PYTHONHOME: C:\Users\xxx\AppData\Local\Programs\Python\Python312-32
Could not find platform independent libraries &lt;prefix&gt;
Need to reread sector:  13183LBA: 13183, C2 error count; 0
Need to reread sector:  13201Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13201, C2 error count; 0
Need to reread sector:  13211Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13211, C2 error count; 0
Need to reread sector:  13220LBA: 13220, C2 error count; 0
Need to reread sector:  13229Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13229, C2 error count; 0
Need to reread sector:  13257Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13257, C2 error count; 0
Need to reread sector:  13266LBA: 13266, C2 error count; 0
Need to reread sector:  13267Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13267, C2 error count; 0
Need to reread sector:  13276Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13276, C2 error count; 0
Need to reread sector:  13285Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13285, C2 error count; 0
Need to reread sector:  13294LBA: 13294, C2 error count; 0
Need to reread sector:  13295Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13295, C2 error count; 0
Need to reread sector:  13313Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 13313, C2 error count; 0
Need to reread sector:  99785LBA: 99785, C2 error count; 0
Need to reread sector:  99786Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 99786, C2 error count; 0
Need to reread sector:  99880Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 99880, C2 error count; 0
Need to reread sector:  99892LBA: 99892, C2 error count; 0
Need to reread sector:  99893Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 99893, C2 error count; 0
Need to reread sector:  99933Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 99933, C2 error count; 0
Need to reread sector: 100108LBA: 100108, C2 error count; 0
Need to reread sector: 100162Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 100162, C2 error count; 0
Need to reread sector: 100163Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 100163, C2 error count; 0
Need to reread sector: 100175LBA: 100175, C2 error count; 0
Need to reread sector: 100176Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 100176, C2 error count; 0
Need to reread sector: 100189Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 100189, C2 error count; 0
Need to reread sector: 100203LBA: 100203, C2 error count; 0
Need to reread sector: 100215Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 100215, C2 error count; 0
Need to reread sector: 100216Exception ignored in garbage collection:
Traceback (most recent call last):
  File &quot;E:\source\repos\DiscImageCreator\Release_ANSI\Plugins\C2Corrector\reedsolo.py&quot;, line 984, in decode
    total_chunks = int(math.ceil(float(len(data)) / float(chunk_size)))  # need to convert to floats first to get an accurate floating division, or else we assume implicit conversion and it will cause an error on Python 2
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SystemError: &lt;class &#039;int&#039;&gt; returned a result with an exception set
LBA: 100216, C2 error count; 0</code></pre></div><div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p> I have also added testing script which invokes functions from reedsolo.py directly.</p></blockquote></div><p>Here.<br /></p><div class="codebox"><pre><code>E:\MyDownloadedApp\RippingTools\redump.org\reentrant&gt;C:\Users\xxx\AppData\Local\Programs\Python\Python312-32\python.exe c2.py
P
0
[2, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 167, 233]
bytearray(b&#039;\x00\x00N\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&#039;)
bytearray(b&#039;\x00\x00N\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xa7\xe9&#039;)
bytearray(b&#039;\x00&#039;)
Q
0
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 239, 8, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 152]
bytearray(b&#039;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x89\xef\x08N\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&#039;)
bytearray(b&#039;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x89\xef\x08N\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xb8\x98&#039;)
bytearray(b&#039;&#039;)</code></pre></div><p>Btw, python312.dll and boost_python312-vc143-mt-x32-1_87.dll also need to call using LoadLibrary?</p>]]></content>
			<author>
				<name><![CDATA[sarami]]></name>
				<uri>http://forum.redump.org/user/12356/</uri>
			</author>
			<updated>2025-03-31T13:18:38Z</updated>
			<id>http://forum.redump.org/post/125272/#p125272</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125245/#p125245" />
			<content type="html"><![CDATA[<p>Maybe there&#039;s some problem with config file encoding (by default it expects UTF 16-LE with BOM). Added debugprint (C2Corrector.7z). I have also added testing script which invokes functions from reedsolo.py directly.</p><p>Usage:<br /></p><div class="codebox"><pre><code>&quot;c:\Program Files (x86)\Python312-32\python.exe&quot; c2.py</code></pre></div><p>Does it show you any errors?</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-03-30T17:14:05Z</updated>
			<id>http://forum.redump.org/post/125245/#p125245</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125208/#p125208" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>reentrant wrote:</cite><blockquote><p>did you adjust the path in C2Corrector.ini?</p></blockquote></div><p>I set it.<br /></p><div class="codebox"><pre><code>PYTHONHOME = C:\Users\xxx\AppData\Local\Programs\Python\Python312-32</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sarami]]></name>
				<uri>http://forum.redump.org/user/12356/</uri>
			</author>
			<updated>2025-03-28T14:37:15Z</updated>
			<id>http://forum.redump.org/post/125208/#p125208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: CDArchive - Improved support for ring based protections]]></title>
			<link rel="alternate" href="http://forum.redump.org/post/125207/#p125207" />
			<content type="html"><![CDATA[<p>&gt; Could not find platform independent libraries &lt;prefix&gt;</p><p>This is critical problem - I&#039;ll test it over the weekend but in the meantime, did you adjust the path in C2Corrector.ini?</p>]]></content>
			<author>
				<name><![CDATA[reentrant]]></name>
				<uri>http://forum.redump.org/user/62415/</uri>
			</author>
			<updated>2025-03-28T14:28:11Z</updated>
			<id>http://forum.redump.org/post/125207/#p125207</id>
		</entry>
</feed>
