<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
I think I've found the bug (my fault), though, on thing is horrible as you can do:<br>
<br>
my_sprite.SetX=20; // No errors, but you destroy the SetX() and it is replaced with a value.<br>
Then later, calling my_second_sprite.SetX(100); // Correct syntax will produce no error (it should!) and proiduce nothing visible as it is equivalent to 20(100); // which means nothing....<br>
<br>
<br>
In other words:<br>
A Method can be replaced with a simple value hiding/removing the method itself.<br>
<br>
The problem here is that the SetX() won't work anymore even for other sprites that have been defined elswhere and before this line.<br>
Replacing the method of a single object with a value (strange idea, but anyway...) is one thing, but in fact, replacing SetX() in one object will void it for all sprites.<br>
<br>
So I think it's a bug IMHO.<br>
<br>
Will test and confirm.<br>
<br>
Cheers,<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font face="Tahoma">-- <br>
   Olivier LAHAYE<br>
   CEA DRT/LIST/DIR</font><br>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF651565" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>De :</b> plymouth [plymouth-bounces@lists.freedesktop.org] de la part de LAHAYE Olivier<br>
<b>Envoyé :</b> mardi 16 mai 2017 11:48<br>
<b>À :</b> plymouth@lists.freedesktop.org<br>
<b>Objet :</b> [PROVENANCE INTERNET] RE:Plenty of bugs: any debug mode available?<br>
</font><br>
</div>
<div></div>
<div>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt"><br>
Hi Charlie,<br>
<br>
Thanks for your fast answer.<br>
I hope you don't mind that I reply to the list, but I think this can be of any use to someone else.<br>
<br>
I though this list was dead since there is lots of old bugs still openned in the bugtrack and since the last commit is almost 2 years old. This is good news :)<br>
<br>
Anyway, I don't need X11 debugging as I'm using qemu and thus it's easy to debug. My initrd has an ssh client, so I can update live my scripts without rebooting my initrd.<br>
<br>
I have a complete testing script that simulates all the expected behaviors.<br>
<br>
My need right now is:<br>
- Know if there are some limitations (max number of variables? or images? or sprites?)<br>
- Know why adding code that is not even executed disable the my_sprite.SetPosition() (or SetX....)<br>
- Trace variables in the debug log (does a Debug.log("message") exists?)<br>
<br>
I have no syntax errors<br>
My log code alone is working fine<br>
My icon code alone or with log code is working fine<br>
My progress bar alone is working fine<br>
If I glue all, SetPosition doesn't work anymore?!?!?!?!?!<br>
<br>
Really puzzeling.<br>
<div><font face="Tahoma">-- </font><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><font face="Tahoma">   Olivier LAHAYE<br>
   CEA DRT/LIST/DIR</font><br>
</div>
</div>
</div>
</div>
</div>
<div style="font-family:Times New Roman; color:#000000; font-size:16px">
<hr tabindex="-1">
<div id="divRpF174790" style="direction:ltr"><font size="2" face="Tahoma" color="#000000"><b>De :</b> Charlie Brej [brejc8@gmail.com]<br>
<b>Envoyé :</b> mardi 16 mai 2017 11:39<br>
<b>À :</b> LAHAYE Olivier<br>
<b>Objet :</b> Re: Plenty of bugs: any debug mode available?<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div>
<div>Hi Oliver<br>
<br>
</div>
Have you tried debugging in x11 environment instead of doing real boots?<br>
<a href="http://brej.org/blog/?p=158" target="_blank">http://brej.org/blog/?p=158</a><br>
<br>
</div>
Charlie<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, May 16, 2017 at 10:26 AM, LAHAYE Olivier <span dir="ltr">
<<a href="mailto:olivier.lahaye@cea.fr" target="_blank">olivier.lahaye@cea.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<br>
Hi,<br>
<br>
I'm desperately trying to create a specific them for systemimager, a software run from a PXE initrd that will partition, format a disk and deploy an image on disk.<br>
This theme will display current processing log (works), steps icons (works) and a progress bar for some steps (fails)<br>
The problem is the following:<br>
If I add the progressbar code, the SetPosition doesn't work anymore (sets position to 0,0,0)<br>
even if I hardcode some values, it has no efffect.<br>
If I remove the progressbar code, it works again.<br>
<br>
My question is then: are there a maximum number of images or sprites that can be created?<br>
log uses 15 lines (x2) = 30 sprites<br>
logo = 1 sprite<br>
step icons = 7 sprites<br>
progressbar = 3 sprites<br>
<br>
The plymouthd log is a nightmare to read as it is align=center (Why the hell this choice????)<br>
<br>
I've even noticed that table.object.image = Image("foo.png"); is ignored while<br>
table_object.image = Image("foo.png"); //works!!! No syntax errors, but the above is simply ignored!!!<br>
<br>
If only the parser was written using lex+yacc or even better with an existing scripting language lightweight library like liblua or equivalent...<br>
<br>
Aside spinning a logo, it's almost unusable and plymouthd often crash. (Fedora-25 latest updates)<br>
<br>
Are there some settings in /etc/plymouth/plymouthd.conf that could help me?<br>
(left aligned logs???)<br>
(track image and sprite creations and positions in log???)<br>
<br>
Is there some Debug.log("message") available that could send a message in plymouthd debug log?<br>
<br>
It's very frustrating when hitting so many bugs that slow development. I even don't know if there is a way to achieve my them (in theory yes, but practically, so far, that doesn't work)<br>
I think there is plenty of memory corruption (and plymouthd segfault proves it).<br>
<br>
Cheers,<br>
<br>
--<br>
   Olivier LAHAYE<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
plymouth mailing list<br>
<a href="mailto:plymouth@lists.freedesktop.org" target="_blank">plymouth@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/plymouth" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/plymouth</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>