Skip to content

QObject::killTimers: timers cannot be stopped from another thread #56

@CarlBonzi

Description

@CarlBonzi

It cause a problem look like "QObject::killTimers: timers cannot be stopped from another thread", here is my code

HtmlToPdf htmlToPdf = HtmlToPdf.create().object(HtmlToPdfObject.forHtml(html).defaultEncoding("utf8"));

try(InputStream in = htmlToPdf.convert()) {
    String base64 = Base64.getEncoder().encodeToString(IOUtils.toByteArray(in));
    htmlToPdf.finished(null);
    System.out.println(LocalDateTime.now());
    System.out.println(base64);
}

1710982979415

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