<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Errors since update to 3.6.0.2]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1377&amp;type=atom" />
	<updated>2019-10-08T19:11:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1377</id>
		<entry>
			<title type="html"><![CDATA[Re: Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5682#p5682" />
			<content type="html"><![CDATA[<p>Thanks for the fix ! I&#039;m rebuilding my project with this fix right now, but i&#039;m pretty sure it will work since i built a version without this script 10 minutes ago and had no problem with it.</p><p>Thank you so much !</p>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-10-08T19:11:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5682#p5682</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5681#p5681" />
			<content type="html"><![CDATA[<p>Yes, this can be the cause of the problem.<br />Try this:<br /></p><div class="codebox"><pre><code>private void Start()
{
    map = OnlineMaps.instance;
    folder = Application.persistentDataPath + &quot;/Tiles/&quot;;
    OnlineMapsTileManager.OnStartDownloadTile += OnStartDownloadTile;
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-10-08T19:01:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5681#p5681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5680#p5680" />
			<content type="html"><![CDATA[<p>I do remember that yesterday, after updating, i got an error in the TileDownloader script :</p><div class="codebox"><pre><code>private void Start()
    {
        map = OnlineMaps.instance;

        folder = Application.persistentDataPath + &quot;/Tiles/&quot;;
        if (OnlineMapsCache.instance != null)  OnlineMapsCache.instance.OnStartDownloadTile += OnStartDownloadTile;
        else OnlineMapsTileManager.OnStartDownloadTile += OnStartDownloadTile;
    }</code></pre></div><p>Because &quot; OnlineMapsCache.instance.OnStartDownloadTile&quot; did not exist anymore. I switched it for :</p><div class="codebox"><pre><code>private void Start()
    {
        map = OnlineMaps.instance;

        folder = Application.persistentDataPath + &quot;/Tiles/&quot;;
        if (OnlineMapsCache.instance != null) OnlineMapsCache.instance.OnLoadedFromCache += OnStartDownloadTile;
        else OnlineMapsTileManager.OnStartDownloadTile += OnStartDownloadTile;
    }</code></pre></div><p>Could this be the problem ? </p><p>TileDownloader script is a script you provided on the forum here : <br /><a href="https://forum.infinity-code.com/viewtopic.php?id=1052">https://forum.infinity-code.com/viewtopic.php?id=1052</a><br />And you helped me about it here :<br /><a href="https://forum.infinity-code.com/viewtopic.php?id=1276">https://forum.infinity-code.com/viewtopic.php?id=1276</a></p>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-10-08T18:44:46Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5680#p5680</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5678#p5678" />
			<content type="html"><![CDATA[<p>Your exceptions look very strange, and I think the problem is on your side.</p><p>What could be wrong:<br />1. You partially updated the asset, leaving some scripts not updated.<br />2. You use OnlineMapsTileManager.OnStartDownloadTile, but do not change the status of the tile.<br />This causes a tile to start endlessly and memory leaks.</p><p>Maybe the problem is somewhere else, but I don’t know your application, and it’s very difficult for me to say where exactly without debugging the application.</p><p>Most likely, a memory leak is due to a problem. <br />I just tested Online Maps through the profiler and did not find any memory leak.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-10-08T18:01:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5678#p5678</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5676#p5676" />
			<content type="html"><![CDATA[<p>I also have a new error spamming on offline use.</p><p>Quick explanation : i&#039;m working on an android app for tablet, which purpose is to create tasks for drones to accomplish them. My app need to work without internet.</p><p>When using the app without internet, i can see in the logcat </p><p><span class="postimg"><img src="https://image.noelshack.com/fichiers/2019/41/2/1570550510-captureerror2.jpg" alt="PunBB bbcode test" /></span></p><p>Which makes sense since it&#039;s trying to download tiles and wifi is off. But this errors never shows up before, so i&#039;m wondering if it&#039;s due to last update. </p><p>When re-enabling wifi, tiles download correctly, although i can see a bunch of errors (the same as my second post):</p><p>2019-10-08 12:26:10.828 18054-18077/a.humanitas.heaven E/Unity: NullReferenceException: Object reference not set to an instance of an object<br />&nbsp; &nbsp; &nbsp; at OnlineMapsRasterTile.LoadTileFromWWW (OnlineMapsWWW www) [0x00001] in C:\Users\Thibault\Desktop\UnityProjects\Network_missionPlanner_1\Assets\Infinity Code\Online maps\Scripts\Tiles\OnlineMapsRasterTile.cs:260 <br />&nbsp; &nbsp; &nbsp; at OnlineMapsTile.LoadFromWWW (OnlineMapsWWW www) [0x00030] in C:\Users\Thibault\Desktop\UnityProjects\Network_missionPlanner_1\Assets\Infinity Code\Online maps\Scripts\Tiles\OnlineMapsTile.cs:457 <br />&nbsp; &nbsp; &nbsp; at OnlineMapsTileManager.OnTileWWWComplete (OnlineMapsWWW www) [0x0001c] in C:\Users\Thibault\Desktop\UnityProjects\Network_missionPlanner_1\Assets\Infinity Code\Online maps\Scripts\Tiles\OnlineMapsTileManager.cs:144 <br />&nbsp; &nbsp; &nbsp; at OnlineMapsWWW.Finish () [0x0000e] in C:\Users\Thibault\Desktop\UnityProjects\Network_missionPlanner_1\Assets\Infinity Code\Online maps\Scripts\Core\OnlineMapsWWW.cs:342 <br />&nbsp; &nbsp; &nbsp; at OnlineMapsWWW+&lt;WaitResponse&gt;d__55.MoveNext () [0x0005e] in C:\Users\Thibault\Desktop\UnityProjects\Network_missionPlanner_1\Assets</p><br /><p> BUT i also notice that the android profiler show that memory increase until the app crashes as i&#039;m scrolling the map zooming in &amp; out. (app crash when it&#039;s near to 1Gb memory use). I&#039;ll try to dig more but it&#039;s a huge problem</p><br /><p>EDIT : this is really weird, even without internet the memory consuption is increasing until it crashes, spamming the &quot;2019-10-08 13:54:48.205 24535-24577/a.humanitas.heaven D/Unity: Curl error 6: Could not resolve host: server.arcgisonline.com&quot; error.</p>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-10-08T16:33:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5676#p5676</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5673#p5673" />
			<content type="html"><![CDATA[<p>Hi<br />So far so good, the error didn&#039;t showed up <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Another error pops when downloading tiles though<br /><span class="postimg"><img src="https://image.noelshack.com/fichiers/2019/41/2/1570544422-captureerrors.jpg" alt="PunBB bbcode test" /></span></p>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-10-08T14:22:12Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5673#p5673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5672#p5672" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Thank you for bug report.<br />I checked all the examples scenes + a lot of my test scenes, and could not reproduce the problem.<br />So I am making a theoretical fix.<br />Replace the script in your project and please let me know if this helped or not.<br />If the problem remains, I will dig it deeper.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-10-07T21:22:47Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5672#p5672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Errors since update to 3.6.0.2]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=5671#p5671" />
			<content type="html"><![CDATA[<p>Hi<br />Just updated to 3.6.0.2 and I have an error spamming when scrolling the map :</p><p>NullReferenceException: Object reference not set to an instance of an object<br />OnlineMapsTileManager+&lt;StartDownloadTileAsync&gt;d__30.MoveNext () (at Assets/Infinity Code/Online maps/Scripts/Tiles/OnlineMapsTileManager.cs:308)<br />UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at C:/buildslave/unity/build/Runtime/Export/Scripting/Coroutines.cs:17)</p>]]></content>
			<author>
				<name><![CDATA[Thibault]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=821</uri>
			</author>
			<updated>2019-10-07T20:38:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=5671#p5671</id>
		</entry>
</feed>
