Android LazyColumn OutOfMemoryErrorAndroid

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Android LazyColumn OutOfMemoryError

Сообщение Anonymous »

Android LazyColumn OutOfMemoryError
Чтобы отобразить все стили шрифтов в папке шрифтов(

Код: Выделить всё

res/font
) с LazyColumn:

папка шрифтов(

Код: Выделить всё

res/font
) содержит много файлов ttf.

Код: Выделить всё

@Composable
fun TextTtfLearn(){
val context: Context = LocalContext.current // It's not the context reason
val fontList: MutableList = mutableListOf()
val fields: Array = R.font::class.java.fields
try {
for (field in fields){
if (java.lang.reflect.Modifier.isStatic(field.modifiers)){
val fontId = field.getInt(null)
val fontName = field.name
fontList.add(FontDate(fontId = fontId, fontName = fontName))
}
}
}catch (e: Exception){
Log.e(TAG, "TextTtfLearn: ", e)
}
fontList.forEach{ fontDate: FontDate ->
Log.i(TAG, "TextTtfLearn -> fontDate: $fontDate")
}
LazyColumn{
items(fontList){ fontDate: FontDate ->
Text(
text = "Hello World!fontName: ${fontDate.fontName}",
fontFamily = FontFamily(
Font(fontDate.fontId, FontWeight.W700)
),
modifier = Modifier.clickable(
onClick = {
Toast.makeText(context,
"click", Toast.LENGTH_SHORT).show()
},
indication = null,
interactionSource = MutableInteractionSource()
),
)
}
}
}
следующим образом:

Код: Выделить всё

2024-03-31 10:35:38.347 28832-28851 System                  textlearn                   W  A resource failed to call close.
2024-03-31 10:35:38.347 28832-28851 System                  textlearn                   W  A resource failed to call close.
2024-03-31 10:35:40.186 28832-28934 ProfileInstaller        textlearn                   D  Installing profile for edu.tyut.textlearn
2024-03-31 10:35:41.156 28832-28849 .textlear               textlearn                   I  Clamp target GC heap from 387MB to 384MB
2024-03-31 10:35:41.396 28832-28832 .textlear               textlearn                   I  Starting a blocking GC Alloc
2024-03-31 10:35:41.396 28832-28832 .textlear               textlearn                   I  Starting a blocking GC Alloc
2024-03-31 10:35:41.402 28832-28832 .textlear               textlearn                   I  Alloc young concurrent copying GC freed 2977(145KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 381MB/384MB/384MB, paused 23us total 6.033ms
2024-03-31 10:35:41.402 28832-28832 .textlear               textlearn                   I  Starting a blocking GC Alloc
2024-03-31 10:35:41.415 28832-28832 .textlear               textlearn                   I  Clamp target GC heap from 405MB to 384MB
2024-03-31 10:35:41.415 28832-28832 .textlear               textlearn                   I  Alloc concurrent copying GC freed 373(27KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 381MB/384MB/384MB, paused 20us total 12.954ms
2024-03-31 10:35:41.415 28832-28832 .textlear               textlearn                   I  Forcing collection of SoftReferences for 12MB allocation
2024-03-31 10:35:41.415 28832-28832 .textlear               textlearn                   I  Starting a blocking GC Alloc
2024-03-31 10:35:41.428 28832-28832 .textlear               textlearn                   I  Clamp target GC heap from 404MB to 384MB
2024-03-31 10:35:41.428 28832-28832 .textlear               textlearn                   I  Alloc concurrent copying GC freed 9236(392KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 380MB/384MB/384MB, paused 14us total 12.769ms
2024-03-31 10:35:41.428 28832-28832 .textlear               textlearn                   W  Throwing OutOfMemoryError "Failed to allocate a 13457183 byte allocation with 3324264 free bytes and 3246KB until OOM, target footprint 402653184, growth limit 402653184" (VmSize 5653948 kB)
2024-03-31 10:35:41.428 28832-28832 .textlear               textlearn                   I  Starting a blocking GC Alloc
2024-03-31 10:35:41.428 28832-28832 chatty                  textlearn                   I  uid=10631(edu.tyut.textlearn) identical 1 line
2024-03-31 10:35:41.432 28832-28832 .textlear               textlearn                   I  Starting a blocking GC Alloc
2024-03-31 10:35:41.444 28832-28832 .textlear               textlearn                   I  Clamp target GC heap from 404MB to 384MB
2024-03-31 10:35:41.444 28832-28832 .textlear               textlearn                   I  Alloc concurrent copying GC freed 3(16KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 380MB/384MB/384MB, paused 18us total 12.010ms
2024-03-31 10:35:41.444 28832-28832 .textlear               textlearn                   I  Forcing collection of SoftReferences for 12MB allocation
2024-03-31 10:35:41.444 28832-28832 .textlear               textlearn                   I  Starting a blocking GC Alloc
2024-03-31 10:35:41.456 28832-28832 .textlear               textlearn                   I  Clamp target GC heap from 404MB to 384MB
2024-03-31 10:35:41.456 28832-28832 .textlear               textlearn                   I  Alloc concurrent copying GC freed 8(16KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 380MB/384MB/384MB, paused 14us total 12.410ms
2024-03-31 10:35:41.457 28832-28832 .textlear               textlearn                   W  Throwing OutOfMemoryError "Failed to allocate a 13457183 byte allocation with 3324328 free bytes and 3246KB until OOM, target footprint 402653184, growth limit 402653184"  (VmSize 5653948 kB)
2024-03-31 10:35:41.462 28832-28832 idRuntime               textlearn                   E  FATAL EXCEPTION: main
Process: edu.tyut.textlearn, PID: 28832
java.lang.OutOfMemoryError:  Failed to allocate a 13457183 byte allocation with 3324328 free bytes and 3246KB until OOM, target footprint 402653184,  g r o w t h   l i m i t   4 0 2 6 5 3 1 8 4 < b r   / >                                                                                                                                                                                                                 a t   d a l v i k . s y s t e m . V M R u n t i m e . n e w N o n M o v a b l e A r r a y ( N a t i v e   M e t h o d ) < b r   / >                                                                                                                                                                                                                 a t   j a v a . n i o . D i r e c t B y t e B u f f e r $ M e m o r y R e f . & l t ; i n i t & g t ; ( D i r e c t B y t e B u f f e r . j a v a : 7 0 ) < b r   / >                                                                                                                                                                                                                 a t   j a v a . n i o . B y t e B u f f e r . a l l o c a t e D i r e c t ( B y t e B u f f e r . j a v a : 2 5 8 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d . g r a p h i c s . f o n t s . F o n t $ B u i l d e r . c r e a t e B u f f e r ( F o n t . j a v a : 2 4 8 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d . g r a p h i c s . f o n t s . F o n t $ B u i l d e r . & l t ; i n i t & g t ; ( F o n t . j a v a : 1 7 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d . g r a p h i c s . T y p e f a c e $ B u i l d e r . & l t ; i n i t & g t ; ( T y p e f a c e . j a v a : 4 4 1 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d . c o n t e n t . r e s . R e s o u r c e s I m p l . l o a d F o n t ( R e s o u r c e s I m p l . j a v a : 1 0 9 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d . c o n t e n t . r e s . R e s o u r c e s . g e t F o n t ( R e s o u r c e s . j a v a : 4 7 8 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . R e s o u r c e F o n t H e l p e r . l o a d ( A n d r o i d F o n t L o a d e r . a n d r o i d . k t : 8 8 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . A n d r o i d F o n t L o a d e r _ a n d r o i d K t . l o a d ( A n d r o i d F o n t L o a d e r . a n d r o i d . k t : 7 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . A n d r o i d F o n t L o a d e r _ a n d r o i d K t . a c c e s s $ l o a d ( A n d r o i d F o n t L o a d e r . a n d r o i d . k t : 1 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . A n d r o i d F o n t L o a d e r . l o a d B l o c k i n g ( A n d r o i d F o n t L o a d e r . a n d r o i d . k t : 4 7 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . A n d r o i d F o n t L o a d e r . l o a d B l o c k i n g ( A n d r o i d F o n t L o a d e r . a n d r o i d . k t : 3 7 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . F o n t L i s t F o n t F a m i l y T y p e f a c e A d a p t e r K t . f i r s t I m m e d i a t e l y A v a i l a b l e ( F o n t L i s t F o n t F a m i l y T y p e f a c e A d a p t e r . k t : 1 8 7 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . F o n t L i s t F o n t F a m i l y T y p e f a c e A d a p t e r K t . a c c e s s $ f i r s t I m m e d i a t e l y A v a i l a b l e ( F o n t L i s t F o n t F a m i l y T y p e f a c e A d a p t e r . k t : 1 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . F o n t L i s t F o n t F a m i l y T y p e f a c e A d a p t e r . r e s o l v e ( F o n t L i s t F o n t F a m i l y T y p e f a c e A d a p t e r . k t : 1 2 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . F o n t F a m i l y R e s o l v e r I m p l $ r e s o l v e $ r e s u l t $ 1 . i n v o k e ( F o n t F a m i l y R e s o l v e r . k t : 9 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . F o n t F a m i l y R e s o l v e r I m p l $ r e s o l v e $ r e s u l t $ 1 . i n v o k e ( F o n t F a m i l y R e s o l v e r . k t : 9 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . T y p e f a c e R e q u e s t C a c h e . r u n C a c h e d ( F o n t F a m i l y R e s o l v e r . k t : 1 8 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . F o n t F a m i l y R e s o l v e r I m p l . r e s o l v e ( F o n t F a m i l y R e s o l v e r . k t : 9 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . f o n t . F o n t F a m i l y R e s o l v e r I m p l . r e s o l v e - D P c q O E Q ( F o n t F a m i l y R e s o l v e r . k t : 7 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . p l a t f o r m . A n d r o i d P a r a g r a p h I n t r i n s i c s $ r e s o l v e T y p e f a c e $ 1 . i n v o k e - D P c q O E Q ( A n d r o i d P a r a g r a p h I n t r i n s i c s . a n d r o i d . k t : 9 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . p l a t f o r m . A n d r o i d P a r a g r a p h I n t r i n s i c s $ r e s o l v e T y p e f a c e $ 1 . i n v o k e ( A n d r o i d P a r a g r a p h I n t r i n s i c s . a n d r o i d . k t : 9 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . p l a t f o r m . e x t e n s i o n s . T e x t P a i n t E x t e n s i o n s _ a n d r o i d K t . a p p l y S p a n S t y l e ( T e x t P a i n t E x t e n s i o n s . a n d r o i d . k t : 6 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . p l a t f o r m . A n d r o i d P a r a g r a p h I n t r i n s i c s . & l t ; i n i t & g t ; ( A n d r o i d P a r a g r a p h I n t r i n s i c s . a n d r o i d . k t : 1 0 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . p l a t f o r m . A n d r o i d P a r a g r a p h I n t r i n s i c s _ a n d r o i d K t . A c t u a l P a r a g r a p h I n t r i n s i c s ( A n d r o i d P a r a g r a p h I n t r i n s i c s . a n d r o i d . k t : 1 8 4 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . P a r a g r a p h I n t r i n s i c s K t . P a r a g r a p h I n t r i n s i c s ( P a r a g r a p h I n t r i n s i c s . k t : 9 8 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . t e x t . M u l t i P a r a g r a p h I n t r i n s i c s . & l t ; i n i t & g t ; ( M u l t i P a r a g r a p h I n t r i n s i c s . k t : 1 0 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . t e x t . m o d i f i e r s . M u l t i P a r a g r a p h L a y o u t C a c h e . s e t L a y o u t D i r e c t i o n ( M u l t i P a r a g r a p h L a y o u t C a c h e . k t : 2 4 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . t e x t . m o d i f i e r s . M u l t i P a r a g r a p h L a y o u t C a c h e . l a y o u t T e x t - K 4 0 F 9 x A ( M u l t i P a r a g r a p h L a y o u t C a c h e . k t : 2 7 1 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . t e x t . m o d i f i e r s . M u l t i P a r a g r a p h L a y o u t C a c h e . l a y o u t W i t h C o n s t r a i n t s - K 4 0 F 9 x A ( M u l t i P a r a g r a p h L a y o u t C a c h e . k t : 1 5 8 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . t e x t . m o d i f i e r s . T e x t A n n o t a t e d S t r i n g N o d e . m e a s u r e - 3 p 2 s 8 0 s ( T e x t A n n o t a t e d S t r i n g N o d e . k t : 2 6 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t M o d i f i e r N o d e C o o r d i n a t o r . m e a s u r e - B R T r y o 0 ( L a y o u t M o d i f i e r N o d e C o o r d i n a t o r . k t : 1 1 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . g r a p h i c s . S i m p l e G r a p h i c s L a y e r M o d i f i e r . m e a s u r e - 3 p 2 s 8 0 s ( G r a p h i c s L a y e r M o d i f i e r . k t : 6 4 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t M o d i f i e r N o d e C o o r d i n a t o r . m e a s u r e - B R T r y o 0 ( L a y o u t M o d i f i e r N o d e C o o r d i n a t o r . k t : 1 1 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e $ p e r f o r m M e a s u r e $ 2 . i n v o k e ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 1 4 9 9 ) < b r   / > 2 0 2 4 - 0 3 - 3 1   1 0 : 3 5 : 4 1 . 4 6 2   2 8 8 3 2 - 2 8 8 3 2   A n d r o i d R u n t i m e                                       t e x t l e a r n                                       E             a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e $ p e r f o r m M e a s u r e $ 2 . i n v o k e ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 1 4 9 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . r u n t i m e . s n a p s h o t s . S n a p s h o t $ C o m p a n i o n . o b s e r v e ( S n a p s h o t . k t : 2 2 9 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . r u n t i m e . s n a p s h o t s . S n a p s h o t S t a t e O b s e r v e r $ O b s e r v e d S c o p e M a p . o b s e r v e ( S n a p s h o t S t a t e O b s e r v e r . k t : 4 6 7 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . r u n t i m e . s n a p s h o t s . S n a p s h o t S t a t e O b s e r v e r . o b s e r v e R e a d s ( S n a p s h o t S t a t e O b s e r v e r . k t : 2 3 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . O w n e r S n a p s h o t O b s e r v e r . o b s e r v e R e a d s $ u i _ r e l e a s e ( O w n e r S n a p s h o t O b s e r v e r . k t : 1 3 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . O w n e r S n a p s h o t O b s e r v e r . o b s e r v e M e a s u r e S n a p s h o t R e a d s $ u i _ r e l e a s e ( O w n e r S n a p s h o t O b s e r v e r . k t : 1 1 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e . p e r f o r m M e a s u r e - B R T r y o 0 ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 1 4 9 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e . a c c e s s $ p e r f o r m M e a s u r e - B R T r y o 0 ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 3 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e $ M e a s u r e P a s s D e l e g a t e . r e m e a s u r e - B R T r y o 0 ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 5 6 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e $ M e a s u r e P a s s D e l e g a t e . m e a s u r e - B R T r y o 0 ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 5 3 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . l a y o u t . L a z y L a y o u t M e a s u r e S c o p e I m p l . m e a s u r e - 0 k L q B q w ( L a z y L a y o u t M e a s u r e S c o p e . k t : 1 2 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . L a z y L i s t M e a s u r e d I t e m P r o v i d e r . g e t A n d M e a s u r e ( L a z y L i s t M e a s u r e d I t e m P r o v i d e r . k t : 4 8 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . L a z y L i s t M e a s u r e K t . m e a s u r e L a z y L i s t - C D 5 n m q 0 ( L a z y L i s t M e a s u r e . k t : 1 2 4 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . L a z y L i s t K t $ r e m e m b e r L a z y L i s t M e a s u r e P o l i c y $ 1 $ 1 . i n v o k e - 0 k L q B q w ( L a z y L i s t . k t : 3 0 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . L a z y L i s t K t $ r e m e m b e r L a z y L i s t M e a s u r e P o l i c y $ 1 $ 1 . i n v o k e ( L a z y L i s t . k t : 1 8 4 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . l a y o u t . L a z y L a y o u t K t $ L a z y L a y o u t $ 3 $ 2 $ 1 . i n v o k e - 0 k L q B q w ( L a z y L a y o u t . k t : 8 7 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . l a y o u t . L a z y L a y o u t K t $ L a z y L a y o u t $ 3 $ 2 $ 1 . i n v o k e ( L a z y L a y o u t . k t : 8 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . l a y o u t . L a y o u t N o d e S u b c o m p o s i t i o n s S t a t e $ c r e a t e M e a s u r e P o l i c y $ 1 . m e a s u r e - 3 p 2 s 8 0 s ( S u b c o m p o s e L a y o u t . k t : 8 6 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . I n n e r N o d e C o o r d i n a t o r . m e a s u r e - B R T r y o 0 ( I n n e r N o d e C o o r d i n a t o r . k t : 1 2 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . g r a p h i c s . S i m p l e G r a p h i c s L a y e r M o d i f i e r . m e a s u r e - 3 p 2 s 8 0 s ( G r a p h i c s L a y e r M o d i f i e r . k t : 6 4 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t M o d i f i e r N o d e C o o r d i n a t o r . m e a s u r e - B R T r y o 0 ( L a y o u t M o d i f i e r N o d e C o o r d i n a t o r . k t : 1 1 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e $ p e r f o r m M e a s u r e $ 2 . i n v o k e ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 1 4 9 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e $ p e r f o r m M e a s u r e $ 2 . i n v o k e ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 1 4 9 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . r u n t i m e . s n a p s h o t s . S n a p s h o t $ C o m p a n i o n . o b s e r v e ( S n a p s h o t . k t : 2 2 9 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . r u n t i m e . s n a p s h o t s . S n a p s h o t S t a t e O b s e r v e r $ O b s e r v e d S c o p e M a p . o b s e r v e ( S n a p s h o t S t a t e O b s e r v e r . k t : 4 6 7 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . r u n t i m e . s n a p s h o t s . S n a p s h o t S t a t e O b s e r v e r . o b s e r v e R e a d s ( S n a p s h o t S t a t e O b s e r v e r . k t : 2 3 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . O w n e r S n a p s h o t O b s e r v e r . o b s e r v e R e a d s $ u i _ r e l e a s e ( O w n e r S n a p s h o t O b s e r v e r . k t : 1 3 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . O w n e r S n a p s h o t O b s e r v e r . o b s e r v e M e a s u r e S n a p s h o t R e a d s $ u i _ r e l e a s e ( O w n e r S n a p s h o t O b s e r v e r . k t : 1 1 3 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e . p e r f o r m M e a s u r e - B R T r y o 0 ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 1 4 9 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e . a c c e s s $ p e r f o r m M e a s u r e - B R T r y o 0 ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 3 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e L a y o u t D e l e g a t e $ M e a s u r e P a s s D e l e g a t e . r e m e a s u r e - B R T r y o 0 ( L a y o u t N o d e L a y o u t D e l e g a t e . k t : 5 6 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e . r e m e a s u r e - _ S x 5 X l M $ u i _ r e l e a s e ( L a y o u t N o d e . k t : 1 1 4 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . M e a s u r e A n d L a y o u t D e l e g a t e . d o R e m e a s u r e - s d F A v Z A ( M e a s u r e A n d L a y o u t D e l e g a t e . k t : 3 2 1 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . M e a s u r e A n d L a y o u t D e l e g a t e . m e a s u r e A n d L a y o u t - 0 k L q B q w ( M e a s u r e A n d L a y o u t D e l e g a t e . k t : 3 8 9 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . p l a t f o r m . A n d r o i d C o m p o s e V i e w . m e a s u r e A n d L a y o u t - 0 k L q B q w ( A n d r o i d C o m p o s e V i e w . a n d r o i d . k t : 8 9 0 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . u i . n o d e . L a y o u t N o d e . f o r c e R e m e a s u r e ( L a y o u t N o d e . k t : 1 2 1 4 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . L a z y L i s t S t a t e . o n S c r o l l $ f o u n d a t i o n _ r e l e a s e ( L a z y L i s t S t a t e . k t : 3 0 1 ) < b r   / > 2 0 2 4 - 0 3 - 3 1   1 0 : 3 5 : 4 1 . 4 6 3   2 8 8 3 2 - 2 8 8 3 2   A n d r o i d R u n t i m e                                       t e x t l e a r n                                       E             a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . L a z y L i s t S t a t e $ s c r o l l a b l e S t a t e $ 1 . i n v o k e ( L a z y L i s t S t a t e . k t : 1 6 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . l a z y . L a z y L i s t S t a t e $ s c r o l l a b l e S t a t e $ 1 . i n v o k e ( L a z y L i s t S t a t e . k t : 1 6 2 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . g e s t u r e s . D e f a u l t S c r o l l a b l e S t a t e $ s c r o l l S c o p e $ 1 . s c r o l l B y ( S c r o l l a b l e S t a t e . k t : 1 6 6 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . g e s t u r e s . S c r o l l i n g L o g i c $ d i s p a t c h S c r o l l $ p e r f o r m S c r o l l $ 1 . i n v o k e - M K - H z 9 U ( S c r o l l a b l e . k t : 4 2 5 ) < b r   / >                                                                                                                                                                                                                 a t   a n d r o i d x . c o m p o s e . f o u n d a t i o n . g e s t u r e s . S c r o l l i n g L o g i c $ d i s p a t c h S c r o l l $ p e r f o r m S c r o l l $ 1 . i n v o k e ( S c r o l l a b l e . k t : 4 1 7 ) < b r   / >                                                                                                                                                                 at androidx.compose.foundation.AndroidEdgeEffectOverscrollEffect.applyToScroll-Rhakbz0(AndroidOverscroll.kt:180)
at androidx.compose.foundation.gestures.ScrollingLogic.dispatchScroll-3eAAhYA(Scrollable.kt:438)
at androidx.compose.foundation.gestures.ScrollDraggableState.dragBy(Scrollable.kt:526)
at androidx.compose.foundation.gestures.DraggableNode$pointerInputNode$1$1$1$1.invokeSuspend(Draggable.kt:311)
at androidx.compose.foundation.gestures.DraggableNode$pointerInputNode$1$1$1$1.invoke(Unknown Source:8)
at androidx.compose.foundation.gestures.DraggableNode$pointerInputNode$1$1$1$1.invoke(Unknown Source:4)
at androidx.compose.foundation.gestures.ScrollDraggableState$drag$2.invokeSuspend(Scrollable.kt:534)
at androidx.compose.foundation.gestures.ScrollDraggableState$drag$2.invoke(Unknown Source:8)
at androidx.compose.foundation.gestures.ScrollDraggableState$drag$2.invoke(Unknown Source:4)
at androidx.compose.foundation.gestures.DefaultScrollableState$scroll$2$1.invokeSuspend(ScrollableState.kt:181)
at androidx.compose.foundation.gestures.DefaultScrollableState$scroll$2$1.invoke(Unknown Source:8)
at androidx.compose.foundation.gestures.DefaultScrollableState$scroll$2$1.invoke(Unknown Source:4)
at androidx.compose.foundation.MutatorMutex$mutateWith$2.invokeSuspend(MutatorMutex.kt:173)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(AndroidUiDispatcher.android.kt:57)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:271)
at android.app.ActivityThread.main(ActivityThread.java:8305)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:992)
Suppressed:  kotlinx.coroutines.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@7df0e34, androidx.compose.runtime.BroadcastFrameClock@85145d, StandaloneCoroutine{Cancelling}@1cc31d2, AndroidUiDispatcher@58b62a3]
Как решить проблему OOM?


Подробнее здесь: https://stackoverflow.com/questions/782 ... emoryerror
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»