Yep,it&#39;s really nasty.<br>   But if I want to leverage FULL spice image ability,I have to:<br>1.Fix the bugs of sigbus in quic.c on Android by rewriting the pointer-type-cast into memcpy.etc..<br>2.Then,then,I got the processed image buffer in memory,BUT,HOW can I output it??? AFAIK,android offer no image output API for C(at least &lt;2.3), and Java cannot access memory directly(am I right?). How can I do it besides sending the image data as soon and little as possible to Java via Unix-sock?<br>
 So, no matter how fast or colorful Spice is, it&#39;s choked by Android framework and Java.<br>  <br>Thus,if Java has the ability to maitain something like image buffer in memory like C(can it??), this may be the most-efficeint way I can imagine: implementing spice protocol and rewriting UI in Java,and leaving only(or not) the image computing work to lib**.so via JNI.<br>
  But that&#39;s beyond my current scope.<br> <br> Any ideas to access the memory block of image buffer  allocated by C(libspicec.so) directly in Java,instantly and swiftly?    <br><br>...One more time I want to curse Android and disdain Java...<br>
Best regards.<br><br><div class="gmail_quote">On Wed, Apr 27, 2011 at 4:20 PM, Alon Levy <span dir="ltr">&lt;<a href="mailto:alevy@redhat.com">alevy@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Apr 27, 2011 at 10:30:18AM +0800, Shuxiang Lim wrote:<br>
&gt; Hi,all!<br>
&gt;    Thanks for the trying/feedbacking and sorry for the nascent itches of the<br>
&gt; project.<br>
&gt;    As I&#39;ve mentioned in the wiki page of this proj.,to use the androidSpice,<br>
&gt; the server should be modified to force the use of JPEG compression,and qemu<br>
&gt; should not use&quot; -vga qxl&quot; and should use &quot;-usbdevice tablet&quot;(check for the<br>
&gt; reason in wikipage,maybe you can fix this),have you checked this?<br>
<br>
</div>so you need to use a standard vga device and not the qxl right now? well, it&#39;s<br>
certainly a good start. But you do realize without the qxl device this is no more<br>
then a different vnc? i.e. it sends bitmaps only, using jpeg maybe, I wasn&#39;t aware<br>
we did that in this case, but no other operation (no copy / text / any other rop).<br>
<div><div></div><div class="h5"><br>
&gt;    If not forced to use JPEG,the quic algorithm in client will cause SIGBUS<br>
&gt; and quit,if qxl is not disabled ,the Java UI will crash for it can handle<br>
&gt; only SPICE_IMAGE_TYPE_JPEG=105 till now.<br>
&gt;    And also,the app will cause &quot;over memory limit&quot; of Java in some machine<br>
&gt; of android-2.2 and AVDs.<br>
&gt;    I&#39;m working to fix this,welcome to improve it!<br>
&gt;    I&#39;v uploaded the androidSpice.apk and androidSpice-debug.apk with the<br>
&gt; latter&#39;s debug msg switched on(you can check the ANDROID LOG msg by #adb<br>
&gt; logcat). I&#39;ve also uploaded the red_worker.c for server modifying(If<br>
&gt; needed,you can get the libspicec.so from the installed android program file<br>
&gt; directory as /data/data/com.keqi*/lib/libspicec.so to use directly in the<br>
&gt; Android proj.).<br>
&gt;    Best Regards.<br>
&gt; ---Lim---Lin--------林------<br>
&gt;<br>
&gt; On Wed, Apr 27, 2011 at 6:14 AM, Gianluca Cecchi<br>
&gt; &lt;<a href="mailto:gianluca.cecchi@gmail.com">gianluca.cecchi@gmail.com</a>&gt;wrote:<br>
&gt;<br>
&gt; &gt; Hello,<br>
&gt; &gt; device is HTC Wildfire with android 2.2.1 and my guest is windows 7 on<br>
&gt; &gt; F14+virt-preview repo.<br>
&gt; &gt; In /var/log/libvirt/qemu/guest.log after pressing connect button I get:<br>
&gt; &gt;<br>
&gt; &gt; reds_handle_main_link:<br>
&gt; &gt; reds_show_new_channel: channel 1:0, connected successfully, over Non Secure<br>
&gt; &gt; link<br>
&gt; &gt; reds_main_handle_message: net test: latency 22.151000 ms, bitrate<br>
&gt; &gt; 10769821 bps (10.270902 Mbps)<br>
&gt; &gt; reds_show_new_channel: channel 2:0, connected successfully, over Non Secure<br>
&gt; &gt; link<br>
&gt; &gt; red_dispatcher_set_peer:<br>
&gt; &gt; handle_dev_input: connect<br>
&gt; &gt; handle_new_display_channel: jpeg disabled<br>
&gt; &gt; handle_new_display_channel: zlib-over-glz disabled<br>
&gt; &gt; reds_show_new_channel: channel 3:0, connected successfully, over Non Secure<br>
&gt; &gt; link<br>
&gt; &gt; inputs_link:<br>
&gt; &gt;<br>
&gt; &gt; Then error message on android device (see jpeg)<br>
&gt; &gt; I select &quot;force close&quot; and I get in log file:<br>
&gt; &gt;<br>
&gt; &gt; red_receive: Connection reset by peer<br>
&gt; &gt; reds_disconnect:<br>
&gt; &gt; red_dispatcher_shutdown_cursor_peer:<br>
&gt; &gt; red_dispatcher_shutdown_peer:<br>
&gt; &gt; handle_dev_input: cursor disconnect<br>
&gt; &gt; handle_dev_input: disconnect<br>
&gt; &gt;<br>
&gt; &gt; Connection works from another f14 pc with spicy.<br>
&gt; &gt; Any information that I can give from the android device?<br>
&gt; &gt;<br>
&gt; &gt; Gianluca<br>
&gt; &gt;<br>
&gt; &gt; 2011/4/26 Mosebach  Kai &lt;<a href="mailto:kai.mosebach@bsse.ethz.ch">kai.mosebach@bsse.ethz.ch</a>&gt;:<br>
&gt; &gt; &gt; Hey Lin,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Just gave it a quick shot :<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; - DNS resolving not working?<br>
&gt; &gt; &gt; - access to server w/o password not supported?<br>
&gt; &gt; &gt; - access w/ password produces a &quot;force kill&quot; after a vibration<br>
&gt; &gt; &gt; - some traffic is seen on the spice-server side though<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; (couldn’t connect therefore)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Any logfiles I can provide?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; HW/SW : Android V2.2 on Samsung Galaxy Tab<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Cheers Kai<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 4/26/11 9:43 AM, &quot;Shuxiang Lim&quot; &lt;<a href="mailto:shohyanglim@gmail.com">shohyanglim@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;&gt;Released with src &amp; .apk files with button-double-click fixed.<br>
&gt; &gt; &gt;&gt;--Lin--<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;On 4/26/11, Shuxiang Lim &lt;<a href="mailto:shohyanglim@gmail.com">shohyanglim@gmail.com</a>&gt; wrote:<br>
&gt; &gt; &gt;&gt;&gt; Hi,all!<br>
&gt; &gt; &gt;&gt;&gt;   After I workaround the bug &quot;input will choke output&quot;,I&#39;m glad to<br>
&gt; &gt; &gt;&gt;&gt; release the USABLE androidSpice-0.1.4 on google code:<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; <a href="http://code.google.com/p/spice-client-android/" target="_blank">http://code.google.com/p/spice-client-android/</a><br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; You shall check the wiki page of it for the build/install/use of it.<br>
&gt; &gt; &gt;&gt;&gt; Any use or improvement will be appreciated!<br>
&gt; &gt; &gt;&gt;&gt; Best Regards.<br>
&gt; &gt; &gt;&gt;&gt; ------Lin-----林----<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;_______________________________________________<br>
&gt; &gt; &gt;&gt;Spice-devel mailing list<br>
&gt; &gt; &gt;&gt;<a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; &gt; &gt;&gt;<a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Spice-devel mailing list<br>
&gt; &gt; &gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; &gt; &gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
&gt; &gt; &gt;<br>
&gt; &gt;<br>
<br>
&gt; _______________________________________________<br>
&gt; Spice-devel mailing list<br>
&gt; <a href="mailto:Spice-devel@lists.freedesktop.org">Spice-devel@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/spice-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/spice-devel</a><br>
<br>
</div></div></blockquote></div><br>