Array initialize causing crash in simulator, only with certain versions set

I am initializing an array in my viewDidLoad method:
for (i=0; i<NUMBEROFIMAGES; i++) {
[buttonsArray addObject:[UIButton buttonWithType:UIButtonTypeRoundedRect]];
[[buttonsArray objectAtIndex: i] setImage:tmpImage forState:UIControlStateNormal];
There happens to be 28 images.
1. If I build in Xcode in v2.0, the app doesn't crash in the simulator, regardless whether the simulator is set to hardware v2.0 or v2.1, and regardless of whether NUMBEROFIMAGES set to 27 or 28.
2. But if I build in Xcode in v2.1 the result is different. The app still doesn't crash in simulator hardware v2.0 or 2.1 with NUMBEROFIMAGES set to 27. But it does crash upon startup when the simulator is set to hardware v2.1 when NUMBEROFIMAGES set to 28.
Anybody see anything like this happen?
One question I have about my loop. When creating arrays of objects manually (not in a loop) I had been adding one extra 'nil' object at the end.
I haven't been doing that when creating the array in a loop. After the loop do I need to add one more nil object?
Also, how do I keep the simulator set at hardware v2.1? It always seems to default to v2.0 when starting up.
Thanks!
doug

To set the default target in Xcode go to Project|Edit Project Settings. Click on the 'Build' tab. Find the Architectures section (it's first for me). Drop down the list for Base SDK. This will now be your default.
The Base SDK is set for 2.1. And in Xcode it does remain 2.1. The problem, though, is that the hardware version in the simulator when it runs always starts in 2.0 and I have to manually switch the simulator setting.
(pause to check something)
I thought there might be a simulator hardware version preference, but there isn't. Just the setting in the hardware menu.
As for the crash at 28 images. What's the error message? Any useful stack trace info in the console? What else in your code uses that value? Are you sure it is this loop that crashes and not some other code?
The error is TERMINATING_DUE_TO_UNCAUGHTEXCEPTION.
Up until now, that has invariably (no pun intended) meant an array out of bounds. There is a stack trace. Unfortunately, I don't really understand how to interpret them yet.
doug

Similar Messages

  • Is this true? "iTunes 7 will do CD-Text, but only with certain models of CD

    My friend told me the following. Is this true?
    "iTunes 7 will do CD-Text, but only with certain models of CD burners."

    Probably not - although this comes only from personal experiance and not any technical knowlage. I always purchase cd's based on conviniance and not brand. Also spend my life between Europe and North America and have never encontered any cd that would not work - aside occasional lemons.
    Hope this helps - just remember this is an experiance based reply.

  • "Communication Error" only with certain friends with VideoChat

    My video chat works with most of my buddies on iChat but with certain people it always fails. we both receive a "communication error" whenever we try to connect with each other. help please!

    Hi All,
    On my MacBook Pro which runs 10.6.4 I have iChat > Preferences > Video Section > Bandwidth Limit set to 500kbps
    This is because iChat 5 "Sees" and uses the Internet connection differently from earlier versions.
    On Leopard and earlier go to System Preferences > Quicktime > Streaming and set the drop down to 1.5Mbps (T1/Intranet/LAN)
    iChat will need to be restarted to "see" the new speed.
    This will make sure iChat sees and uses as much of your Internet Connection as is possible.
    The Automatic setting Limits iChat to only 384kbps in Leopard and is read as 0 in earlier versions. The Intranet /LAN setting is also suspect in iChat 3 (Tiger)
    iChat 5 and Snow Leopard does not have this setting.
    iChat then sees and tries to use the full speed of your Internet Connection.
    The Upload speed is then the limiting factor.
    This speed may then be several times faster than a Leopard Buddy even if they have set 1.5mbps in Quicktime.
    Connection-wise iChat 5 has stepped up to modern connection speeds.
    At the iChat 5 end the only Limit you can place on it now is the aforementioned Bandwidth Limit.
    Start with all Buddies on 500kbps (having done the Quicktime thing on the Leopard Buddies).
    Even if some buddies do not have 500kbps as an upload it will bring everybody into a smaller window connection speed-wise and iChat is more likely to be successful.
    Also check the Snow Leopard Firewall Settings
    System Preferences > Security > Firewall
    If On then check the Advanced Button is allowing Signed apps and that iChat is in the List.
    9:16 PM Monday; June 21, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Unique prob - often when I R-click a link in a page, FF goes "Not Resp" for up to 2 min - S/times crashes, or Re Starts with stalled tab set last on task bar.

    Unique prob - often when I Right-click a link in a page, FF goes "Not Resp" for up to 2 mins, then most often Re Starts with the stalled tab set (of the window that I clicked in) moving to last place on the browser task bar. Roughly 1 in 5 times when it happens, FF crashes. Done copious searching here & elsewhere & it would appear this is unique, as I can't see this exact problem mentioned. I have the latest FF version & assume all add ons update at that time or auto do so, (all set to default). Have also updated to latest "flash / shock wave".

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Creating a profile":
    *https://support.mozilla.org/kb/profile-manager-create-and-remove-firefox-profiles
    *http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
    If the new profile works then you can transfer some files from an existing profile to the new profile, but be careful not to copy corrupted files.
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See also:
    *http://kb.mozillazine.org/Firefox_crashes
    *https://support.mozilla.org/kb/Firefox+crashes
    If you have submitted crash reports then please post the IDs of one or more crash reports that have this format:
    *bp-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    You can find the IDs of the submitted crash reports on the <i>about:crashes</i> page.
    *You can open the <b>about:crashes</b> page via the location bar, like you open a website.
    See:
    *http://kb.mozillazine.org/Mozilla_Crash_Reporter
    *https://support.mozilla.org/kb/Mozilla+Crash+Reporter

  • Resizing of the navegation and search bars seems to work only with the default set of icons.

    Unless the default set is restored, the double-headed arrows do not appear.

    Do you happen to have Dial Assist on? This is in Settings>Phone. This is what helps the phone identify international numbers when dialing, based on location. See if turning that off/on makes a difference. Unless you are making a number of international calls, I believe this can be left off. See the User Guide http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf  Page 49 has info regarding Dial Assist.

  • Photoshop CS4 and graphic cards. Can cause crashing?

    Since upgrading to CS4 I seem to have increased crashing.
    Here are my system specs.
    Mac 2 x 2.66 GHz Dual-Core Intel Xeon
    9 GB of Ram
    250 GB internal dedicated scratch disc
    NVDIA GeForce 7300 GT with 256 VRAM
    After having endless techs look at my machine and upgrading everything. I am beginning to suspect the graphics card.
    With OpenGL can a underperforming video card cause crashing in photoshop especially with massive file sizes ( multilayered CMYK poster sized files the can exceed 7 GB)?

    Did you install the 11.0.1 update?
    Is your OS up to date with patches?
    Have you tried disabling OpenGL in preferences to avoid using the GPU/Graphics card?

  • Problems with certain routers

    I've had my Macbook for nearly 2 years now, but there is one problem that i still haven't been able to solve (or perhaps i am too stupid to) but when trying to connect to certain wireless routers, i get the option to connect to the network when i click on the airport tab, but when i type in the password it keeps telling me to try again. Its only with certain networks, e.g. certain friends houses and my parents, but my iPod touch connects perfectly fine. Any answers?

    It would be helpful to know what kind of encryption the router is using. If it is WEP try using the whole hex key as opposed to the shorter passkey. I never have luck using the passkey option. I don't know if this is your problem or not but I figured I might as well suggest it. Good luck

  • Why this error message with certain texts?

    Why do i get this error message only with certain texts?  I have entered only a ten digit number, have deleted conversations and resent messages and still?

    Oh, the error message is "
    error invalid number please re-send using valid 10 digit mobile number or valid short code."

  • My Safari keeps crashing and coming up with an error that says CrystalDVDto.png caused Safari to quit unexpectedly.  Any suggestions on how to resolve this issue?

    My safari just started crashing and coming up with an error that says CrystalDVDTo.png forced Safari to quit unexpectedly. I am not sure what to do or even what this is.  I have done various searches for this plug-in but cannot come up with much.  I went to Help>Installed Plug-ins and nothing appeared.  What can I do?

    You’ve been infected with the “Flashback” malware. See this Apple support document:
    About Flashback malware
    Back up all data, if you haven't already done so.
    Select  ▹ Software Update to install the latest Java update, as well as any other updates available for your system. That should clear the infection.
    Change every Internet password you have, starting with banking passwords. Check all financial accounts for unauthorized transactions. Take this step only after you’ve secured your system in the preceding step, not before.

  • Crash on saving file with fix but what was the cause?

    I recently encountered a problem that cost me several hours. I'm posting my story in case someone else encounters it and also in the hope that someone might have an insight into the cause.
    For no apparent reason, Frame began crashing on attempting to save a particular chapter file in a book. The file has several anchored frames (floating, anchored at top of column) and a cross reference to each. All of the anchored frames, their contents, and cross references had been in the file for many months with no problem.
    Various experiments isolated the problem to one of the anchored frames. Deleting the frame stopped the crashes but wasn't much of a fix because I needed the frame. Eventually I found that moving the anchor/link for the frame to a different paragraph eliminated the crashes.
    I'm using Frame 7.2p158 on Windows XP SP3. For what it's worth, exporting to MIF and back to Frame didn't help, nor did deleting and recreating the anchored frame in the same location.
    Jan Axelson

    Great sleuthing to narrow it down to a specific anchored frame! A few questions:
    What kind of content was in the anchored frames? was it for example a graphic copied into the frame, were there OLE (linked) objects, or was it a referenced graphic file, or ?? What setting do you have for File > Preferences "Save FrameImage with Imported Graphics"?
    Also, how much RAM do you have on your system? Do you often have other apps open when you work in FM, e.g. MS Office apps, or Photoshop or whatever?
    Years ago I recall having a problem with anchored frames seeming to cause crashes, it was as if FM was reaching some internal limit and at some point it just went "kablooie". I'm pretty certain that getting more RAM was the definitive solution in my case.

  • Compressor crashes only with markers...

    I've already found a workaround for this issue but I would love to figure out why compressor crashes whenever I try to compress a file with chapter markers. Here's what's happening: I export my DV sequence as a self-contained .mov w/o markers and then use compressor to compress to mpeg-2 to be sent to DVD SP. Everything is fine EXCEPT I have no markers when I go into DVD SP...ok. If I export the same sequence w/markers, when I submit to compressor, the compression process fails every time. So now I have to bring the self-contained .mov w markers into DVD SP, drop it into the timeline, so the markers are set on the timeline, then delete the audio and video from the timeline, so that I can drop the properly compressed mpeg-2 files on the timeline. It works, it's a few more steps, but it's a "workaround" and they sit like a thorn in my side. Any thoughts?

    Misfit138 wrote:
    AriciU wrote:I dont have either .mozilla.bak or mozilla.bak. I've moved profiles.ini and firefox started without any bookmarks or options that i set but it still froze / closed when i tryed to bookmark a page
    No, you must move your ~/.mozilla file. Your ~/.mozilla file is hidden, but that won't stop you. From a terminal, do what Shining recommended:
    mv ~/.mozilla ~/.mozilla.bak
    This is renaming (with the mv or move command) /home/yourusername/.mozilla to /home/yourusername/.mozilla.bak
    That way, when you start Mozilla Firefox, your configuration files (in ~/.mozilla) will be missing, so Firefox will create new ones.
    I think moving profiles.ini is also alright, since that file contains the profile name. So moving it should effectively disable the current profile and start with a fresh one, which is always a good thing to check (not only with mozilla apps btw ).
    And restoring it should enable it back.
    I think I still prefer working on the ~/.mozilla level as I indeed suggested, but I suppose it's just a matter of preference.
    @AriciU
    Which arch are you using (x86, x86_64, .. ) ?
    Did you try googling for that issue ?
    You could also check firefox bugzilla.

  • Premiere Pro CC 8.2 Crashes only with multicamera sequences

    After reading all complaints about Crashing, I have to say that I'm very pleased with This version performance, The blue icons Look great.
    The software crashes when Multicamera sequences are set to render, and choosing H264 Blu-ray or Quick Time Gopro, in others like Blu-ray MPG2 there is not problem
    However I prefer the two codecs with trouble. Also FOUND A WORK AROUND, Is creating the Multicamera sequence, erasing it and using the resulting see in Time line sequence,
    and then making the cuts manually, That way it does not crash

    I too have problems with audio on CS6.05, I wanted to route my audio thru my digi003 interface, but no avail., tried it on my Presonus light pipe, nada. I have a matrox mojito max and tried to download using it;s vetura capture software, still dropouts. I then went to cineform.com and downloaded the free Cineform Decoder Codec under the downloads file and used it, No more dropouts as of date when using this codec. Its listed as Gopro Cineform 4k/3D/HD codec.
    http://cineform.com/gopro-cineform-decoder

  • Adobe Premiere CC is crashing while exporting to AME, but only with Audio effects on tracks...

    Hi everyone,
    I've had ZERO issues with Adobe CC up until this past weekend.
    I built a new PC (i7 5960x, X99 Deluxe MOBO, 16 GB DDR4 Ram, Windows 8.1) and I'm having strange issues while exporting from Adobe Premiere.
    The export box comes up fine but when I send it to the Adobe Media Encoder Queue, a white box comes up and hangs Premiere.
    I tried reinstalling both Premiere and AME, but that didn't help. I decided to take off all of my audio plugins from all of the tracks and it seems to work consistently.
    I've never had this problem in the past.
    It even hangs/freezes when I have Adobe stock plugins on (Radio Leveler preset single-band compressor as an example).
    I had intermittent success while holding the SHIFT key while launching AME, then doing the export (with audio plugins), but it's not ideal.
    Can anybody help?
    Edit: All updates are installed.

    I have the same problem and it recurs with successive versions of the software that your subscribers are beta testing for you, Adobe Premiere CC. Please rectify.

  • Crashes and read-only file systems

    Notice: I apolgize for the long post, I've tried to be as thorough as possible.  I have searched everywhere for possible solutions, but things I've found end up being temporary workarounds or don't apply to my situation.  Any help, even as simple as, "have you checked out XYZ log, it's hidden here", would be greatly appreciated.  Thanks
    I'm not sure what exactly caused the issues below, but they did start to happen within a day of running pacman -Syu.  I hadn't run that since I first installed Arch on December 2nd of this year.
    Setup:
    Thinkpad 2436CTO
    UEFI/GPT
    SSD drive
    Partitions: UEFISYS, Boot, LVM
    The LVM is encrypted and is broken up as: /root, /var, /usr, /tmp, /home
    All LVM file systems are EXT4 (used to have /var and /tmp as ReiserFS)
    The first sign that something was wrong was gnome freezing.  Gnome would then crash and I'd get booted back to the shell with all filesystems mounted as read-only.  I started having the same issues as this OP:
    https://bbs.archlinux.org/viewtopic.php?id=150704
    At the time, I had /var and /tmp as ReiserFS, and would also get reiserfs_read_locked_inode errors.
    When shutting down (even during non-crashed sessions) I would notice this during shutdown:
    Failed unmounting /var
    Failed unmounting /usr
    Followed by a ton of these:
    device-mapper: remove ioctl on <my LVM group> failed: Device or resource busy
    Nother of these errors had ever appeared before.
    After hours of looking for solutions (and not finding any that worked) I was convinced (without any proof) that my Reiser file systems were corrupt and so I reformatted my entire SSD and started anew - not the Arch way, I know   I set all logical volumes as EXT4.
    After started anew, I noticed
    device-mapper: remove ioctl on LVM_SysGroup failed: Device or resource busy
    was still showing up, even with just a stock Arch setup (maybe even when powering off via Arch install ISO, don't remember).  After a lot of searching, I found that most people judged it a harmless error, so I ignored it and continued setting up Arch.
    I set up Gnome and a basic LAMP server, and everything seemed to work for a couple of hours.  Soon after, I got the same old issues back.  The System-journald issue came back and per the workaround on https://bbs.archlinux.org/viewtopic.php?id=150704 and a couple other places, I rotated the journals and stopped journald from saving to storage.  That seemed to stop THOSE errors from at least overwhelming the shell, but I would still get screen freezes, crashes, and read-only file systems.
    I had to force the laptop to power off, since poweroff/reboot/halt commands weren't working (would get errors regarding the filesystems mounted as read-only).
    I utilized all disk checking functions possible.  From running the tests (SMART test included) that came as part of my laptop's BIOS to full blown fsck.  All tests showed the drive was working fine, and Fsck would show everything was either clean, or
    Clearing orphaned inode ## (uid=89, gid=89, mode=0100600, size=###
    Free blocks count wrong (###, counted=###)
    Which I would opt to fix.  Nothing serious, though.
    I could safely boot back into Arch and use the system fine until the system decides to freeze/crash and do the above all over again.
    The sure way of recreating this for me is to run a cron job on a local site I'm developing. After a brief screen freeze (mouse still moveable but everything is otherwise unreponsive) I'll systemctl status mysqld.service and notice that mysqld went down.
    It seems that it's at this point my file systems are mounted as read only, as trying to do virtually anything results in:
    unable to open /var/db/sudo/...: Read-only file system
    After some time, X/Gnome crashes and I get sent back to shell with
    ERROR: file_stream_metrics.cc(37)
    RecordFileError() err = 30 source = 1 record = 0
    Server terminated successfully (0)
    Closing log file.or_delegate.h(30)] sqlite erro1, errno 0: SQL logic error or missing database[1157:1179
    rm: cannot remove '/tmp/serverauth.teuroEBhtl': Read-only file system
    Before all this happened, I was using Arch just fine for a few weeks.  I wiped the drives and started anew, and this still happens with just the minimal number of packages installed.
    I've searched for solutions to each individual problem, but come across a hack that doesn't solve anything (like turning off storing logs for journal), or the solution doesn't apply to my case.
    At this point, I'm so overwhelmed I'm not even sure where exactly to pick up figuring this issue out.
    Thanks in advance for any help

    Did this occur when you booted from the live/install media?
    What is your current set up? That is, partitions, filesystems etc. I take it you have not yet reinstalled X but are in the default CLI following installation?
    If turning off log storage didn't help, reenable it so that you may at least stand a chance of finding something useful.
    What services, if any, are you running? What non-default daemons etc.?
    Does it happen if you keep the machine off line?
    Have you done pacman -Syu since installation and dealt with any *.pacnew files?
    Last edited by cfr (2012-12-26 22:17:57)

  • AutoVue viewer caused crash while viewing .XSLX documents.

    We use AutoVue Desktop Deployment Viewer incorporated in our application (using JNI). When viewing XLSX (Microsoft Excel) documents on Windows 8.1 x64 system it caused crash of application. It's reproducible only on Windows 8 (8.1 or Server2012) systems. If we set compatibility mode (Windows 7) then problem isn't reproducible.

    I would recommend you log a ticket with customer support

Maybe you are looking for

  • E4200 Router my hard drive not being detect on USB after firmware upgrade

    I just updated to the new firmware 1.0.02 and the USB stop working for my External Hard WD 500GB harddrive. I had to roll back to firmware 1.0.01 for it work.  Is anybody having that problem?

  • Nvidia 8800 or ATI Radeon (x2 or x3)?

    Hi, I am new to Mac world, and about to order a Mac Pro configuration. I am not sure what to choose for the videocard...? 2x ATI Radeon 1x Nvidia 8800 or 3x ATI Radeon ...? What would be the criteria to choose the good config for my needs? If I plan

  • Facetime app is missing in ipad air

    Hi There, I'm living in Saudi Arabia & I noticed that FaceTime is missing in the settings as well as the FaceTime App Icon in the the springboard after updating the iOS. I tried to fix it by restoring my ipad air but it's fruitless. Is there any solu

  • Changing Duration of multiple clips/stills simultaneously.

    I have a boatload of stills that are all at default duration (5:00). I want to change the duration for all of them simultaneously without having to key in each one individually. Thanks, HB

  • Regarding "Generate Word document"

    Hi, I have one layout of xml publisher. In the layout I have made the page setup as Margins: Top - 0.3 Bottom - 0.3 Left - 0.5 Right - 0.5 and in Layout tab I have Header - 0.3 Footer - 0.3 I have attached this layout in the Templates tab of XML Publ