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

L'application plante quand le salon contient un message supprimé #929

Closed
NicolasBuquet opened this issue Nov 22, 2023 · 0 comments · Fixed by #930
Closed

L'application plante quand le salon contient un message supprimé #929

NicolasBuquet opened this issue Nov 22, 2023 · 0 comments · Fixed by #930
Labels
bug Something isn't working iOS P1

Comments

@NicolasBuquet
Copy link
Contributor

NicolasBuquet commented Nov 22, 2023

Depuis la prise en compte de la taille de fonte dynamique, l'application plante quand le salon contient un message supprimé.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSConcreteMutableAttributedString addAttribute:value:range:: nil value'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018048d8a8 __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x000000018008409c objc_exception_throw + 56
	2   Foundation                          0x0000000180cd96c0 -[NSConcreteMutableAttributedString attribute:atIndex:longestEffectiveRange:inRange:] + 0
	3   Tchap                               0x000000010024f880 __62-[MXKMessageTextView respectPreferredFontForAttributedString:]_block_invoke + 208
	4   Foundation                          0x0000000180cd751c -[NSAttributedString enumerateAttribute:inRange:options:usingBlock:] + 252
	5   Tchap                               0x000000010024f744 -[MXKMessageTextView respectPreferredFontForAttributedString:] + 360
	6   Tchap                               0x000000010024f550 -[MXKMessageTextView setAttributedText:] + 128
	7   Tchap                               0x00000001002776f8 -[MXKRoomBubbleTableViewCell render:] + 3124
…
)
libc++abi: terminating due to uncaught exception of type NSException

Exemple d'info de plantage :

Range : {0, 1}
AttributedString :
{
    NSAttachment = "<NSTextAttachment: 0x600002982a70>";
} Message supprimé{
    NSColor = "UIExtendedSRGBColorSpace 0.45098 0.490196 0.54902 1";
    NSFont = "<UICTFont: 0x109a1b4d0> font-family: \".SFUI-Regular\"; font-weight: normal; font-style: normal; font-size: 15.00pt";
}
@NicolasBuquet NicolasBuquet added bug Something isn't working P1 iOS labels Nov 22, 2023
@NicolasBuquet NicolasBuquet changed the title L'application plante quand le dernier caractère d'un message est un emoji L'application plante quand le salon contient un message supprimé Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working iOS P1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant