Deploying Valentina Reports and Xojo Cloud

I am trying to deploy a web application on my Xojo Cloud server using Xojo 2021 Release 1.1, and it works fine on its own. However, when I add my Valentina Reports components, the app crashes during deployment. It is worth mentioning that it works perfectly in local mode on Windows. What files do I need to upload to make my reports work on the server?

It would help if we could see the crash log/report. Have you asked the Valentina guys?

1 Like

Hi Beatrix,

Thank you for your reply.

Please find attached a screenshot of the crash initialize app for your review.

Regarding your question about Valentina guys, I wanted to let you know that I was reading Valentina’s forum and downloaded the SDK they recommend for my app, but Im sure Im doing something wrong.

1 Like

Don’t know if it may be related
 but while your local machine is Windows based, Xojo Cloud is Linux based; so
 maybe something about the right OS version of the Valentina components being deployed there?

1 Like

I would wager, since Valentina plugins aren’t built for Xojo correctly (plugins shouldn’t require an installer placing files around your system), that you need to install things on the server manually.

1 Like

Thanks for your reply, Tim. I’m going to look for another option to generate my PDF. As always, I really appreciate the Xojo team’s support. Thank you.

1 Like

Que tal Javier, es un placer saludarte. Creo es algo relacionado a los pluggins de valentina, es relacionado con lo que comentas. Las versiones entre ambos sistemas operativos, baje de la pĂĄgina de valentina los pluggins para Linux y los subi junto con mi aplicaciĂłn pero tampoco funcionĂł. Voy a dejar esa opciĂłn por el momento y voy a generar el Pdf de manera tradicional con el cĂłdigo de Xojo. Gracias como siempre a ti y al equipo!

2 Likes

Hola, Juan: si necesitas ayuda con Valentina Reports, no dudes en contactarnos directamente. Si lo Ășnico que necesitas es generar un PDF de un documento sencillo, existen muchas soluciones excelentes de terceros, incluidas las de Monkeybread Software, Einhugur y GraffitiSuite. Valentina Reports estĂĄ pensado realmente para la generaciĂłn de informes.

1 Like

Hi Juan,

Please check Deployment section in our wiki

We have separate vcomponents folder with set of DLLs. You can choose which to use.

Xojo Cloud this is linux OS.

You can discuss this on our forum to get help from our engineers.

1 Like

Hi Tim,

well, I wonder if you can offer “right“ solution?
Put big (actually very big) DLLs into plugin?

I think you have see that point is that V4RB is quite advanced and complex plugin, which depends on few DLLs, which different developers may want include/exclude into final applications.

For example, somebody wants VCLIENT.DLL only to be able work with Valentina Server. and he do not need VKERNEL, VREPORT, DuckDB, 


Other developer may want choose other combination of DDLs.

How to solve this better?

We consider not only easy install, but steps up to deployment.

Usually developer can write scripts bash/bat, which collect and tune final app.
Xojo is able to run such post-build scripts.

In the Xojo environment using a Valentina plugin makes your application no longer easy to deploy. I discovered problems with Valentina plugins packaging when a colleague brought up their struggles trying update the plugin with Plugins Pro. I investigated and found how much it really just doesn’t fit into our ecosystem.

Web (and Desktop) users must follow special deployment instructions because the build isn’t self contained. As we can all see, that causes problems for Xojo Cloud users who are unable to “Install the vcomponents folder into the /opt/V4RB/vcomponents directory.”

Objectively, in the Xojo environment, your plugin is packed wrong. So I don’t appreciate your air-quotes. If you would like my advice you can reach out privately for a paid consulting contract.

2 Likes

Installation makes switching between versions a lot more complicated than necessary.

Because of the external dylibs everything always needs to be fully codesigned.

Your documentation can be improved. It’s hard to find any information because the search mostly finds irrelevant result. Even the organisation of the Wiki is bad. The available information is thin. This makes getting started with deployment harder.

A 300 MB plugin would indeed be too big. But Christian Schmitz has found a way to include only the used part of his plugins:

Edit: didn’t sleep very well so I made the wording too strong. I use Valentina every day but the problems are not new.

2 Likes

Thank you Tim, for nice answer.

Your friend could ask on our forum, and get support for free.

I gave it a heart with the strong language (thoroughly applicable). Can’t remove the heart with the lessened language :pensive_face:

1 Like

Hi Trixi,

This is about MacOS. And Apple requirements to codeseign.

I wonder, since we ship also own applications as Valentina Studio and Valentina Server, yet to MAS, we know that Apple require codesign any dylib inside of app.

Does Xojo plugins which pack dylibs inside, do not require code sign in final app built with Xojo? We will check this more.

well, I guess this is about vcomponents folder.

Solution can be as easy as simple bash script, which replace plugin(s) and related folder(s).
AI today can generate such in seconds.

What we can improve here in theory, to make vcomponents_vv, folder to have version. But this step is not so easy.

Picture shows only set of dylibs. Not clear how this solve issue.
We will check MBS then. Thank you for point.

The codesign issue is a bit more complicated: The examples run fine without codesigning. But I need permissions for my apps (fda, AppleScript, Contacts) which require codesigning. To make codesigning work I need the Valentina deployment script to run in debug or the app crashes when it gets to load plugins.

1 Like

Hi Trixi,

[MacOS]

We use the following flag in Valentina Studio, to allow loading of third-party libs signed by signatures of other teams. This can be set in app.entitlements file, which you already have.

We think you can try it also. Then no need to re-sign our dlls.

Or this can be as TIP for fast start.

In Valentina Studio, this flag is required, because some DB engines allow extensions, which user can add later. i.e. we even do not see them during compilation time.

Addition:

Xojo allows enable this option in GUI

1 Like

Here is an updated page for working with Xojo Cloud. We are still updating it.

I don’t want to fill up the Xojo forum with just our topics, so here is a link to a new sub-forum to talk about our docs and other learning resources

https://valentina-db.com/en/discussions/forums/12-other-discussions/27-documentation-wiki

1 Like

Gracias Lynn. Realmente quiero imprimir algunos informes que tenía diseñados en Windows, desgraciadamente al subirlos a xojo cloud no funcionan. Diseñe algunos informes con la solución de Graffitisuite y me funcionó bien. Agradezco tu apoyo !

1 Like