You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While adapting, I came across a couple instances when moving forward to the next word/phrase to adapt, where the adaptation engine would recognize a phrase from the KB and suggest the translation, BUT it would enter the phrase multiple times in the text. Screen shot:
Note the "El qui" and "la seva" phrases are added several times in the text. Looking at the database, it appears that Adapt It Mobile has added this phrase several times to the sourcephrases table, with the same ID and order (i.e., these are true duplicates).
I was able to reproduce the behavior on the same phrases on an iOS and Android simulator -- looking at the debugger, it looks like it's hitting the maximum call stack size. This is not due to recursion, but to multiple nested calls:
[Error] RangeError: Maximum call stack size exceeded.
stringify (sourcephrase.js:67)
create (sourcephrase.js:67)
sync (sourcephrase.js:107)
save (backbone-min.js:1:7260)
v (backbone-min.js:1:3358)
d (backbone-min.js:1:3083)
u (backbone-min.js:1:904)
(anonymous function) (backbone-min.js:1:2963)
set (backbone-min.js:1:5618)
save (backbone-min.js:1:6820)
unselectedAdaptation (AdaptViews.js:3042)
(etc.)
To Reproduce
Steps to reproduce the behavior:
Launch AIM and create a project from Catalan to Spanish
- Make source phrase object more asynchronous, and wait until db INSERT returns successfully before continuing.
- Add phrase boundary checks for getLargestPhrase, so it stops at punctuation, etc.
Describe the bug
While adapting, I came across a couple instances when moving forward to the next word/phrase to adapt, where the adaptation engine would recognize a phrase from the KB and suggest the translation, BUT it would enter the phrase multiple times in the text. Screen shot:
Note the "El qui" and "la seva" phrases are added several times in the text. Looking at the database, it appears that Adapt It Mobile has added this phrase several times to the sourcephrases table, with the same ID and order (i.e., these are true duplicates).
I was able to reproduce the behavior on the same phrases on an iOS and Android simulator -- looking at the debugger, it looks like it's hitting the maximum call stack size. This is not due to recursion, but to multiple nested calls:
To Reproduce
Steps to reproduce the behavior:
43_jhn_cat.usfm.txt
Additional context
Book of John in Catalan:
43_jhn_cat.usfm.txt
The text was updated successfully, but these errors were encountered: