Re: [dbus-1-tqt] WARNING: Attempt to call dispatch() recursively

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michele Calgaro wrote:

> Hi Emanoil,
> can you be a bit more clear on how to reproduce this? I am not sure I have
> understood. Cheers
> Michele

Hi Michele,
I was wondering if someone has hit this issue. It comes from dbus-1-tqt, but
does not hurt the application.

I think the problem is in the nature of the DBus call. You probably recall
that I am playing recently with dbus-1-tqt and auto generated code (for
bluetooth).
Unfortunately dbusxml2qt3 does not generate the asynchronous methods out of
the introspectable xml. I think this is the problem as the nature of the
call in question is logically asynchronous.

It is long to explain how to reproduce it, but here is a brief summary.

1. generate interface for agent
        mkdir agent
        cd agent
        rm -f ./*.h ./*.cpp && /usr/bin/dbusxml2qt3 org.tdebluez.agent.xml
1.1 you need to fix #include agent1.h => agent1interface.h
2. implement (the example from the TDE wiki)
3. implement dialog that is started with exec() and is called in
RequestConfirmation 
4. call pair with device (from dbus or code)

=> when dialog window pops up - it blocks and those messages come with
thousands until you press the button.

This makes me think an async method would be more appropriate here.
I will try in the next days and report back.
Perhaps we can extend dbusxml2qt3  to create async calls as well.

Let me know what you think, if you have some ideas.

thanks and regards

<?xml version="1.0" encoding="UTF-8"?>
<node name="/org/trinitydesktop/tdebluez">
<!--  The Introspectable Interface gets autogenerated -->
<!--   <interface name="org.freedesktop.DBus.Introspectable"> -->
<!--     <method name="Introspect"> -->
<!--       <arg name="xml" type="s" direction="out"/> -->
<!--     </method> -->
<!--   </interface> -->
	<interface name="org.bluez.Agent1">
		<method name="Release">
		</method>
		<method name="RequestPinCode">
			<arg name="device" direction="in" type="o"/>
			<arg name="pincode" direction="out" type="s"/>
		</method>
		<method name="DisplayPinCode">
			<arg name="device" direction="in" type="o"/>
			<arg name="pincode" direction="in" type="s"/>
		</method>
		<method name="RequestPasskey">
			<arg name="device" direction="in" type="o"/>
			<arg name="passkey" direction="out" type="u"/>
		</method>
		<method name="DisplayPasskey">
			<arg name="device" direction="in" type="o"/>
			<arg name="passkey" direction="in" type="u"/>
			<arg name="entered" direction="in" type="q"/>
		</method>
		<method name="RequestConfirmation">
			<arg name="device" direction="in" type="o"/>
			<arg name="passkey" direction="in" type="u"/>
		</method>
		<method name="RequestAuthorization">
			<arg name="device" direction="in" type="o"/>
		</method>
		<method name="AuthorizeService">
			<arg name="device" direction="in" type="o"/>
			<arg name="uuid" direction="in" type="s"/>
		</method>
		<method name="Cancel">
		</method>
	</interface>
</node>


---------------------------------------------------------------------
To unsubscribe, e-mail: trinity-devel-unsubscribe@xxxxxxxxxxxxxxxxxxxxxxxxxx
For additional commands, e-mail: trinity-devel-help@xxxxxxxxxxxxxxxxxxxxxxxxxx
Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/
Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting

[Index of Archives]     [Trinity Users]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [KDE]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]     [Trinity Desktop Environment]

  Powered by Linux