miyako / 4d-plugin-html-converter

[DEPRECATED] This is a cross platform plugin to convert HTML to PDF, JPG, PNG, BMP or SVG using the ​wkhtmltopdf library.
1 stars 5 forks source link

Plugin crahes 4Dv13hotfix3 at quit #2

Open Wojog opened 9 years ago

Wojog commented 9 years ago

Hello, when quiting or restarting 4Dv13 solution with latest version of html converter plugin, 4D crashes. Without plugin no problem. any idea what can be the cause (WIN 8 64 bit PC) Kind regards, Luc Vanoppen

miyako commented 8 years ago

the library is not really written to be used as a plugin: there is a de-init API, wkhtmltopdf_deinit and wkhtmltoimage_deinit, which is only meant to be called once per process (application).

when you close a 4DB, the plugin is unloaded, but the process (4D) is still running, and opening/closing another (or the same) 4DB forces you you de-init for the second time, which crashes the library.

the only solution seems to be to NOT de-init the library at all.

B.T.W. a new version is available at https://github.com/miyako/4d-plugin-HTMLTOX

Wojog commented 8 years ago

Miyako, Thanks for the info and update. I have downloaded the HTMLTOX plugin demo database, but when opening in version 15 (I skipped version 14) 4D crashes. Also when adding the plugin to a new v15 database, 4D crashes on opening the database. Kind regards, Luc Vanoppen


[cid:e-mailsiggeentagwelideas295fa67]

Luc Vanoppen

Oude Tramstraat 5 - 2490 Balen (Belgium) Tel: +32 14 21 22 23 E-mail: luc@covr.be

IT services for international events


From: Keisuke Miyako [mailto:notifications@github.com] Sent: maandag 28 december 2015 2:22 To: miyako/4d-plugin-html-converter 4d-plugin-html-converter@noreply.github.com Cc: Luc Vanoppen luc@covr.be Subject: Re: [4d-plugin-html-converter] Plugin crahes 4Dv13hotfix3 at quit (#2)

the library is not really written to be used as a plugin: there is a de-init API, wkhtmltopdf_deinit and wkhtmltoimage_deinit, which is only meant to be called once per process (application).

when you close a 4DB, the plugin is unloaded, but the process (4D) is still running, and opening/closing another (or the same) 4DB forces you you de-init for the second time, which crashes the library.

the only solution seems to be to NOT de-init the library at all.

B.T.W. a new version is available at https://github.com/miyako/4d-plugin-HTMLTOX

— Reply to this email directly or view it on GitHubhttps://github.com/miyako/4d-plugin-html-converter/issues/2#issuecomment-167453107.

miyako commented 8 years ago

Hello,

for your information, I can open and run the sample DB on v15/El Capitan, I also have a user (on 4D forums) reporting good results, so it seems unlikely to be a universal problem.

2016/01/04 19:52、Wojog notifications@github.com のメール:

Thanks for the info and update. I have downloaded the HTMLTOX plugin demo database, but when opening in version 15 (I skipped version 14) 4D crashes. Also when adding the plugin to a new v15 database, 4D crashes on opening the database.

宮古 啓介 セールス・エンジニア

株式会社フォーディー・ジャパン 〒150-0043 東京都渋谷区道玄坂1-10-2 渋谷THビル6F Tel: 03-6427-8441 Fax: 03-6427-8449

Keisuke.Miyako@4d.com www.4D.com/JP