{"action":"opened","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/792","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/792/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/792/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/792/events","html_url":"https://github.com/esp8266/Arduino/issues/792","id":106748184,"number":792,"title":"File content corrupted for large file on SPIFFS","user":{"login":"mytrain","id":13887597,"avatar_url":"https://avatars.githubusercontent.com/u/13887597?v=3","gravatar_id":"","url":"https://api.github.com/users/mytrain","html_url":"https://github.com/mytrain","followers_url":"https://api.github.com/users/mytrain/followers","following_url":"https://api.github.com/users/mytrain/following{/other_user}","gists_url":"https://api.github.com/users/mytrain/gists{/gist_id}","starred_url":"https://api.github.com/users/mytrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mytrain/subscriptions","organizations_url":"https://api.github.com/users/mytrain/orgs","repos_url":"https://api.github.com/users/mytrain/repos","events_url":"https://api.github.com/users/mytrain/events{/privacy}","received_events_url":"https://api.github.com/users/mytrain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-16T10:51:50Z","updated_at":"2015-09-16T10:51:50Z","closed_at":null,"body":"Hi, \r\nI met some issues when try to download then write a file on the SPIFFS file system.\r\nIn my project the file is stored with the same size but its content is altered. Therefore I wrote a small sketch to help you analyzing the issue but the sketch ends up with a truncated file that is also an abnormal file.\r\nThe sketch downloads a file (on one of my public server), computes it its CRC32 then saves it on the SPIFFS file system.\r\nWhen reading back the file and computing the CRC32 I get a different result, moreover in the case of the scketch the file size is not equals to the number of byte downloaded.\r\n\r\nThe sketch is available on http://37.59.92.209/cms/images/mytrain/private/SPIFFSWriteError.ino\r\nThe downloaded file : http://37.59.92.209/cms/images/mytrain/private/steelseries-min.js (size=228467,CRC=0x6e3cc165)\r\nThe logs of the serial dump when running the sketch : http://37.59.92.209/cms/images/mytrain/private/logs.txt\r\n\r\n\r\nI would like to know what's wrong in my scketch.\r\nThanks you.\r\n\r\nPS: Moreover from time to time I got the following exception:\r\n\r\n: 3ffec4b0 end: 3ffec7c0 offset: 01b0\r\n\r\n>>>stack>>>\r\n3ffec660:  0001a4df 3ffeae18 402017ec 3ffeb7a0  \r\n3ffec670:  402010ae 00000005 00000005 3ffeae18  \r\n3ffec680:  0001a4df 3ffec6d8 3ffec818 402095bb  \r\n3ffec690:  3fff52c8 00000001 00000000 00000100  \r\n3ffec6a0:  0000001f 00000000 3fff5318 00000066  \r\n3ffec6b0:  00000066 3ffec854 3ffec850 3fff46d8  \r\n3ffec6c0:  3ffe9ad0 00000000 000003e8 40203e08  \r\n3ffec6d0:  3fff52c8 3fff5318 3ffe96d0 00000000  \r\n3ffec6e0:  000003e8 0000b231 00000000 3fff51d0  \r\n3ffec6f0:  3ffe9b30 d15c3b25 0000000b 3fff53d8  \r\n3ffec700:  0000002d 00000001 00000005 4020188f  \r\n3ffec710:  000005b4 3ffec76c 00000095 402018c8  \r\n3ffec720:  00000040 3fff46d8 3fff4360 3ffea764  \r\n3ffec730:  3ffec848 000255ab 3ffec818 40209957  \r\n3ffec740:  3ffe9ad0 00000000 000003e8 00000000  \r\n3ffec750:  3fff5110 3fff5160 3fff5188 00000016  \r\n3ffec760:  00000016 00000000 00000000 3fff46b8  \r\n3ffec770:  3fff50e8 00000000 00000000 00000000  \r\n3ffec780:  3fff5188 00000000 00000000 00000000  \r\n\r\n3ffec790:  00000000 00000000 00000000 3ffec7ec  \r\n3ffec7a0:  3fffdc20 00000000 3ffec7e4 4020185f  \r\n3ffec7b0:  00000000 00000000 3ffeb7a0 40100398  \r\n<<<stack<<<\r\n\r\n ets Jan  8 2013,rst cause:2, boot mode:(1,6)\r\n\r\n"}}