• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
mmap quiet failure - all reads are 0x00
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mmap quiet failure - all reads are 0x00


  • Subject: mmap quiet failure - all reads are 0x00
  • From: Trygve Inda <email@hidden>
  • Date: Fri, 05 Feb 2016 10:09:31 -0800
  • Thread-topic: mmap quiet failure - all reads are 0x00

I have image data that is stored in a 150mb file which I use mmap to read.

The image data is pulled into a NSBitmapImageRep pixel by pixel and
eventually shows on the screen. Only a subset of the pixel in the mmap file
are pulled into a single NSBitmapImageRep.

A few customers (and I have seen it happen here a couple times too) are
reporting that sometimes the image just turns solid black.

It seems like no matter what is in the mmap file, when I read from it I get
0x00 for every byte and no error or exception is generated. I can't
reproduce it as it is very random. Quitting and relaunching solves it.

Any ideas?

Trygve



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: mmap quiet failure - all reads are 0x00
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Question about Archives and Serialisations Programming Guide
  • Next by Date: Re: Archive/Unarchive Problem - Bug in MacOSX/Cocoa?
  • Previous by thread: Re: Question about Archives and Serialisations Programming Guide
  • Next by thread: Re: mmap quiet failure - all reads are 0x00
  • Index(es):
    • Date
    • Thread