New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spacenavd not working with blender .. Is this compiled with spacenav support? #18

Open
japrogramer opened this Issue Jun 3, 2018 · 9 comments

Comments

2 participants
@japrogramer
Copy link

japrogramer commented Jun 3, 2018

hello I am on linux, I run blender from the flathub flatpak
like this

$XAUTHORITY=$HOME/.Xauthority sudo spacenavd -v -d
$flatpak run org.blender.Blender

is it because it runs in a jail that it cant detect the magic sauce that spacenavd is doing

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented Jun 3, 2018

What if you run Blender with the following command?

$ flatpak run --device=all org.blender.Blender
@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented Jun 3, 2018

Seems another problem is that we build Blender with -DWITH_INPUT_NDOF:BOOL=OFF.

To enable that, we'd have to add the Spacenav libraries to the build.

I'll try to have a go at this.

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented Jun 3, 2018

@japrogramer Since I don't have the spacenab hardware I can't reproduce the problem or try to debug it.

However, maybe you can help me. 🙂

I'd like you to do the following, if possible:

  1. uninstall Blender from Flathub:

    $ flatpak uninstall org.blender.Blender
    
  2. download and install a bundle I just made (from #19) for testing purposes:

    $ wget https://www.daitauha.fr/static/blender.flatpak
    $ flatpak install --user blender.flatpak
    Installing for user: org.blender.Blender/x86_64/spacenav from bundle blender.flatpak
    
  3. run the test build:

    $ flatpak run org.blender.Blender//spacenav
    

Do things work?

bochecha added a commit that referenced this issue Jun 3, 2018

@bochecha bochecha referenced this issue Jun 3, 2018

Open

WIP: Spacenav #19

@japrogramer

This comment has been minimized.

Copy link
Author

japrogramer commented Jun 21, 2018

@bochecha sorry for the late respond everything was sent to spam on my email, so i didn't see it until now. I will try this tommorow in the morning when I am near my hardware.

@japrogramer

This comment has been minimized.

Copy link
Author

japrogramer commented Jun 23, 2018

@bochecha finally had the chance to install and run, it didn't work ..
I ran the program like you suggested and tha I ran it with all the devices passed like in the first comment

here is everything in my set up


▶ xauth -vib generate :0 . trusted
Attempting to break locks on authority file /home/archangel/.Xauthority
Ignoring locks on authority file /home/archangel/.Xauthority
authorization id is 1024
Ignoring locks and writing authority file /home/archangel/.Xauthority

~/Downloads
▶ XAUTHORITY=$HOME/.Xauthority sudo spacenavd -v -d
Spacenav daemon 0.6
failed to open config file /etc/spnavrc: No such file or directory. using defaults.
Device detection, parsing /proc/bus/input/devices
found usb device [46d:c626]: "3Dconnexion SpaceNavigator" (/dev/input/event17)
adding device.
device name: 3Dconnexion SpaceNavigator
  Number of axes: 6
using device: /dev/input/event17
trying to open X11 display ":0"
   XAUTHORITY=/home/archangel/.Xauthority
adding dev event for device: /dev/input/event17

flatpak run --device=all org.blender.Blender//spacenav

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented Jun 23, 2018

@japrogramer so you tested it… but then does it actually work? 🤔

@japrogramer

This comment has been minimized.

Copy link
Author

japrogramer commented Jun 23, 2018

@bochecha I mentioned that it didn't work, I should also mention that I'm running Wayland.

@bochecha

This comment has been minimized.

Copy link
Collaborator

bochecha commented Jun 23, 2018

Oh sorry, I missed it.

Did you get any output in the terminal when running Blender? Maybe try with --debug-all? (that might make it extremely verbose)

@japrogramer

This comment has been minimized.

Copy link
Author

japrogramer commented Jul 8, 2018

@bochecha i finally got to it, still doesn't work.
flatpak run --device=all org.blender.Blender//spacenav --debug-all

SRNA Subclassed: 'Context'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'PropertyGroup'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Bone'
SRNA Subclassed: 'EditBone'
SRNA Subclassed: 'PoseBone'
SRNA Subclassed: 'UIList'
SRNA Subclassed: 'Mesh'
SRNA Subclassed: 'Object'
SRNA Subclassed: 'Texture'
SRNA Subclassed: 'Header'
SRNA Subclassed: 'KeyingSetInfo'
SRNA Subclassed: 'Node'
SRNA Subclassed: 'NodeInternal'
SRNA Subclassed: 'ShaderNode'
SRNA Subclassed: 'CompositorNode'
SRNA Subclassed: 'TextureNode'
SRNA Subclassed: 'WindowManager'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'RenderEngine'
SRNA Subclassed: 'Panel'
SRNA Subclassed: 'Menu'
SRNA Subclassed: 'Operator'
SRNA Subclassed: 'PropertyGroup'
SRNA Subclassed: 'AddonPreferences'
I0708 14:15:12.349328     3 blender_python.cpp:186] Debug flags initialized to:
CPU flags:
  AVX2   : True
  AVX    : True
  SSE4.1 : True
  SSE3   : True
  SSE2   : True
  QBVH   : True
  Split  : False
CUDA flags:
 Adaptive Compile: False
OpenCL flags:
  Device type    : ALL
  Kernel type    : DEFAULT
  Debug          : False
  Single program : True
  Memory limit   : 0
Switching to fully guarded memory allocator.
read file /home/archangel/.var/app/org.blender.Blender/config/blender/2.79/config/userpref.blend
  Version 279 sub 0 date unknown hash unknown
Read prefs: /home/archangel/.var/app/org.blender.Blender/config/blender/2.79/config/userpref.blend
read file 
  Version 272 sub 2 date unknown hash unknown

ordered
 OBCube
 OBLamp
 OBCamera
ED_screen_refresh: set screen
FRS_set_context: context 0x0x7f231f314578 scene 0x0x7f231a1c2038
time bl_operators 0.1282
time bl_ui 0.3875
time keyingsets_builtins 0.0078
time nodeitems_builtins 0.0165
	addon_utils.enable io_scene_3ds
	addon_utils.enable io_scene_fbx
	addon_utils.enable io_anim_bvh
	addon_utils.enable io_mesh_ply
	addon_utils.enable io_scene_obj
	addon_utils.enable io_scene_x3d
	addon_utils.enable io_mesh_stl
	addon_utils.enable io_mesh_uv_layout
	addon_utils.enable io_curve_svg
	addon_utils.enable cycles
Python Script Load Time 0.6515
bpy.ops.wm.splash()
WM_operator_last_properties_store: storing properties for 'WM_OT_splash'
ghost_event_proc: window 1 state = maximized
ghost_event_proc: ghost redraw 1
ghost_event_proc: window 1 state = maximized
ghost_event_proc: ghost redraw 1

wm_event_do_handlers: Handling event
wmEvent  type:172 / OSKEY, val:1 / PRESS,
         shift:0, ctrl:0, alt:0, oskey:1, keymodifier:0,
         mouse:(812,683), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f23075fbef8
Thread 0: update object OBCamera
recalcob Camera
Thread 4: update object OBLamp
Thread 1: update object OBCube
recalcob Lamp
recalcob Cube
recalcdata Cube
Thread 0: total 1 objects in 0.000010 sec.
  Camera in 0.000010 sec
Thread 1: total 1 objects in 0.000229 sec.
  Cube in 0.000229 sec
Thread 2: total 0 objects in 0.000000 sec.
Thread 3: total 0 objects in 0.000000 sec.
Thread 4: total 1 objects in 0.000186 sec.
  Lamp in 0.000186 sec
Thread 5: total 0 objects in 0.000000 sec.
Thread 6: total 0 objects in 0.000000 sec.
Thread 7: total 0 objects in 0.000000 sec.
Scene updated 3 objects in 0.000296 sec
ED_screen_refresh: set screen

wm_event_do_handlers: Handling event
wmEvent  type:172 / OSKEY, val:2 / RELEASE,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(812,683), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f23079485f8

wm_event_do_handlers: Handling event
wmEvent  type:272 / TIMER, val:0 / NOTHING,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(719,644), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307949078

wm_event_do_handlers: Handling event
wmEvent  type:1 / LEFTMOUSE, val:1 / PRESS,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307949078

wm_event_do_handlers: Handling event
wmEvent  type:1 / LEFTMOUSE, val:2 / RELEASE,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038

wm_event_do_handlers: Handling event
wmEvent  type:215 / RIGHT_CTRL, val:1 / PRESS,
         shift:0, ctrl:1, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038

wm_event_do_handlers: Handling event
wmEvent  type:113 / Q, val:1 / PRESS,
         shift:0, ctrl:1, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038
wm_handlers_do_intern:       handled! 'WM_OT_quit_blender'

wm_event_do_handlers: Handling event
wmEvent  type:113 / Q, val:2 / RELEASE,
         shift:0, ctrl:1, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038

wm_event_do_handlers: Handling event
wmEvent  type:215 / RIGHT_CTRL, val:2 / RELEASE,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038

wm_event_do_handlers: Handling event
wmEvent  type:272 / TIMER, val:0 / NOTHING,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038

wm_event_do_handlers: Handling event
wmEvent  type:220 / RET, val:1 / PRESS,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038

wm_event_do_handlers: Handling event
wmEvent  type:272 / TIMER, val:0 / NOTHING,
         shift:0, ctrl:0, alt:0, oskey:0, keymodifier:0,
         mouse:(645,642), ascii:'', utf8:'', keymap_idname:(null), pointer:0x7f2307897038

Blender quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment