-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Приложение зависает или крашится на android #10
Comments
Выяснил что краши происходят если добавлять метки с кастомным view, у которого в разметке есть картинка networkImage или AssetImage: for (final location in locations) {
clusterizedCollection.addPlacemarkWithView(
location,
ViewProvider(
builder: () => SizedBox(
width: 40,
height: 40,
child: Image.asset('assets/ic_circle.png')),
configurationFactory: (data) => ViewConfiguration(
physicalConstraints: BoxConstraints.tight(data.size),
logicalConstraints: BoxConstraints.tight(data.size),
devicePixelRatio: data.devicePixelRatio)));
}
clusterizedCollection.clusterPlacemarks(
clusterRadius: _clusterRadius,
minZoom: _clusterMinZoom,
); Прилагаю пример, по сути немного измененный пример из map_objects с репозитория mapkit-samples |
У меня проблема воспроизводится не только с NetworkImage или AssetImage, а с любыми пинами, если их достаточно много. void _addClusterizedPlacemarks(
mapkit.ClusterizedPlacemarkCollection clusterizedCollection,
) {
const constraints = BoxConstraints(
maxHeight: 40,
maxWidth: 40,
minHeight: 40,
minWidth: 40,
);
final view = ViewProvider(
id: 'my_id',
builder: () {
return const SizedBox(
width: 40,
height: 40,
child: ColoredBox(color: Colors.blue),
);
},
configurationFactory: (data) => const ViewConfiguration(
physicalConstraints: constraints,
logicalConstraints: constraints,
),
cacheable: true,
);
for (final location in locations) {
clusterizedCollection.addPlacemarkWithView(
location,
view,
);
}
clusterizedCollection.clusterPlacemarks(
clusterRadius: _clusterRadius,
minZoom: _clusterMinZoom,
);
} |
В версии 4.7.2-beta6 вот такие ошибки сыпятся как раз перед крашем
|
Спустя какое то время после манипуляций с картами приложение может зависнуть или крашнутся.
Лог с эмулятора:
Exited.
`
Такие ошибки libc на реальном устройстве в релизе:
--------- beginning of crash
04-19 17:12:21.492 762 762 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 762 (init), pid 762 (init)
04-19 17:12:21.500 762 762 F libc : crash_dump helper failed to exec, or was killed
04-19 17:12:21.502 766 766 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 766 (init), pid 766 (init)
04-19 17:12:21.507 766 766 F libc : crash_dump helper failed to exec, or was killed
08-13 10:54:55.406 20638 20478 F libc : fdsan: attempted to close file descriptor 223, expected to be unowned, actually owned by DIR* 0x789b490800
08-20 10:31:51.287 6159 17545 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 17545 (1.ui), pid 6159 (ple.yandex_maps)
08-20 16:39:05.086 773 773 F libc : crash_dump helper failed to exec, or was killed
08-20 16:39:05.385 1031 1031 F libc : failed to wait for crash_dump helper: No child processes
08-20 16:39:06.570 803 803 F libc : crash_dump helper failed to exec, or was killed
08-22 20:33:18.354 28920 28920 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 28920 (ple.yandex_maps), pid 28920 (ple.yandex_maps)
08-23 20:12:55.711 17200 17200 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 17200 (ple.yandex_maps), pid 17200 (ple.yandex_maps)
08-23 20:36:54.740 22471 22471 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 22471 (ple.yandex_maps), pid 22471 (ple.yandex_maps)
08-23 21:05:14.291 18533 18533 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 18533 (ple.yandex_maps), pid 18533 (ple.yandex_maps)
08-23 21:57:25.373 14097 14097 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 14097 (ple.yandex_maps), pid 14097 (ple.yandex_maps)
08-23 22:23:18.359 19297 19297 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 19297 (ple.yandex_maps), pid 19297 (ple.yandex_maps)
08-24 09:21:03.597 29690 29690 F libc : Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 29690 (ple.yandex_maps), pid 29690 (ple.yandex_maps)
08-24 14:58:48.758 773 773 F libc : crash_dump helper failed to exec, or was killed
08-24 14:58:49.049 1031 1031 F libc : failed to wait for crash_dump helper: No child processes
08-24 14:58:50.272 803 803 F libc : crash_dump helper failed to exec, or was killed
--------- beginning of main
08-24 14:58:54.034 30449 30449 W libc : Access denied finding property "persist.vendor.sys.activitylog"
08-24 14:58:54.051 1212 1212 I libc : Requested dump for pid 1212 (composer-servic)
08-24 14:58:54.103 30449 30449 W libc : Access denied finding property "ro.odm.prev.product.name"
08-24 14:58:54.424 30520 30520 W libc : Access denied finding property "persist.vendor.sys.activitylog"
`
Версия mapkit 4.7.0-beta
The text was updated successfully, but these errors were encountered: