Skip to content

Exception on run worker again after terminate #64

@KG3RK3N

Description

@KG3RK3N

I have the issue that I run a worker, terminate after execution and than I run the worker later again (application was not closed) its crashed with exceptions. It looks that java no more usable.

I have tested it in the angular example typescript worker too.
To try it out, start worker and terminate when "onmessage" fired. Log messages from the "onerror" worker event. Start new instance of the worker -> Uncaught TypeError: android.os.Looper.myLooper is not a function

For hmr is that very annoying because the WorkerService terminates on destroy. On every application change, the workers are unussable. Only after the application full restarted, the workers would works again.

On the nativescript multithreading guidlines its recommended, that I terminate the worker after execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions