[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-games-devel
Subject:    Re: Catastrophic failure in KSudoku
From:       Jeremy Whiting <jpwhiting () kde ! org>
Date:       2019-03-19 16:36:47
Message-ID: CADWV2K5ZXNzOr04jr7nObXQ8P0qDVOU=t3LaMUeoeGzPY-sK-w () mail ! gmail ! com
[Download RAW message or body]

I'm not sure why gmail's reply to all isn't putting you in Ian... Anyway,
the cause is the QDomDocument::setContent from the QTemporaryFile after it
copies the file out of the installation path (why is that needed by the
way?) Adding some debugging to the call it seems the error is "Unexpected
end of file" on line 1 column 1. I checked the file does exist and such, I
wonder if the download copy job is leaving the QTemporaryFile object's seek
point at the end of the file as it writes it or something. No, adding a
tmpFile.reset() before setting the content does not help. It's as if the
copy job finishes before the file is written to disk. I don't have any
weird mount options (or any, since /tmp/ is just part of my / partition
here). Not sure what's going on to cause QDomDocument::setContent to think
the file is empty...

On Mon, Mar 18, 2019 at 9:53 PM Ian Wadham <iandw.au@gmail.com> wrote:

>
>
> > On 19 Mar 2019, at 2:24 pm, Jeremy Whiting <jpwhiting@kde.org> wrote:
> >
> > I'll see what I can figure out. no problem. Albert are you building with
> kdesrc-build ? or manually? I'm using kdesrc-build buliding into
> /usr/local. Until this morning libkdegames didn't build because I was
> missing libsndfile, after adding that I'm seeing the same failure described
> by Duncan in the bug. I'll debug it tomorrow and see what's causing it.
>
> The variants that fail are all those whose rules are defined by XML files
> in ksudoku/src/shapes
> — and only those variants. The failure point in KSudoku appears to be
> exactly where it calls the
> loadCustomShape method in the sudoku::Serializer code. See details in
>     https://bugs.kde.org/show_bug.cgi?id=405422#c3
>
> My guess is that some newer version of XML parsing libraries dislikes
> KSudoku's XML files or
> possibly that some changed XML version or DOCTYPE has got into the act.
>
> Ian W.
>
> > BR,
> > Jeremy
> >
> > On Mon, Mar 18, 2019 at 4:52 PM Albert Astals Cid <aacid@kde.org> wrote:
> > El dilluns, 18 de març de 2019, a les 20:44:06 CET, Jeremy Whiting va
> escriure:
> > > Yep, same thing happens here. Aztec -> Generate A Puzzle shows a
> dialog box
> > > that says "
> > >
> > > Unable to generate a puzzle of the chosen variant; please try another."
> > > with a build I just did.
> >
> > Weird, works just fine for me.
> >
> > Jeremy guess it's on you to debug it :/
> >
> > Cheers,
> >   Albert
> >
> > >
> > >
> > > BR,
> > >
> > > Jeremy
> > >
> > > On Thu, Mar 14, 2019 at 9:24 PM Ian Wadham <iandw.au@gmail.com> wrote:
> > >
> > > > It appears that KSudoku is failing catastrophically. Only the most
> vanilla
> > > > puzzle types can be selected
> > > > (i.e.  Classic Sudoku nxn and Roxdoku nxnxn). All others fail to
> create
> > > > their data-structures from XML
> > > > files and so fail to generate a puzzle and display it (e.g. XSudoku,
> > > > Killer Sudoku, Aztec, Samurai
> > > > and many more).
> > > >
> > > > For more details, please see
> https://bugs.kde.org/show_bug.cgi?id=405422,
> > > > especially comment #3.
> > > >
> > > > This was reported by Duncan, who builds KF5 and apps from live-git
> and has
> > > > just noticed the problem
> > > > appearing in the last week or two --- more recently than any changes
> in
> > > > the KSudoku source.
> > > >
> > > > Please can someone who has access to builds and executables of the
> latest
> > > > development (HEAD)
> > > > KSudoku code check if they can reproduce this error? You just need
> to run
> > > > KSudoku, select Aztec
> > > > puzzle-type (for example) and click on "Generate A Puzzle".
> > > >
> > > > Thanks in advance,
> > > > Ian Wadham.
> > > >
> > > >
> > >
> >
> >
> >
> >
>
>

[Attachment #3 (text/html)]

<div dir="ltr"><div dir="ltr">I&#39;m not sure why gmail&#39;s reply to all isn&#39;t \
putting you in Ian... Anyway, the cause is the QDomDocument::setContent from the \
QTemporaryFile after it copies the file out of the installation path (why is that \
needed by the way?) Adding some debugging to the call it seems the error is \
&quot;Unexpected end of file&quot; on line 1 column 1. I checked the file does exist \
and such, I wonder if the download copy job is leaving the QTemporaryFile \
object&#39;s seek point at the end of the file as it writes it or something. No, \
adding a tmpFile.reset() before setting the content does not help. It&#39;s as if the \
copy job finishes before the file is written to disk. I don&#39;t have any weird \
mount options (or any, since /tmp/ is just part of my / partition here). Not sure \
what&#39;s going on to cause QDomDocument::setContent to think the file is \
empty...<br></div></div><br><div class="gmail_quote"><div dir="ltr" \
class="gmail_attr">On Mon, Mar 18, 2019 at 9:53 PM Ian Wadham &lt;<a \
href="mailto:iandw.au@gmail.com">iandw.au@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br> <br>
&gt; On 19 Mar 2019, at 2:24 pm, Jeremy Whiting &lt;<a \
href="mailto:jpwhiting@kde.org" target="_blank">jpwhiting@kde.org</a>&gt; wrote:<br> \
&gt; <br> &gt; I&#39;ll see what I can figure out. no problem. Albert are you \
building with kdesrc-build ? or manually? I&#39;m using kdesrc-build buliding into \
/usr/local. Until this morning libkdegames didn&#39;t build because I was missing \
libsndfile, after adding that I&#39;m seeing the same failure described by Duncan in \
the bug. I&#39;ll debug it tomorrow and see what&#39;s causing it.<br> <br>
The variants that fail are all those whose rules are defined by XML files in \
ksudoku/src/shapes<br> — and only those variants. The failure point in KSudoku \
appears to be exactly where it calls the<br> loadCustomShape method in the \
                sudoku::Serializer code. See details in<br>
      <a href="https://bugs.kde.org/show_bug.cgi?id=405422#c3" rel="noreferrer" \
target="_blank">https://bugs.kde.org/show_bug.cgi?id=405422#c3</a><br> <br>
My guess is that some newer version of XML parsing libraries dislikes KSudoku's XML \
files or<br> possibly that some changed XML version or DOCTYPE has got into the \
act.<br> <br>
Ian W.<br>
<br>
&gt; BR,<br>
&gt; Jeremy<br>
&gt; <br>
&gt; On Mon, Mar 18, 2019 at 4:52 PM Albert Astals Cid &lt;<a \
href="mailto:aacid@kde.org" target="_blank">aacid@kde.org</a>&gt; wrote:<br> &gt; El \
dilluns, 18 de març de 2019, a les 20:44:06 CET, Jeremy Whiting va escriure:<br> \
&gt; &gt; Yep, same thing happens here. Aztec -&gt; Generate A Puzzle shows a dialog \
box<br> &gt; &gt; that says &quot;<br>
&gt; &gt; <br>
&gt; &gt; Unable to generate a puzzle of the chosen variant; please try \
another.&quot;<br> &gt; &gt; with a build I just did.<br>
&gt; <br>
&gt; Weird, works just fine for me.<br>
&gt; <br>
&gt; Jeremy guess it&#39;s on you to debug it :/<br>
&gt; <br>
&gt; Cheers,<br>
&gt;     Albert<br>
&gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; BR,<br>
&gt; &gt; <br>
&gt; &gt; Jeremy<br>
&gt; &gt; <br>
&gt; &gt; On Thu, Mar 14, 2019 at 9:24 PM Ian Wadham &lt;<a \
href="mailto:iandw.au@gmail.com" target="_blank">iandw.au@gmail.com</a>&gt; \
wrote:<br> &gt; &gt; <br>
&gt; &gt; &gt; It appears that KSudoku is failing catastrophically. Only the most \
vanilla<br> &gt; &gt; &gt; puzzle types can be selected<br>
&gt; &gt; &gt; (i.e.   Classic Sudoku nxn and Roxdoku nxnxn). All others fail to \
create<br> &gt; &gt; &gt; their data-structures from XML<br>
&gt; &gt; &gt; files and so fail to generate a puzzle and display it (e.g. \
XSudoku,<br> &gt; &gt; &gt; Killer Sudoku, Aztec, Samurai<br>
&gt; &gt; &gt; and many more).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; For more details, please see <a \
href="https://bugs.kde.org/show_bug.cgi?id=405422" rel="noreferrer" \
target="_blank">https://bugs.kde.org/show_bug.cgi?id=405422</a>,<br> &gt; &gt; &gt; \
especially comment #3.<br> &gt; &gt; &gt;<br>
&gt; &gt; &gt; This was reported by Duncan, who builds KF5 and apps from live-git and \
has<br> &gt; &gt; &gt; just noticed the problem<br>
&gt; &gt; &gt; appearing in the last week or two --- more recently than any changes \
in<br> &gt; &gt; &gt; the KSudoku source.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Please can someone who has access to builds and executables of the \
latest<br> &gt; &gt; &gt; development (HEAD)<br>
&gt; &gt; &gt; KSudoku code check if they can reproduce this error? You just need to \
run<br> &gt; &gt; &gt; KSudoku, select Aztec<br>
&gt; &gt; &gt; puzzle-type (for example) and click on "Generate A Puzzle".<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Thanks in advance,<br>
&gt; &gt; &gt; Ian Wadham.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
<br>
</blockquote></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic