<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>Some thought about this bug.<br></div>Actually qgis is pointing the SVG using a local machine path set globally in the PC (in the user).<br>
</div>It don't save any path in the project.<br></div>This is usually a good choice because the svg path could be PC-related.<br></div>But this also open to another set of bugs.<br>Infacts if some-one (like us) plan to use the QGIS to distribute to other users dataset with svg file and project to see them.<br>
If the package will be downloadable from internet to every anonymous user, <br>is really probably that a project will open on a PC where the qgis has an SVG-path wrong or not set at all.<br><br></div><div>Also more probably the user that open it will be an user that don't know the project and fon't know what is should show or should have set to run correctly.<br>
</div><div><br></div>So' is really important that qgis will be capable to understand and to say to the user something like:<br></div>"Hey guy your svg-path is wrong or missing. This project don't find some SVG. Please set it correctly or retrieve the missing SVG".<br>
</div><div><br></div>Instead actually it only crash at first zoom or pan say-ing only<br>"Hey guy, I'm dead-ing".<br>:/<br><br></div></div><div>My question is:<br></div><div>How really is qgis usable for the distribution of projects and datasets ?<br>
</div><div><br></div><div></div><div>I like to know other user on this.<br><br></div><div><div><br></div><div>Thx,<br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-02 14:05 GMT+02:00 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, I open a ticket.<br><br></div>Regards,<br><br>Andrea.<br><div><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">2014-05-01 17:59 GMT+02:00 Andrea Peri <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span>:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>we are experiencing a qgis crash using the svg symbols.<br><br>We test this on windows using qgis 2.2 and qgis-dev update just today.<br>

<br>This is the reproducible steps:<br><br>1th)<br>Create a new empty project.<br>
After this add to the project a multipolygon shapefile, and rendering the polygon <br>from <br>layer-properties -> style -> SVG fill -> choose any svg file available.<br>(we choose golf.svg)<br>accept it and save the project.<br>


<br>after close the project and re-opened it<br><br>You can see that in the style -> data-definition section there is an expression<br>"svgOutlineWidth_expression" in "border width" section of data-definition.<br>


<br>This is a first bug because we don't set this expression . It is add from qgis.<br><br>This bug is more serious than what you can thing because it can easily produce a crash of qgis.<br><br>Infact if we suppose that the svg is missing in the PC that open the project.<br>


You can think to use an user customized svg and think to forget to pass it with the project to other users, or set the wrong path in SVG paths.<br><br>To simulate this missing is sufficiente close the project and rename temporaly the <br>


svg file used.<br><br>After reopened the qgis and zoom on the dataset it crash immediatelly.<span><font color="#888888"><br><br>Andrea.<br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>

qwerty àèìòù<br>-----------------<br>

</font></span></div>
</blockquote></div></div></div><div><div class="h5"><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div></div></div>
</blockquote></div><br><br clear="all"><br>-- <br>-----------------<br>Andrea Peri<br>. . . . . . . . . <br>qwerty àèìòù<br>-----------------<br>
</div>