valum-framework / valum

Web micro-framework written in Vala
https://valum-framework.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
226 stars 23 forks source link

application runing failed..... #154

Closed Matrix-Zhang closed 8 years ago

Matrix-Zhang commented 8 years ago

after the comit 3b94bb8, the vsgi applistion can not starup....

(process:30797): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

* (process:30797): CRITICAL _: vsgi_server_set_applicationcallback: assertion 'self != NULL' failed * Message: fuck run here.

(process:30797): GLib-GIO-CRITICAL **: g_application_run: assertion 'G_IS_APPLICATION (application)' failed

i add some log in the C file...

i checkout that the function vsgi_scgi_server_new, return NULL ?

arteymix commented 8 years ago

Is it related to #155 ?

I don't have sufficient information to tell you what's going wrong here. It just seems that the shared library for SCGI is not loaded.

In the meantime, you should use a release, which are more stable. I fixed an important issue with SCGI that practically doubled the throughput.

Matrix-Zhang commented 8 years ago

no, it is a new issue in master branch...

i change to the latest release 0.28 is OK

arteymix commented 8 years ago

I got the same issue with the installed files on my side. I must have missed something when I extracted implementations into separated shared libraries.

I will backport fixes for FastCGI into another hotfix release. I got the async I/O working :)

I'll fix that, promise!

arteymix commented 8 years ago

It's the [ModuleInit] directives that breaks everything. It registers GObject types only through plugin_init, which is not desirable.

I will figure out something when merging #130.

arteymix commented 8 years ago

@Matrix-Zhang I backported the fixes for FastCGI to support async I/O in v0.2.9 (I think you wanted to use that at first)

SCGI is much more performant though.