Alessandro71 Well-Known Member Licensed User Longtime User Sep 11, 2025 #1 is there a size limit on CreateMap? as soon as I cross element number 354, the app crashes with Caused by: java.lang.VerifyError: Verifier rejected class xxx: java.lang.String splitting the Map in two, and then merging them, seem to solve the issue
is there a size limit on CreateMap? as soon as I cross element number 354, the app crashes with Caused by: java.lang.VerifyError: Verifier rejected class xxx: java.lang.String splitting the Map in two, and then merging them, seem to solve the issue
LucaMs Expert Licensed User Longtime User Sep 11, 2025 #2 Alessandro71 said: is there a size limit on CreateMap? as soon as I cross element number 354, the app crashes with Caused by: java.lang.VerifyError: Verifier rejected class xxx: java.lang.String splitting the Map in two, and then merging them, seem to solve the issue Click to expand... 354 items is really too few; the content of each could be "heavy" or "large," but you'd get a different error message, "out of memory." Check the data types. Upvote 0
Alessandro71 said: is there a size limit on CreateMap? as soon as I cross element number 354, the app crashes with Caused by: java.lang.VerifyError: Verifier rejected class xxx: java.lang.String splitting the Map in two, and then merging them, seem to solve the issue Click to expand... 354 items is really too few; the content of each could be "heavy" or "large," but you'd get a different error message, "out of memory." Check the data types.
Alessandro71 Well-Known Member Licensed User Longtime User Sep 11, 2025 #3 LucaMs said: 354 items is really too few; the content of each could be "heavy" or "large," but you'd get a different error message, "out of memory." Check the data types. Click to expand... it'a a Map of String: Double about 6KB of text and 800 Doubles it should be way under 64K Upvote 0
LucaMs said: 354 items is really too few; the content of each could be "heavy" or "large," but you'd get a different error message, "out of memory." Check the data types. Click to expand... it'a a Map of String: Double about 6KB of text and 800 Doubles it should be way under 64K
LucaMs Expert Licensed User Longtime User Sep 11, 2025 #4 Put a breakpoint on YourMap.Put(... and from that point continue the execution of the project step by step (F8 key) in debug mode. Upvote 0
Put a breakpoint on YourMap.Put(... and from that point continue the execution of the project step by step (F8 key) in debug mode.
Alessandro71 Well-Known Member Licensed User Longtime User Sep 11, 2025 #5 I just solved by splitting in 2 CreateMap statements, and then B4XCollections.MergeMaps I'm puzzled if this same limit applies to iOS also, where just adding a syntax-correct line to an already working statement can trigger a runtime crash with no warnings in the IDE. It won't be nice to discover it in the wild after a public release Upvote 0
I just solved by splitting in 2 CreateMap statements, and then B4XCollections.MergeMaps I'm puzzled if this same limit applies to iOS also, where just adding a syntax-correct line to an already working statement can trigger a runtime crash with no warnings in the IDE. It won't be nice to discover it in the wild after a public release
LucaMs Expert Licensed User Longtime User Sep 11, 2025 #6 Ma io non credo affatto che la colpa sia della dimensione della map! But I don't think the size of the map is to blame at all! Upvote 0
Ma io non credo affatto che la colpa sia della dimensione della map! But I don't think the size of the map is to blame at all!
LucaMs Expert Licensed User Longtime User Sep 11, 2025 #7 B4X: Copy If StaPerCaricareIl354°Elemento Then Log("Stop") <--- BreakPoint qui End If Poi premi F8; che succede? Quale SARA' la chiave e quale il valore? Then press F8; what happens? What WILL be the key and what will be the value? Upvote 0
B4X: Copy If StaPerCaricareIl354°Elemento Then Log("Stop") <--- BreakPoint qui End If Poi premi F8; che succede? Quale SARA' la chiave e quale il valore? Then press F8; what happens? What WILL be the key and what will be the value?
Alessandro71 Well-Known Member Licensed User Longtime User Sep 12, 2025 #8 Issue happens in Release mode. I already experienced that Debug mode behave differently in some cases, because of added code/data from the debugger itself (for example on try/catch statements). Since issue is solved by splitting (and probably I will implement data loading from a DB at a later date), I'm not going to invest any more time on this. Thank you anyway Upvote 0
Issue happens in Release mode. I already experienced that Debug mode behave differently in some cases, because of added code/data from the debugger itself (for example on try/catch statements). Since issue is solved by splitting (and probably I will implement data loading from a DB at a later date), I'm not going to invest any more time on this. Thank you anyway
Erel B4X founder Staff member Licensed User Longtime User Sep 14, 2025 #9 There shouldn't be a size limit. If it happens again, please post full error message from the logs and the relevant code if possible. Upvote 0
There shouldn't be a size limit. If it happens again, please post full error message from the logs and the relevant code if possible.