Skip to content

Conversation

cfirz
Copy link

@cfirz cfirz commented Aug 2, 2025

Unity 6.2 fix for error: Texture must have width greater than 0

Related issue

Example: Closes #832. Relates to #832.

Description of changes

Your text here!

QA checklists

  • Add relevant code comments. Every API class and method should have <summary> description as well as description of parameters.
  • Add tests for new/changed/updated classes and methods!!!
  • Check out conventions in CONTRIBUTING.md.
  • Check out conventions in CODING-STYLE.md
  • Update the changelog
  • Update documentation.

Reviewers

Tag your reviewer(s). Choose wisely.

Unity 6.2 fix for error: Texture must have width greater than 0
@cfirz
Copy link
Author

cfirz commented Aug 2, 2025

this is a fix for unity 6.2 error:

Texture must have width greater than 0.
0x00007fff286b18ae (Unity) StackWalker::ShowCallstack
0x00007fff286c11b9 (Unity) PlatformStacktrace::GetStacktrace
0x00007fff2992e05e (Unity) Stacktrace::GetStacktrace
0x00007fff29f065df (Unity) DebugStringToFile
0x00007fff280cab91 (Unity) Texture2D::InitTexture
0x00007fff280407c9 (Unity) Texture2DScripting::Create
0x00007fff2771f959 (Unity) Texture2D_CUSTOM_Internal_CreateImpl
0x0000018d16122c86 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Texture2D:Internal_CreateImpl_Injected (UnityEngine.Texture2D,int,int,int,UnityEngine.Experimental.Rendering.GraphicsFormat,UnityEngine.TextureColorSpace,UnityEngine.Experimental.Rendering.TextureCreationFlags,intptr,bool,UnityEngine.Bindings.ManagedSpanWrapper&)
0x0000018d161229bb (Mono JIT Code) UnityEngine.Texture2D:Internal_CreateImpl (UnityEngine.Texture2D,int,int,int,UnityEngine.Experimental.Rendering.GraphicsFormat,UnityEngine.TextureColorSpace,UnityEngine.Experimental.Rendering.TextureCreationFlags,intptr,bool,string)
0x0000018d161224a3 (Mono JIT Code) UnityEngine.Texture2D:Internal_Create (UnityEngine.Texture2D,int,int,int,UnityEngine.Experimental.Rendering.GraphicsFormat,UnityEngine.TextureColorSpace,UnityEngine.Experimental.Rendering.TextureCreationFlags,intptr,bool,string)
0x0000018d1612047b (Mono JIT Code) UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,int,bool,intptr,bool,UnityEngine.MipmapLimitDescriptor)
0x0000018d1611fdeb (Mono JIT Code) UnityEngine.Texture2D:.ctor (int,int,UnityEngine.TextureFormat,bool)
0x0000018d2d2f3973 (Mono JIT Code) Mapbox.Unity.MeshGeneration.Data.UnityTile:SetRasterData (byte[],bool,bool) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Unity/MeshGeneration/Data/UnityTile.cs:294)
0x0000018d2d2f34bb (Mono JIT Code) Mapbox.Unity.MeshGeneration.Factories.MapImageFactory:OnImageRecieved (Mapbox.Unity.MeshGeneration.Data.UnityTile,Mapbox.Map.RasterTile) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Unity/MeshGeneration/Factories/MapImageFactory.cs:71)
0x0000018d2d2f3115 (Mono JIT Code) (wrapper delegate-invoke) System.Action2<T1_REF, T2_REF>:invoke_void_T1_T2 (T1_REF,T2_REF) 0x0000018d2d2f28f1 (Mono JIT Code) ImageDataFetcher/<>c__DisplayClass2_0:<FetchData>b__0 () (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Unity/MeshGeneration/Factories/ImageDataFetcher.cs:49) 0x0000018d2d2f2271 (Mono JIT Code) Mapbox.Map.Tile:HandleTileResponse (Mapbox.Platform.Response) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs:244) 0x0000018d2d2daa10 (Mono JIT Code) Mapbox.Platform.Cache.CachingWebFileSource:Request (string,System.Action1<Mapbox.Platform.Response>,int,Mapbox.Map.CanonicalTileId,string) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Core/mapbox-sdk-cs/Platform/Cache/CachingWebFileSource.cs:166)
0x0000018d2d2d9afb (Mono JIT Code) Mapbox.Unity.MapboxAccess:Request (string,System.Action`1<Mapbox.Platform.Response>,int,Mapbox.Map.CanonicalTileId,string) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Unity/MapboxAccess.cs:234)
0x0000018d2d2d539d (Mono JIT Code) Mapbox.Map.Tile:Initialize (Mapbox.Platform.IFileSource,Mapbox.Map.CanonicalTileId,string,System.Action) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Core/mapbox-sdk-cs/Map/Tile.cs:144)
0x0000018d2d2d4b4b (Mono JIT Code) ImageDataFetcher:FetchData (DataFetcherParameters) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Unity/MeshGeneration/Factories/ImageDataFetcher.cs:35)
0x0000018d2d2d3b7b (Mono JIT Code) Mapbox.Unity.MeshGeneration.Factories.MapImageFactory:OnRegistered (Mapbox.Unity.MeshGeneration.Data.UnityTile) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Unity/MeshGeneration/Factories/MapImageFactory.cs:127)
0x0000018d2d2cbb38 (Mono JIT Code) Mapbox.Unity.MeshGeneration.Factories.AbstractTileFactory:Register (Mapbox.Unity.MeshGeneration.Data.UnityTile) (at E:/UnityProjects/GeekAdvisor/Assets/Mapbox/Unity/MeshGeneration/Factories/AbstractTileFactory.cs:71)
0x0000018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to request exactly all tiles in Camera View ?
1 participant