Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Crashing bugs

edited August 2012 in Beta Posts: 2,161

I seem to be getting a few more "state" crashes these days. Possibly since the ARC-upgrade, but it's hard for me to be precise about that.

What seems to happen is that when I run a project, it won't start with a "clean sheet": some stuff will be distorted or appear in the wrong place (often, but not restricted to, text). It'll then either crash or soon crash, or I can explicitly kill Codea (despite what I've read, this does actually seem to achieve something). After restarting, everything's fine again.

Presumably you (@Simeon) can see the crash logs and analyse what's going on.

Tagged:

Comments

  • SimeonSimeon Admin Mod
    Posts: 5,363

    Thanks Andrew

    I'm looking at the logs. A few seem to come from low memory warnings. A lot seem to come from the Autocomplete builder. I'm attempting to fix this — I'll put out a build soon (1.4.5) that has some changes in an attempt to lessen these crashes.

  • Posts: 1,255

    I'm seeing fairly frequent crashes when swapping back and forth between projects. Often these crashes are preceded by a severe slowdown in applications. It certainly seems like behavior you might expect of a memory leak.

  • Posts: 2,161

    I'm also still getting crashes or text/meshes not rendering. I presume that if there's anything particular you (Simeon) need to know then you'll ask.

  • Posts: 1,255

    I can't say for sure that it's related to the latest release, but the crashes are coming with disheartening, code-eating frequency.

    One other thing I've noticed is issues with autocomplete. The list of offered terms has become inconsistent. For example, I created a class called Meeting. I type M, and it doesn't appear. Me and it's still not there. Mee and Meeting suddenly pops up. Meet and it vanishes again.

  • Posts: 1,255

    One other thing that seems to be new to this release -- vanishing cursor. When I move to another line, as often as not the cursor becomes invisible.

  • Posts: 1,255

    Just installed 1.4.5(2) -- for some reason, test flight didn't notify me it was available. It seems to have solved at least the cursor and autocomplete issues. Thanks.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    Sorry about those crashes, @Mark. 1.4.5 should fix the editor crashes, but the mesh and text ones are still there.

  • Posts: 1,255

    I'm not seeing the frequent crashes with 1.4.5(2), but I am seeing corruption of the text in the editor. Special characters (parens, etc) get replaced by numbers and text in general goes wonky. Just leaving the editor and returning seems to fix it for the short term.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    That's very odd, are you in iOS 5 or iOS 6?

    iOS 6 has problems with the editor due to Apple's changes to UITextView.

  • Posts: 1,255

    5.1.1

    I'm still getting some crashes. It may just be memory space being overrun.

  • SimeonSimeon Admin Mod
    edited August 2012 Posts: 5,363

    Did you get the corrupted text pre-1.4.5?

  • Posts: 1,255

    I got mangled text in output, but this s the first time I've noticed this issue in the editor.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    Thanks @Mark, I made some changes in 1.4.5 to the editor's text handling. That must be where the problem lies.

  • Posts: 1,255

    One other thing that seems related to crashing in 1.4.5(2) -- the search feature. In particular, entering text for a search, then later bringing up the search and backspacing out that text, can bring on unexpected behavior and crash.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    Thanks @Mark, I think I can track that one down.

    I've finally found the disappearing sprite and text rendering issue. Just need to fix it.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    I think I've fixed these issues in 1.4.5 (3) — Please let me know if this is one works better for you (especially the mangled text in the editor).

  • Posts: 2,161

    The project that I'm currently working on (Harmony) crashes Codea every time I exit the program with the close() function called from within the program. I'll test some other programs in a bit.

    This is with the latest beta: 1.4.5(3).

  • Posts: 2,161

    No crash if I triple tap and click the arrow. Crashes for close() in more than one project.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    Thanks @Andrew, I forgot to test close().

  • SimeonSimeon Admin Mod
    edited August 2012 Posts: 5,363

    @Andrew any fairly simple code that can recreate the issue? I am not having much luck.

    Edit: actually I can see what's happening, just need to fix it.

  • Posts: 1,255

    Still getting editing crashes on 1.4.5(3) with files of moderate size (400-500 lines). Seems to happen more readily when I've moved back and forth between several files and is preceded by slow down and ragged scrolling.

    IsKeyboardShown() much appreciated.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    Can you let me know if the latest build (5 I think) fixes it for you? There was a fairly big bug in the editor that was fixed.

  • Posts: 1,255

    One thing that's happening consistently: hitting Run with the cursor inside a string (between the quotation marks) is an immediate crash.

  • Posts: 384

    Hi @Mark, I wonder if this is the same bug that crashes Codea when you run with the cursor after sound() ?

    I logged it as https://bitbucket.org/TwoLivesLeft/codea/issue/185/running-project-with-cursor-after-sound

  • Posts: 1,255

    Quite likely, @Fred. I'm also getting crash-on-play if the cursor is inside any set of parens, or on a line that's a comment.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    Thanks guys, looking into this now.

  • Posts: 2,161

    I'm getting a lot of the crash-on-largish-files at the moment.

  • SimeonSimeon Admin Mod
    Posts: 5,363

    According to TestFlight all the recent crashes were caused by the same issue, I believe I have fixed that issue. If it's still troublesome please let me know.

    I want to make sure 1.4.5 is solid while I start a new feature release.

  • Posts: 384

    I just took it for a quick spin and the cursor crash seems fixed. Thanks!

Sign In or Register to comment.