Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHIPTool app crashes on iOS for "Enable Pairing" mode #20329

Closed
phonnakasturi-apple opened this issue Jul 5, 2022 · 1 comment · Fixed by #20439
Closed

CHIPTool app crashes on iOS for "Enable Pairing" mode #20329

phonnakasturi-apple opened this issue Jul 5, 2022 · 1 comment · Fixed by #20439
Assignees

Comments

@phonnakasturi-apple
Copy link

With SHA 770a2e2

CHIPTool app crashes on iOS for "Enable Pairing" mode

Steps to reproduce:

  1. Build first chiptool app on iOS
  2. On a command line flash the M5 device
  3. Pair the M5 board with CHIPTool iOS app via QR code or using the short pin code
  4. Build and launch 2nd chiptool app on iOS
  5. From first chiptool app, click on Enable Pairing
  6. Select "Open Pairing Window" -> the app closes at this step

Attaching the logs from M5 board + from iOS device:
M5logs-enablepairingissue.txt
iOSlogs-enablepairingissue.txt

@woody-apple
Copy link
Contributor

Possible error here:

2022-07-05 11:18:04.138050-0700  localhost CHIPTool[5987]: (Matter) [com.csa.matter:all] � [1657045084138] [5987:1096036] CHIP: [DL] Chip stack locking error at '../../../../../../../../../../../new_test/connectedhomeip/src/messaging/ExchangeContext.cpp:138'. Code is unsafe/racy
CHIP_ERROR ExchangeContext::SendMessage(Protocols::Id protocolId, uint8_t msgType, PacketBufferHandle && msgBuf,
                                        const SendFlags & sendFlags)
{
    // This is the first point all outgoing messages funnel through.  Ensure
    // that our message sends are all synchronized correctly.
    assertChipStackLockedByCurrentThread();

    bool isStandaloneAck =
        (protocolId == Protocols::SecureChannel::Id) && msgType == to_underlying(Protocols::SecureChannel::MsgType::StandaloneAck);
    if (!isStandaloneAck)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants