spoutn1k / mcmap

Pixel-art map visualizer for Minecraft. Maps are drawn from an isometric perspective.
GNU General Public License v3.0
312 stars 45 forks source link

Errors about being unable to access cache files #74

Closed retep998 closed 3 years ago

retep998 commented 3 years ago

Using a world created in 21w43a. Built mcmap from source using 819a077db100fd59bd8581fea7450e9dd9fc620f with snapshots enabled on Windows.

mcmap 3.0.1 64bit (compatible with Minecraft v1.13+) Snapshots enabled
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.1648.-64 ~> 1535.2671.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.1648.-64 ~> 1535.2671.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.1648.-64 ~> 4607.2671.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.1648.-64 ~> 4607.2671.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.1648.-64 ~> 2559.2671.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.1648.-64 ~> 2559.2671.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.1648.-64 ~> 3583.2671.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.1648.-64 ~> 3583.2671.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-4496.-64 ~> 4607.-3473.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-4496.-64 ~> 4607.-3473.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-3472.-64 ~> 1535.-2449.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-3472.-64 ~> 1535.-2449.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-3472.-64 ~> 4607.-2449.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-3472.-64 ~> 4607.-2449.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-2448.-64 ~> 4607.-1425.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-2448.-64 ~> 4607.-1425.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-4496.-64 ~> 2559.-3473.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-4496.-64 ~> 2559.-3473.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-1424.-64 ~> 4607.-401.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-1424.-64 ~> 4607.-401.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-2448.-64 ~> 1535.-1425.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-2448.-64 ~> 1535.-1425.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.624.-64 ~> 1535.1647.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.624.-64 ~> 1535.1647.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-4496.-64 ~> 3583.-3473.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-4496.-64 ~> 3583.-3473.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.624.-64 ~> 4607.1647.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.624.-64 ~> 4607.1647.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-1424.-64 ~> 1535.-401.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-1424.-64 ~> 1535.-401.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-400.-64 ~> 4607.623.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\3584.-400.-64 ~> 4607.623.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-400.-64 ~> 1535.623.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-400.-64 ~> 1535.623.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-3472.-64 ~> 2559.-2449.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-3472.-64 ~> 2559.-2449.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-3472.-64 ~> 3583.-2449.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-3472.-64 ~> 3583.-2449.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-2448.-64 ~> 2559.-1425.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-2448.-64 ~> 2559.-1425.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-2448.-64 ~> 3583.-1425.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-2448.-64 ~> 3583.-1425.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-1424.-64 ~> 2559.-401.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-1424.-64 ~> 2559.-401.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-1424.-64 ~> 3583.-401.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-1424.-64 ~> 3583.-401.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.624.-64 ~> 2559.1647.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.624.-64 ~> 2559.1647.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-400.-64 ~> 2559.623.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\1536.-400.-64 ~> 2559.623.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.624.-64 ~> 3583.1647.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.624.-64 ~> 3583.1647.319 (North-West)' for reading: Invalid argument
[Error] [PNGWriter] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-400.-64 ~> 3583.623.319 (North-West)' for writing: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\2560.-400.-64 ~> 3583.623.319 (North-West)' for reading: Invalid argument
[Error] [PNGReader] Error opening 'C:\Users\retep\AppData\Local\Temp\mcmap_cache\512.-3472.-64 ~> 1535.-2449.319 (North-West)' for reading: Invalid argument
spoutn1k commented 3 years ago

Hey thanks for the issue ! Did you build with MSVC or Cygwin ? I'll look into it !

retep998 commented 3 years ago

I built it using VS 2019.

spoutn1k commented 3 years ago

I believe VS 2019 supports both, but that is not the issue apparently, as it is Windows whining about ~ in a filename. Could you try the temp-file-fix branch and let me know if that fixes it ?

retep998 commented 3 years ago

That branch has indeed fixed the issue. Thanks for the quick solution!

Also unrelated but vcpkg made building this so much easier by handling all the ugliness of acquiring C/C++ dependencies on Windows. Still not as easy to build as Rust code, but way less painful than I'm used to with C/C++.

spoutn1k commented 3 years ago

Perfect ! Will merge and propagate to the binaries.

I might give it a try, as compiling on windows was the most frustrating experience of my open-source career lol