Crashs

414 views
Skip to first unread message

karam mohammed 1

unread,
Jul 17, 2026, 12:32:18 PMJul 17
to mementodatabase
Hi,
I'm experiencing a crash on the Android version of Memento Database. Latest
Whenever I edit  or add any field in my main library, the app immediately closes. This happens every time, making it impossible to edit lib.
Other liberies  work normally.  This library  crash even I copy  it 
Could you please help me investigate this issue?
Thank you.

Mmm

unread,
Jul 17, 2026, 1:04:49 PMJul 17
to mementodatabase
Пробуйте поочередно отключать триггеры и виджеты.
Если не выявите ошибку, отправьте шаблон библиотеки в поддержку с подробным описанием проблемы, версией программы и Андроид.

пятница, 17 июля 2026 г. в 19:32:18 UTC+3, kara...@gmail.com:

karam mohammed 1

unread,
Jul 17, 2026, 1:12:23 PMJul 17
to mementodatabase
This crash happened before, and your previous suggestion temporarily fixed it.
Now , I deleted all scripts, but the crash still occurs.
Also, when I try to export the library template, the app crashes.

Er Mo

unread,
Jul 17, 2026, 2:07:06 PMJul 17
to mementodatabase
Hallo
Wenn die Bibliothek in der Cloud ist kannst du Versuchen die Bibliothek auf deinen Handy zu Löschen , denn Parpiekorb von den Bibliotheken zu leeren und dann die Bibliothek erneut herunter zuladen .

Hello

If the library is in the cloud, you can try deleting the library on your phone, emptying the library's app drawer, and then downloading the library again.

Ernst

Mmm

unread,
Jul 17, 2026, 2:11:52 PMJul 17
to mementodatabase
Попробуйте очистить кеш приложения и перезагрузить устройство.

После скриптов и виджетов проблемы могут вызывать большое количество полей набор значений или множественные значения, особенно если в них используются нестандартные иконки.

Если нельзя сохранить шаблон библиотеки (нулевой размер) создайте копию библиотеки, загрузите её в облако, разрешите полный доступ и копирование структуры. Ссылку на библиотеку отправьте в поддержку.

пятница, 17 июля 2026 г. в 21:07:06 UTC+3, ernst...@gmail.com:

karam mohammed 1

unread,
Jul 17, 2026, 4:35:23 PMJul 17
to mementodatabase
I tried to edit lib on another phone and the same issue

Flaviano

unread,
Jul 22, 2026, 3:59:24 PMJul 22
to karam mohammed 1, mementodatabase
Karam,

I have encountered this issue several times in Memento for Android and wanted to share a workaround that has consistently worked for me. It may also provide a clue about the underlying cause.

In my case, the Edit Library also screen opens normally. The crash only occurs when I tap one of the fields to edit it.

To recover from the problem, I go through the shared scripts in the library one by one:

1. Open a shared script.
2. Copy its entire source code to the clipboard.
3. Delete the shared script (not only the code)
4. Create a new shared script (it doesn't even have to have the same name).
5. Paste exactly the same source code into the new script.
6. Save it and try Edit Library again.

If the crash still occurs, I repeat the same process with another shared script. Eventually, after recreating one of the shared scripts, Edit Library starts working normally again.

In my experience, the problem has always been in a shared script, never in a trigger, an action or a widget.

What I find interesting is that the problem does not appear to be related to the shared script's source code itself. If I simply delete all the code from the original script and save it, the crash still occurs. The only thing that fixes it is deleting the script object and creating a new one, even if I immediately paste back exactly the same code.

This makes me suspect that, in some cases, the problem is caused by corruption in the internal metadata or structure of a shared script rather than in its source code.

I can't say whether this is the actual cause, but I've reproduced this workaround successfully multiple times, so I thought the observation might be useful for troubleshooting.

Flaviano

--
You received this message because you are subscribed to the Google Groups "mementodatabase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mementodataba...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mementodatabase/1e37c4b4-148c-4458-9e93-4c3f6ee7c036n%40googlegroups.com.

Mmm

unread,
Jul 22, 2026, 5:04:23 PMJul 22
to mementodatabase
У меня есть несколько библиотек с высоким уровнем автоматизации.
Редактирование вызывает сбой приложения, экспорт выполняется с нулевым размером.
Я скопировал все общие скрипты в файлы *.js (один общий скрипт – один файл) и сохранил в персональном репозитарий на GitHub.
Потом я удалил все общие скрипты из библиотеки.
К сожалению, это не помогло.
Сделал копию библиотеки и начал поочередно удалять скрипты действия и триггеры.
В какой-то момент появилась возможность редактирования библиотеки и экспорт шаблона не нулевого размера.
После редактирования пришлось восстановить удаленные скрипты действия ручным копированием и повторной настройкой. Общие скрипты подключил как js-библиотеки.

Библиотека работает, но редактирование опять невозможно и шаблон с нулевым размером.

Предложил добавить импорт-экспорт скриптов с помощью отдельных файлов (шаблонов скриптов). Это позволит упростить процесс работы с правилами и скриптами.
К сожалению, использование GitHub подходит только для общих скриптов.
Правила и скрипты (триггеры и действия) имеют свои настройки.

Экспорт скриптов в файл => Редактирование библиотеки => Импорт скриптов в библиотеку.
Это один из вариантов использования, как временное решение до исправления проблемы.

Но это можно использовать и как способ поделиться скриптом для обучения или помощи при устранении ошибок автоматизации.

Кто считает предложение полезным, может проголосовать за его реализацию:
https://mementodb.fider.io/posts/161/import-export-scripts

среда, 22 июля 2026 г. в 22:59:24 UTC+3, fmo...@gmail.com:

Flaviano

unread,
Jul 22, 2026, 5:59:45 PMJul 22
to Mmm, mementodatabase
В какой-то момент появилась возможность редактирования библиотеки
"At some point, the ability to edit the library became available."

At that point, once I had identified exactly which script was causing the problem, I could simply go back to the original library (before creating a copy of it), delete and recreate just that script, and the issue would be resolved. In other words, my main task was to identify the shared script that had become "corrupted" (there was only one). Once I found it, recreating that single script - and no other - was enough to fix the problem. Perhaps it's worth trying just this one last thing. 


karam mohammed 1

unread,
Jul 25, 2026, 5:43:38 AMJul 25
to mementodatabase
I encountered this issue previously and resolved it by copying the library and deleting the scripts one by one to isolate the root cause.

I attempted the same troubleshooting steps this time, but the issue persists even after removing all fields, widgets, and scripts.

Flaviano

unread,
Jul 25, 2026, 9:42:55 AMJul 25
to karam mohammed 1, mementodatabase

This crashing issue is really annoying!

Yesterday I found one specific shared script that, whenever I delete it, the crash that occurs when trying to edit the Memento Database library on Android stops happening. However, as soon as I create a new shared script with the exact same code, the crash when editing the library comes back. That said, I don't think the issue is caused solely by this script's code, because I tested creating a shared script with the same code in other libraries, and none of them experienced the crash when trying to edit the library. Unfortunately, I've reached a point where I'll have to live with leaving the problematic script as it is. Whenever I need to edit this library on Android, I'll first have to delete the script, and then recreate it after I'm done editing the library.

I reread Mmm's suggestion that Memento Database should have an option to export scripts to files and then import them again later. That would indeed make things much easier. I recommend that more people vote for his suggestion (the link is at the end of his message above).

In any case,, I want to send two versions of my library to support: one with the script (where the crash occurs) and another without the script (where I can edit the library without the crash). What is the correct way to generate/export a library file so I can send it to support?

Thanks,
Flaviano


Mmm

unread,
Jul 25, 2026, 9:52:18 AMJul 25
to mementodatabase
Я писал выше, если нельзя выгрузить шаблон (нулевой размер), то можно поделиться ссылкой на библиотеку в облаке с общим доступом и разрешением копировать структуру.
Этот способ позволяет создать локальную копию библиотеки вместе со скриптами.

Если шаблон успешно сохраняется, отправьте шаблон библиотеки.

Дополнительно перешлите разработчику ссылку на эту тему.
Спасибо.

суббота, 25 июля 2026 г. в 16:42:55 UTC+3, fmo...@gmail.com:

karam mohammed 1

unread,
Jul 25, 2026, 3:27:24 PMJul 25
to mementodatabase
OK, thank you very much

Mmm

unread,
Jul 26, 2026, 9:21:54 AMJul 26
to mementodatabase
Мне удалось успешно внести изменения в структуру библиотеки в настольной версии.
Редактирование выполнено без удаления скриптов.
После обновления библиотеки в мобильной версии изменения сохранились.
К сожалению, редактирование библиотеки в мобильной версии осталось невозможным.

Но таким простым способом можно изменить структуру библиотеки без удаления скриптов и виджетов из нее.

суббота, 25 июля 2026 г. в 22:27:24 UTC+3, kara...@gmail.com:

Paulo Pereira

unread,
Jul 26, 2026, 4:45:48 PMJul 26
to mementodatabase
In my experience those kind or crashs arent related to scripts, but to 2 specific kind of fields: "single-choice list" and "Multiple-choice fields".  specially if you have the option to create items while the entry is being edited. All those items are loaded to memory, whetever they are being used or not. Scripts can add new items to those fields. you can even have several items exactly equal.  that is a huge load to the android memory at the same time. 

i converted those field, where i can have alot of new items added to text fields, and never had that problem again.

Mmm

unread,
Jul 27, 2026, 4:40:00 AMJul 27
to mementodatabase
К сожалению, это не мой случай.

Статистика в картинках:
1. Исходный шаблон библиотеки (info1).
Библиотека полностью работоспособна. 
В мобильной версии нельзя изменить структуру библиотеки и создать шаблон (нулевой размер).

2. Новый шаблон библиотеки (info2).
Из библиотеки последовательно удалялись скрипты до момента, когда удалось сохранить шаблон (ненулевого размера) и стало доступно редактирование структуры библиотеки.

воскресенье, 26 июля 2026 г. в 23:45:48 UTC+3, chamm...@gmail.com:
info1.jpg
info2.jpg

Mmm

unread,
Aug 28, 2026, 11:27:45 AMAug 28
to mementodatabase
Удалось создать нормальный шаблон библиотеки в новой версии 5.9.2.

Обновление Memento не решило проблему автоматически.
Я создал копию библиотеки и последовательно удалял общие скрипты до момента создания ненулевого шаблона.
Потом восстановил удаленные скрипты и библиотека отлично работает, позволяет изменять структуру и при экспорте создаёт шаблон ненулевого размера.
Также удалось успешно поделиться шаблоном через каталог шаблонов сообщества.

Возможно есть более простые и быстрые способы восстановления поврежденных библиотек.

понедельник, 27 июля 2026 г. в 11:40:00 UTC+3, Mmm:

Mmm

unread,
Aug 28, 2026, 12:35:03 PMAug 28
to mementodatabase
Предположу, что команда Memento существенно поработала над структурой шаблона.
Отличная работа!

После незначительных изменений структуры и скриптов библиотеки с моей стороны, новый шаблон содержит в 5 раз меньше символов, чем старый!!!

622945 => 121851.

пятница, 28 августа 2026 г. в 18:27:45 UTC+3, Mmm:
scr_1.jpg

Mmm

unread,
Aug 28, 2026, 4:26:52 PMAug 28
to mementodatabase
Статистика применения в полях выбора нестандартных и стандартных иконок.
Одна маленькая нестандартная иконка описывается в новом типе шаблонов:

(121851 - 115025) / 2 ≈ 3400 символами.

Большое количество нестандартных иконок тоже может служить причиной ошибок при редактировании и экспорте библиотек.

пятница, 28 августа 2026 г. в 19:35:03 UTC+3, Mmm:
scr_2.png

Mmm

unread,
Sep 2, 2026, 7:29:41 AMSep 2
to mementodatabase
Дополнительная (или основная) причина – история изменения скриптов (не путать с журналом выполнения скриптов).

Выше писал, что помогло удаление и восстановление скриптов. Но через некоторое время ошибки изменения структуры и экспорт шаблона нулевого размера возобновились.

Виновник – история изменения скриптов.

Провел небольшой тест:
1. Код из 7 общих скриптов переместил в один общий скрипт. Получилось 1380 строк с комментариями и пустыми строками.
2. Очистил историю изменений скриптов.
3. Последовательно изменял общий скрипт – добавлял по одному значку. После изменения сохранял шаблон библиотеки.

Результаты:
1. На всех этапах библиотека оставалась работоспособной: добавление и изменение записей, выполнение скриптов.
2. После второго изменения общего скрипта – шаблон библиотеки выгружается с нулевым размером, изменение структуры библиотеки работает.
3. Больше 12 изменений внести не удалось. Новые изменения не сохраняются, структура библиотеки не изменяется – все попытки приводят к аварийному завершению программы.
4. После очистки истории изменений ошибки уходят полностью: структура доступна, шаблоны имеют размер.

Нужно понимать, что если скрипт содержит несколько строк, то история изменения скриптов не вызовет ошибок приложения в обозримый период времени. В тесте использовался скрипт в 1380 строк.

Кроме того, при копировании библиотеки копируется и история изменений скриптов.
Поэтому ошибки в работе новой библиотеки могут сохраняться.

Создал предложение:
Приглашаю проголосовать.

пятница, 28 августа 2026 г. в 23:26:52 UTC+3, Mmm:
history.jpg

karam mohammed 1

unread,
Sep 2, 2026, 7:29:31 PMSep 2
to mementodatabase

Everything Mmm mentioned was correct.

I had already written before that disabling the scripts didn’t help. I’ve now tested it again, and it seems that disabling them does not solve the problem. Instead, I had to delete the scripts one by one until the problem was resolved.

So, it doesn’t seem to be caused by one specific script.

Mmm

unread,
Sep 3, 2026, 1:54:47 AMSep 3
to mementodatabase
Удалять скрипты для восстановления работоспособности больше не нужно.
Достаточно очистить историю изменения скриптов.
Такую операцию нужно выполнить один раз для всех скриптов после завершения разработки автоматизации.
Периодически –для скриптов с большим количеством строк.

четверг, 3 сентября 2026 г. в 02:29:31 UTC+3, kara...@gmail.com:
clear_history.jpg

karam mohammed 1

unread,
Sep 3, 2026, 6:52:01 AMSep 3
to mementodatabase

Thank you very much for sharing this solution. It worked perfectly for me, and I no longer need to delete the scripts one by one.

I also voted for your suggestion in the feature request. Hopefully, the developers will find a permanent solution to this issue in future updates.

Honestly, whenever I see a reply from you on the forum, I feel confident that the problem will be solved, no matter how complicated it is. Your solutions are always very helpful.

Thanks again and again for your help!

Mmm

unread,
Sep 4, 2026, 10:22:15 AMSep 4
to mementodatabase
Большое спасибо команде Memento за оперативность!

Добавлена настройка для быстрой очистки кеша библиотеки и истории скриптов.
Кроме того, история скриптов не копируется:
– в шаблон библиотеки при экспорте,
– в копию библиотеки.

четверг, 3 сентября 2026 г. в 13:52:01 UTC+3, kara...@gmail.com:
new_setting.jpg

karam mohammed 1

unread,
Sep 5, 2026, 8:03:45 PMSep 5
to mementodatabase
I am on latest version 5.9.0
I can't find this feature 

Screenshot_20260906_030122_Memento Database.jpg

Mmm

unread,
Sep 6, 2026, 3:14:05 AMSep 6
to mementodatabase
5.9.1 в июле.
Версии 5.9.2 (август), 5.9.3 (сентябрь) бета-тестирование. 
Если она пока недоступна для Вас, просто знайте, что такой функционал разработан.

воскресенье, 6 сентября 2026 г. в 03:03:45 UTC+3, kara...@gmail.com:

karam mohammed 1

unread,
Sep 6, 2026, 9:51:20 AMSep 6
to mementodatabase
OK. Waiting it
Reply all
Reply to author
Forward
0 new messages