View Issue Details

IDProjectCategoryView StatusLast Update
0002365NoesisGUIC++ SDKpublic2022-06-30 19:36
Reporternikobarli Assigned Tosfernandez  
PrioritynormalSeveritycrash 
Status resolvedResolutionfixed 
Product Version3.1.3 
Target Version3.1.6Fixed in Version3.1.6 
Summary0002365: Assertion is thrown when backspace key is pressed after a long text is entered
Description

Happens with 100% probability.
Didn't immediately crash application in Release mode, but probably causes unintended memory access.

Steps To Reproduce
  1. Run "Application Tutorial" (demo application included in Noesis package) in DEBUG mode
  2. Enter a long text (30 characters seem to sufficient, but the longer may be the better)
  3. Press Backspace key
    // Assertion is thrown -> see the attached image
Attached Files
assertion.png (137,070 bytes)   
assertion.png (137,070 bytes)   
PlatformAny

Activities

jsantos

jsantos

2022-06-27 11:41

manager   ~0008002

I am unable to reproduce this. Could you please, paste the exact text you are using? And if possible, the values of the vector mRuns from the function that is crashing HitTestTextPosition.

Thank you

nikobarli

nikobarli

2022-06-29 14:22

reporter   ~0008003

For example, I can reproduce it with text "123456789012345678901234567890" (30 characters).

Inside HitTestTextPosition, mGlyphs is a vector with size 29, but is indexed with idx=textPosition+1=29, which is beyond the range of mGlyphs.

mRuns is 1 element vector, please find its contents in the attached screen capture.

Thanks.

assertion2.png (199,719 bytes)   
assertion2.png (199,719 bytes)   
jsantos

jsantos

2022-06-30 12:57

manager   ~0008005

I finally reproduced it, I needed to switch to Japanese IME. Thank you, we are working on a solution.

sfernandez

sfernandez

2022-06-30 19:36

manager   ~0008006

Resolved in changeset 11464.

Issue History

Date Modified Username Field Change
2022-06-25 05:38 nikobarli New Issue
2022-06-25 05:38 nikobarli File Added: assertion.png
2022-06-27 11:38 jsantos Assigned To => jsantos
2022-06-27 11:38 jsantos Status new => assigned
2022-06-27 11:39 jsantos Assigned To jsantos =>
2022-06-27 11:39 jsantos Target Version => 3.1.6
2022-06-27 11:41 jsantos Note Added: 0008002
2022-06-27 11:41 jsantos Assigned To => jsantos
2022-06-27 11:41 jsantos Status assigned => feedback
2022-06-29 14:22 nikobarli Note Added: 0008003
2022-06-29 14:22 nikobarli File Added: assertion2.png
2022-06-29 14:22 nikobarli Status feedback => assigned
2022-06-30 12:57 jsantos Note Added: 0008005
2022-06-30 12:57 jsantos Assigned To jsantos => sfernandez
2022-06-30 19:36 sfernandez Status assigned => resolved
2022-06-30 19:36 sfernandez Resolution open => fixed
2022-06-30 19:36 sfernandez Fixed in Version => 3.1.6
2022-06-30 19:36 sfernandez Note Added: 0008006