Login  Register

Re: LWUIT NEWT JOGL Enlightenment Wayland - Tizen Phone

Posted by Peter on Sep 24, 2015; 4:55am
URL: https://forum.jogamp.org/LWUIT-NEWT-JOGL-Enlightenment-Wayland-Tizen-Phone-tp4035335p4035373.html

Update:

I've downloaded the Tizen 2.3.1 Emulator, the emulator turns out to be x86, rather than ARM, which is somewhat unfortunate.  I have no troubles running jdk1.8.0_60 in this emulator.   I'll need to obtain hardware if I want to test ARM.

Strangely, policytool and jvisualvm were able to display their splash screens, before core dumping.

Java SE runs on mobile phone and watch profiles.

The bad news is, although the documentation indicates it supports OpenGL ES 1.1, the log from the emulator itself indicates it only supports OpenGL ES 2.0 and 3.0:

skin args: =========================================
width=480 height=800 skin.path=C:\tizen-sdk\platforms\mobile-2.3.1\emulator-resources\skins\mobile-480x800-3btn
skin args: =========================================
ram_size 20000000
device fd:352
End of VM create, id 0
nGL ES v1_CM - supported
INFO  - Guest OpenGL ES 2.0 - supported
INFO  - Guest OpenGL ES 3.0 - supported
INFO  - Host has hardware GL acceleration!
11:22:15.347135( 6960) [INFO:qemu_audio] Host audio out [winwave] is normal.
11:22:15.474147( 6960) [INFO:virtio-esm] initialize virtio-esm device
11:22:15.474147( 6960) [INFO:virtio-kbd] initialize virtio-keyboard device
11:22:15.475148( 6960) [INFO:virtio-evdi] initialize evdi device
11:22:15.475148( 6960) [INFO:emul_state] EMULATOR_PROFILE: mobile-2.3.1
11:22:15.475148( 6960) [INFO:pkgs] ADDON PATH: C:\tizen-sdk\tools\emulator\bin\..\..\..\platforms\mobile-2.3.1\emulator-images\add-ons
11:22:15.475148( 6960) [INFO:pkgs] Add-on Directory is empty. No package install is required.
11:22:15.475148( 6960) [INFO:maru-brightness] initialize maru-brightness device
11:22:15.475148( 6960) [INFO:virtio-vmodem] finish the vmodem device initialization.
11:22:15.476148( 6960) [INFO:hwkey] initialize the hwkey device
11:22:15.476148( 6960) [INFO:brillcodec] device initialization.
11:22:15.485149( 6960) [INFO:virtio-nfc] initialize nfc device
11:22:15.485149( 6960) [INFO:virtio-power] initialize virtio-power device
11:22:15.497150( 6960) [INFO:maru-camera] Device name : Integrated Webcam
11:22:15.503150( 6960) [INFO:maru-camera] PixelFormat: YUY2, Frame size: 640x480
11:22:15.503150( 6960) [INFO:maru-camera] PixelFormat: YUY2, Frame size: 160x120
11:22:15.503150( 6960) [INFO:maru-camera] PixelFormat: YUY2, Frame size: 320x180
11:22:15.503150( 6960) [INFO:maru-camera] PixelFormat: YUY2, Frame size: 320x240
11:22:15.503150( 6960) [INFO:maru-camera] PixelFormat: YUY2, Frame size: 424x240
11:22:15.503150( 6960) [INFO:maru-camera] PixelFormat: YUY2, Frame size: 640x360
11:22:15.503150( 6960) [INFO:maru-camera] PixelFormat: YUY2, Frame size: 640x480
11:22:15.504150( 6960) [INFO:maru-camera] PixelFormat: MJPG, Frame size: 848x480
11:22:15.504150( 6960) [INFO:maru-camera] PixelFormat: MJPG, Frame size: 960x540
11:22:15.504150( 6960) [INFO:maru-camera] PixelFormat: MJPG, Frame size: 1280x720
11:22:15.507151( 6960) [SEVERE:maru-camera] Elapsed time : 0.022002
11:22:15.508151( 6960) [INFO:maru-camera] initialize maru-camera device
11:22:15.509151( 6960) [INFO:touchscreen] initialize touchscreen device : 10
11:22:15.509151( 6960) [INFO:virtio-sensor] initialize virtio-sensor device
11:22:15.509151( 6960) [INFO:virtio-sensor] initialized sensor type: accel&geo&gyro&light&proxi&haptic&press&uv&hrm
11:22:15.509151( 6960) [INFO:virtio-sensor] sensor device capabilty enabled with 3df
11:22:15.509151( 6960) [INFO:virtio-jack] initialize virtio-jack device
11:22:15.509151( 6960) [INFO:virtio-jack] initialized jack type: earjack&charger&usb
11:22:15.509151( 6960) [INFO:virtio-jack] jack device capabilty enabled with 13
11:22:15 INFO  vigs_gl_backend_wgl_check_gl_version:163 - GL_VERSION forces OpenGL version to 2.1
11:22:15 INFO  vigs_gl_backend_init:2229 - VIGS_SYNC_READ_PIXELS: 1
11:22:15 INFO  vigs_device_init:442 - VIGS initialized
11:22:15 INFO  [0/0] yagl_egl_wgl_init_ext:1073 - WGL extensions: WGL_EXT_depth_float WGL_ARB_buffer_region WGL_ARB_extensions_string WGL_ARB_make_current_read WGL_ARB_pixel_format WGL_ARB_pbuffer WGL_EXT_extensions_string WGL_EXT_swap_control WGL_EXT_swap_control_tear WGL_ARB_multisample WGL_ARB_pixel_format_float WGL_ARB_framebuffer_sRGB WGL_ARB_create_context WGL_ARB_create_context_profile WGL_EXT_pixel_format_packed_float WGL_EXT_create_context_es_profile WGL_EXT_create_context_es2_profile WGL_NV_DX_interop WGL_ARB_create_context_robustness
11:22:15 INFO  [0/0] yagl_egl_wgl_get_gl_version:188 - GL_VERSION forces OpenGL version to 2.1
11:22:18 INFO  [0/0] yagl_egl_wgl_config_enum:659 - WGL returned 24 configs, 24 are usable
11:22:18.123412( 6960) [INFO:display] init qemu display
11:22:18.123412( 6960) [INFO:maru_sdl] qemu_ds_sdl_switch : (640, 480)
11:22:18.123412( 6960) [INFO:maru_sdl] create blank screen : (480, 800)
11:22:18.124412( 6960) [INFO:main] Start skin
11:22:18.124412( 6960) [INFO:main] construct main window
11:22:18.124412( 6960) [INFO:skin_server] There is no .skinconfig.properties. skin_config_path:C:\tizen-sdk-data\emulator\vms\m-0924-1\.skinconfig.properties
11:22:18.124412( 6960) [INFO:skin_server] skin parameter key : width, value : 480
11:22:18.124412( 6960) [INFO:skin_server] skin parameter key : height, value : 800
11:22:18.124412( 6960) [INFO:skin_server] skin parameter key : skin.path, value : C:\tizen-sdk\platforms\mobile-2.3.1\emulator-resources\skins\mobile-480x800-3btn
11:22:18.124412( 6960) [INFO:skin_server] ignore_heartbeat : 0
11:22:18.124412( 6960) [INFO:skin_client] sleep for ready. count:1
11:22:18.125413( 7412) [INFO:skin_server] run skin server
11:22:18.125413( 7412) [INFO:skin_server] success to bind port[127.0.0.1:62736/tcp] for skin_server in host
11:22:18.125413( 7412) [INFO:skin_server] skin server start...port : 62736
11:22:18.125413( 7412) [INFO:skin_server] start accepting socket...
11:22:18.135414( 1336) [INFO:skin_client] run skin client
11:22:18.135414( 1336) [INFO:skin_client] [skin args 0] width=480
11:22:18.135414( 1336) [INFO:skin_client] [skin args 1] height=800
11:22:18.135414( 1336) [INFO:skin_client] [skin args 2] skin.path=C:\tizen-sdk\platforms\mobile-2.3.1\emulator-resources\skins\mobile-480x800-3btn
11:22:18.135414( 1336) [INFO:skin_client] bin directory : C:\tizen-sdk\tools\emulator\bin\
11:22:18.135414( 1336) [INFO:skin_client] skin command length : 410
11:22:18.135414( 1336) [INFO:skin_client] command for swt : java -jar -Djava.library.path="C:\tizen-sdk\tools\emulator\bin" "C:\tizen-sdk\tools\emulator\bin\emulator-skin.jar" vm.skinport=62736 uid=0 vm.path="C:\tizen-sdk-data\emulator\vms\m-0924-1" vm.baseport=26100 display.shm=false input.touch=true input.touch.maxpoint=10 proxy.addr= proxy.port= "width=480" "height=800" "skin.path=C:\tizen-sdk\platforms\mobile-2.3.1\emulator-resources\skins\mobile-480x800-3btn"
*********ReSet hax_vcpu->emulation_state
11:22:18 INFO  vigs_device_reset:484 - VIGS reset
11:22:18.138414( 6960) [INFO:touchscreen] reset the touchscreen device
11:22:18.138414( 6960) [INFO:maru-camera] Closed
11:22:18.138414( 6960) [INFO:maru-camera] reset maru-camera device
11:22:18.138414( 6960) [INFO:brillcodec] device reset
11:22:18.138414( 6960) [INFO:hwkey] reset hwkey device
11:22:18.138414( 6960) [INFO:virtio-vmodem] virtio_vmodem_reset.
11:22:18.138414( 6960) [INFO:virtio-kbd] reset keyboard device
11:22:18.146415( 1336) [INFO:skin_client] wait for single object..
11:22:19.972597( 7412) [INFO:skin_server] accept client sock : 1336
11:22:20.392639( 7412) [INFO:skin_server] == RECV read_cnt:12 uid:0, req_id:1, cmd:1, length:24 data read_cnt:24 RECV_SKIN_OPENED ==
11:22:20.392639( 7412) [INFO:emul_state] emulator window scale_factor : 0.500000
11:22:20.392639( 7412) [INFO:skin_operation] start display : handle_id=137480, display size=480x800, scale factor=0.500000, rotation=0, blank guide=1
11:22:20.392639( 7412) [INFO:emul_state] emulator window scale_factor : 0.500000
11:22:20.392639( 7412) [INFO:maru_sdl] maru sdl init
11:22:20.392639( 7412) [INFO:maru_sdl] register SDL environment variable. (SDL_WINDOWID = 137480)
11:22:20.392639( 7412) [INFO:emul_state] emulator graphic resolution : 480x800
11:22:20.393639( 7412) [INFO:maru_sdl] set PIXMAN_FILTER_FAST filter for image processing
11:22:20.393639( 7412) [INFO:maru_finger] multi-touch state initialization
11:22:20.393639( 7412) [INFO:maru_finger] maxTouchPoint : 10
11:22:20.393639( 7412) [INFO:maru_sdl] blank guide is on
11:22:20.448645( 7412) [INFO:skin_operation] interpolation enable : 1
11:22:20.448645( 7412) [INFO:maru_sdl] set PIXMAN_FILTER_BEST filter for image processing
11:22:20.607661( 6960) [INFO:maru_sdl] SDL_Init
11:22:20.624662( 6960) [INFO:maru_sdl] sdl update thread create
11:22:20.624662( 6960) [INFO:maru_sdl] Set up a video mode with the specified width, height and bits-per-pixel
11:22:20.624662( 6960) [INFO:maru_sdl] SDL_SetVideoMode
11:22:22.486849( 7412) [INFO:skin_operation] skin grabbing enable : 1
11:22:22.546855( 7412) [INFO:skin_operation] skin grabbing enable : 0
11:22:27.044304( 5068) [INFO:virtio-kbd] reset keyboard device
11:22:27.047305( 5068) [INFO:virtio-vmodem] virtio_vmodem_reset.
11:22:27.049305( 5068) [INFO:hwkey] reset hwkey device
11:22:27.056306( 5068) [INFO:touchscreen] reset the touchscreen device
11:22:27.157316( 6960) [INFO:maru_sdl] qemu_ds_sdl_switch : (480, 800)
11:22:27.157316( 6960) [INFO:maru_sdl] create SDL screen : (480, 800)
11:22:27.287329( 5068) [INFO:maru-brightness] current brightness level = 100
11:22:32.566857( 6960) [INFO:skin_server] notify_sdb_daemon_start
11:22:32.570857( 6960) [INFO:sdb] Added new sdb client. ip: 127.0.0.1, port: 26097, serial: emulator-26101
11:22:32.570857( 6960) [INFO:sdb] send 001ahost:sync:emulator-26101:0 to client 127.0.0.1
11:22:32.570857( 6960) [INFO:skin_server] notify_sdb_daemon_start
11:22:37 INFO  [2221/2221] yagl_egl_wgl_config_enum:659 - WGL returned 24 configs, 24 are usable
11:22:38 INFO  [2222/2222] yagl_egl_wgl_config_enum:659 - WGL returned 24 configs, 24 are usable
11:22:41.244724( 5068) [INFO:ecs] emuld connection is 1, with sender 1, profile mobile-2.3.1
11:22:41.244724( 5068) [INFO:ecs] emuld connection is 1, with sender 0, profile mobile-2.3.1
11:22:41 INFO  [2235/2235] yagl_egl_wgl_config_enum:659 - WGL returned 24 configs, 24 are usable
11:22:42 INFO  [2280/2280] yagl_egl_wgl_config_enum:659 - WGL returned 24 configs, 24 are usable
11:22:47 INFO  [2361/2361] yagl_egl_wgl_config_enum:659 - WGL returned 24 configs, 24 are usable
11:22:51.610761( 5068) [INFO:ecs] emulator booting done.
11:22:51.610761( 5068) [INFO:emul_state] boot completed!
11:22:54.767076( 7412) [INFO:skin_operation] skin grabbing enable : 1
11:22:54.768076( 7412) [INFO:skin_operation] HW Key : event_type=1, keycode=139
keycode=139, event_type=1, event_queue_cnt=1, vqidx=0
11:22:54.861086( 7412) [INFO:skin_operation] skin grabbing enable : 0
11:22:54.861086( 7412) [INFO:skin_operation] HW Key : event_type=2, keycode=139
keycode=139, event_type=2, event_queue_cnt=1, vqidx=1
11:23:44.134013( 6564) [INFO:skin_server] [HB] recv_heartbeat_count : 2
11:24:07.025301( 7412) [INFO:skin_operation] skin grabbing enable : 1
11:24:07.087308( 7412) [INFO:skin_operation] skin grabbing enable : 0
11:24:34.139013( 6564) [INFO:skin_server] [HB] recv_heartbeat_count : 2

JVisualVM running from the shell:

sh-3.2# jvisualvm
crashed [1443069820] processname=java, pid=2619, tid=2619, signal=6[sys-assert]d
laddr returnes error!
[sys-assert]dladdr returnes error!
... repeated many times ...
[sys-assert]dladdr returnes error!
/usr/local/java/jdk1.8.0_60/lib/visualvm/platform/lib/nbexec: line 423:  2619 Ab
orted                 (core dumped) "/usr/local/java/jdk1.8.0_60/bin/java" -Djdk
.home="/usr/local/java/jdk1.8.0_60" -classpath "/usr/local/java/jdk1.8.0_60/lib/
visualvm/platform/lib/boot.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platform
/lib/org-openide-modules.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platform/l
ib/org-openide-util-lookup.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platform
/lib/org-openide-util.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platform/lib/
locale/boot_ja.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platform/lib/locale/
boot_zh_CN.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platform/lib/locale/org-
openide-modules_ja.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platform/lib/loc
ale/org-openide-modules_zh_CN.jar:/usr/local/java/jdk1.8.0_60/lib/visualvm/platf
orm/lib/locale/org-openide-util-lookup_ja.jar:/usr/local/java/jdk1.8.0_60/lib/vi
sualvm/platform/lib/locale/org-openide-util-lookup_zh_CN.jar:/usr/local/java/jdk
1.8.0_60/lib/visualvm/platform/lib/locale/org-openide-util_ja.jar:/usr/local/jav
a/jdk1.8.0_60/lib/visualvm/platform/lib/locale/org-openide-util_zh_CN.jar:/usr/l
ocal/java/jdk1.8.0_60/lib/dt.jar:/usr/local/java/jdk1.8.0_60/lib/tools.jar" -Dne
tbeans.default_userdir_root="/root/.visualvm" -Dnetbeans.dirs="/usr/local/java/j
dk1.8.0_60/lib/visualvm/visualvm:/usr/local/java/jdk1.8.0_60/lib/visualvm/profil
er:" -Dnetbeans.home="/usr/local/java/jdk1.8.0_60/lib/visualvm/platform" '-clien
t' '-Xms24m' '-Xmx256m' '-Dsun.jvmstat.perdata.syncWaitMs=10000' '-Dsun.java2d.n
oddraw=true' '-Dsun.java2d.d3d=false' '-Dnetbeans.keyring.no.master=true' '-Dplu
gin.manager.install.global=false' -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPa
th="/root/.visualvm/8u40/var/log/heapdump.hprof" org.netbeans.Main --cachedir "/
root/.cache/visualvm/8u40" --userdir "/root/.visualvm/8u40" "--branding" "visual
vm" 0<&0
sh-3.2#