Skip to content
This repository was archived by the owner on Aug 25, 2023. It is now read-only.
This repository was archived by the owner on Aug 25, 2023. It is now read-only.

mapkit tile overlay CGImageSourceCreateWithData error #132

Closed

Description

@atelierhyper

I can't find many answers to this error on the web...

Here's the error that I get:
[8225] : ImageIO: CGImageSourceCreateWithData data parameter is nil

It looks like in SDK8, the tile overlay generates errors... but is it the mbxmapkit or the apple MapKit? and is this error has been reported somewhere?

Thx!

Brian

Activity

  1. s219 commented on Sep 26, 2014

    @s219

    Seeing the same thing. From the Apple documentation I read, it seems like this message would popup if some image we're trying to load is missing or has been released (or not retained when it should have been, so it's dropped out of scope).

  2. incanus commented on Sep 26, 2014

    @incanus
    Contributor

    Have been hearing of this a little in 8. Maybe insert an NSLog() around tile URL requests and see if MapKit is somehow requesting invalid ones? We've seen that before with MapKit, where it requests tiles outside of the stated overlay min/max zoom, for example.

  3. ichents commented on Sep 28, 2014

    @ichents

    i'm experiencing this too.. do you support iOS 8?

  4. incanus commented on Sep 29, 2014

    @incanus
    Contributor

    Yes, iOS 8 is supported both in the sense that the software is meant to run on it, and we provide tech support for it.

  5. ichents commented on Sep 30, 2014

    @ichents

    Good to know, but i meant it in the context of this bug..
    Did you release a fix for this problem?

  6. incanus commented on Sep 30, 2014

    @incanus
    Contributor

    My current understanding is that this is a bug on Apple's side, but I will check it out in more detail and see if we can work around it.

  7. incanus commented on Sep 30, 2014

    @incanus
    Contributor

    After digging into this, it is definitely:

    • Related to the rendering of tiles, not markers.
    • Happening any time MKTileOverlayRenderer draws tiles.
    • Harmless but annoying. I can confirm that it happens even when only valid tiles are requested & received and properly rendered to the screen.

    Further reference: https://devforums.apple.com/message/1051745

    For now, let's leave this open and watch the dev forum post.

  8. aolszak commented on Oct 9, 2014

    @aolszak

    Same problem here. At the moment I have no idea how to get rid of this error.

  9. janngobble commented on Oct 24, 2014

    @janngobble

    I am seeing this too...even with 8.1

  10. johnhaitas commented on Nov 4, 2014

    @johnhaitas

    Seeing this over here as well with commit 416d8a9 - has anyone found a short term workaround?

  11. incanus commented on Nov 4, 2014

    @incanus
    Contributor

    To clarify: is anyone seeing problems because of this, or just log messages?

  12. johnhaitas commented on Nov 4, 2014

    @johnhaitas

    For me, the tiles do not load whatsoever on an iOS 8.0.2 device. I have experience crashes, but I have not yet established a consistent procedure to reproduce them.

    The tiles do correctly load in my iOS 7 simulator.

    Attaching a screenshot from my iOS 8.0.2 device.

    screen shot 2014-11-04 at 1 02 49 pm

  13. johnhaitas commented on Nov 4, 2014

    @johnhaitas

    The tiles do correctly load in my iOS 8 simulator. I can also confirm that the tiles do not correctly load on a 8.1 device. So the failure to load the tiles applies to iOS 8.x devices, but not iOS 8 simulators (Xcode 6.1)

    also the sample application does correctly load tiles on a iOS 8 device

  14. aolszak commented on Nov 4, 2014

    @aolszak

    This could be useful information. Thx!

  15. 13 remaining items

  16. rossbertsch commented on Dec 10, 2014

    @rossbertsch

    @incanus just branched our project and tested this out. At a quick first glance it seems quite successful. No more error log and - I cant 100% confirm this yet - but our map tiles even appear to be rendering faster. I ran a couple time profiler tests on iPhone 5 iOS 8.1 that seemed to correlate with this. Are the default settings MBXRasterTileRenderer lower quality than the MKTileOverlayRenderer? I haven't fiddled with it that much yet but I'll report back when we are able to get some more testing in.

  17. incanus commented on Dec 10, 2014

    @incanus
    Contributor

    Yeah @rossbertsch it's likely this seems faster, since there are 1/4 the network requests as 512px tiles are being retrieved, then trimmed into four 256px tiles, then cached. Nice to hear! Thanks for checking it out.

  18. s219 commented on Dec 16, 2014

    @s219

    Working excellent here, definitely faster as well. Thanks Justin!

    Only hitch I ran into was Xcode fighting me on the weak reference assignment in “canDrawMapRect” of “MBXRasterTileRenderer.m”, line 101. I assume I need to set an option somewhere in my project’s build settings, but didn’t see anything different between my project and the sample project that should have mattered. If anybody has a suggestion, let me know. For now, I just brute forced it:

    //    __weak typeof(self) weakSelf = self;
    
       __weak MBXRasterTileRenderer *weakSelf = self;
    
  19. incanus commented on Dec 16, 2014

    @incanus
    Contributor

    Hmm, what warning do you see from that @s219? There is probably a build setting related to strong typing.

  20. s219 commented on Dec 16, 2014

    @s219

    See attached screenshot — Xcode was acting like it didn’t know what to do with "typeof(self)”. Once I manually defined weakSelf as MBXRasterTileRenderer it was fine.

    On Dec 16, 2014, at 12:32 PM, Justin R. Miller [email protected] wrote:

    Hmm, what warning do you see from that @s219? There is probably a build setting related to strong typing.

    —
    Reply to this email directly or view it on GitHub.

    Craig Hunter
    Hunter Research and Technology LLC
    http://hrtapps.com
    [email protected]

  21. gtasko commented on Jan 15, 2015

    @gtasko

    I used pod 'MBXMapKit' in my podfile and I can't seem to find the MBXRasterTileRenderer.
    Is there something I should check?

    I get the : ImageIO: CGImageSourceCreateWithData data parameter is nil both in iPhone 6 simulator and iOS 8.1 iPhone 6 device.

    Also, can I avoid the refresh that is doing when I drag the map around? I should use caching to improve performance?

    Another problem is that we don't have access to set the accesstoken, will this introduce problems using a custom layout to MapKit?

  22. incanus commented on Jan 16, 2015

    @incanus
    Contributor

    @gtasko This is not yet released (see #136; it's close) so you'll have to reference the 132-renderer branch in your Podfile in order to pull this in.

  23. gtasko commented on Jan 16, 2015

    @gtasko

    OK, thanks, I'll wait for the release then.

    Do you know about the setAccessToken question? Why the method is not exposed to the interface file?

  24. incanus commented on Jan 16, 2015

    @incanus
    Contributor

    Yes, it's related. See the changelog. It will come back very soon with support for v4. Right now v3 will automatically be used.

  25. gtasko commented on Jan 16, 2015

    @gtasko

    OK, thanks for the response, we will wait for the next release version.

  26. modified the milestone: 0.6.0 on Jan 23, 2015
  27. suraj-aahlaad commented on Oct 23, 2015

    @suraj-aahlaad

    How to calculate the size of the selected area of the map before downloading i am using MBXMapKit SDK any one can help me how to calculate the size of the map before downloading the map.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions