Ad
  • Custom User Avatar

    I had the same problem, cause is some cases have less than 4 records

  • Custom User Avatar

    I struggled a bit with this kata as Swift is not my primary language, but I was able to solve it without any special crashes or errors (getting the spec right was the other thing though). So if you crash, I think the fault is somewhere in your solution.

    Following line in stack trace: 6 libswiftSwiftOnoneSupport.so 0x00007f6e6b488e40 specialized Array.subscript.getter + 124 seems to suggest you perform some out-of-bounds read access on some array, so I would check operations on arrays with unexpectedly small amount of elements (for example, result of splitting an empty string, or something like that).

  • Custom User Avatar

    I got the same error. Did you manage to solve this problem?

  • Custom User Avatar

    [Swift]
    After changing the Swift dialet a lot of times, I guess even lower than 4.0, I'va passed sample tests, but running the whole testsuite I got this error: but I don't understand whether is a test error or is an issue somewhere in the code.
    Did anybody face an issue like that ?

    fatal error: Index out of range
    Current stack trace:
    0 libswiftCore.so 0x00007f6e6b1c86b0 swift_reportError + 120
    1 libswiftCore.so 0x00007f6e6b1e30d0 _swift_stdlib_reportFatalError + 62
    2 libswiftCore.so 0x00007f6e6afdccb6 + 1186998
    3 libswiftCore.so 0x00007f6e6b13c39d + 2626461
    4 libswiftCore.so 0x00007f6e6afdccb6 + 1186998
    5 libswiftCore.so 0x00007f6e6b0f7410 specialized _fatalErrorMessage(StaticString, StaticString, file : StaticString, line : UInt, flags : UInt32) -> Never + 96
    6 libswiftSwiftOnoneSupport.so 0x00007f6e6b488e40 specialized Array.subscript.getter + 124
    7 test 0x00000000004087c3 + 34755
    8 test 0x0000000000409c89 + 40073
    9 test 0x000000000040a744 + 42820
    10 test 0x000000000040aefa + 44794
    11 test 0x0000000000409c01 + 39937
    12 test 0x000000000040ae91 + 44689
    13 libXCTest.so 0x00007f6e6b43148b + 287883
    14 libXCTest.so 0x00007f6e6b407502 + 115970
    15 libXCTest.so 0x00007f6e6b431440 + 287808
    16 test 0x000000000040549b + 21659
    17 libXCTest.so 0x00007f6e6b406b20 XCTestCase.invokeTest() -> () + 112
    18 libXCTest.so 0x00007f6e6b426cd0 specialized XCTestCase.perform(XCTestRun) -> () + 313
    19 libXCTest.so 0x00007f6e6b406a50 XCTestCase.perform(XCTestRun) -> () + 14
    20 libXCTest.so 0x00007f6e6b404520 XCTest.run() -> () + 516
    21 libXCTest.so 0x00007f6e6b427250 specialized XCTestSuite.perform(XCTestRun) -> () + 892
    22 libXCTest.so 0x00007f6e6b404b40 XCTestSuite.perform(XCTestRun) -> () + 14
    23 libXCTest.so 0x00007f6e6b404520 XCTest.run() -> () + 516
    24 libXCTest.so 0x00007f6e6b427250 specialized XCTestSuite.perform(XCTestRun) -> () + 892
    25 libXCTest.so 0x00007f6e6b427250 specialized XCTestSuite.perform(XCTestRun) -> () + 2007
    26 libXCTest.so 0x00007f6e6b404520 XCTest.run() -> () + 557
    27 test 0x0000000000404973 + 18803
    28 test 0x00000000004097da + 38874
    29 libc.so.6 0x00007f6e6913f740 __libc_start_main + 240
    30 test 0x0000000000404549 + 17737