Skip to content
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

Неисправляемая ошибка #111

Closed
aurusov opened this issue Aug 14, 2015 · 2 comments
Closed

Неисправляемая ошибка #111

aurusov opened this issue Aug 14, 2015 · 2 comments
Assignees
Labels

Comments

@aurusov
Copy link
Collaborator

aurusov commented Aug 14, 2015

Использовал вот эту версию РДО ebe40fb (на момент написания таски - это release/current)

Создаём модель

enum BarberState {free, busy}

type BarberShop {
    BarberState barberState = BarberState.free;
    int queueLength = 0;
}

Запускаем. Модель отрабатывает с причиной no more events. Пока все хорошо. Меняем модель
BarberState barberState = BarberState.free2;
Сохраняем, запускаем, получаем ошибку. Пока все хорошо (сама ошибка полный отстой, ничего не понятно, надо смотреть исходники на java чтобы понять). Теперь возвращаем первоначальный вид, сохраняем, запускаем - ошибка осталась. Как это побороть ?

2015-08-14 15 15 58

@aurusov
Copy link
Collaborator Author

aurusov commented Aug 14, 2015

Возможно, причина в этом

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at ru.bmstu.rk9.rao.ui.run.ExecutionHandler$2.run(ExecutionHandler.java:162)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: ru.bmstu.rk9.rao.lib.notification.NotifierException: Cannot remove subscriberru.bmstu.rk9.rao.ui.simulation.SimulationSynchronizer$SimulationManager$ScaleManager@279626e8, it is not present in subscription
    at ru.bmstu.rk9.rao.lib.notification.Subscription.removeSubscriber(Subscription.java:20)
    at ru.bmstu.rk9.rao.lib.notification.Notifier.removeSubscriber(Notifier.java:44)
    at ru.bmstu.rk9.rao.ui.notification.SimulatorSubscriberManager.unregisterExecutionSubscribers(SimulatorSubscriberManager.java:31)
    at ru.bmstu.rk9.rao.ui.notification.DefferedSubscriberManager$2.fireChange(DefferedSubscriberManager.java:46)
    at ru.bmstu.rk9.rao.lib.notification.Notifier.notifySubscribers(Notifier.java:26)
    at ru.bmstu.rk9.rao.lib.simulator.Simulator.setSimulationState(Simulator.java:46)
    at ru.bmstu.rk9.rao.lib.simulator.Simulator.initSimulation(Simulator.java:25)
    at rao_model.Embedded.initSimulation(Embedded.java:15)
    ... 6 more

@bogachev-pa
Copy link
Collaborator

Уже исправлено в ветке 2.3.
Некорректно очищались подписки в случае ошибок прогона. Лечилось перезапуском плагина.

@aurusov aurusov added this to Закрытые in Симулятор Oct 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Симулятор
Закрытые
Development

No branches or pull requests

2 participants