You are Here:
Linux Lite 3.8 Final has been released. See the Release Announcements Section.




[ UBUNTU BUG ] python cryptography bug affecting Kodi

Author (Read 1030 times)

0 Members and 1 Guest are viewing this topic.

python cryptography bug affecting Kodi
« on: September 25, 2017, 04:18:02 AM »
 

ak-77

  • New to Forums
  • *
  • 3
    Posts
  • Country: nl
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.6 64bit

  • CPU: Intel Core I3

  • MEMORY: 6Gb
Hi everyone,

New Linux Lite user here. I have to say I am very impressed by how easy it has become to switch to Linux from Windows. Last time I tried was 15 years ago and I abandoned that pretty quickly after driver issues drove me nuts. This time around it was a breeze.
Anyway, I have installed Linux Lite on an old Acer Aspire laptop that I want to use as a HTPC. I installed Kodi 17.4 on it, and ran into serious crashing issues when using some plugins that stream content from the web (Youtube and Nederland24 plugins). This was fairly frustrating, since it seemed to happen only on the second time I opened Kodi after install. I could delete the .kodi folder and reinstall and everything was fine again, but the next time crashes started occurring again. After some searching, I found this thread (ignore the frustrated user vs developer fight), which pointed to this bug in Ubuntu 16.04, which has been solved in a later version. Updating the python cryptography and openssl packages to the Zesty versions, as suggested in the linked Kodi forum thread, solved the problems for me.
I have no idea how your policy is on matters like this, but since this seems to be a recognized bug in Ubuntu 16.04, would it be an idea to include these package updates in the automatic Linux Lite updates? 
 


Re: python cryptography bug affecting Kodi
« Reply #1 on: September 25, 2017, 04:33:05 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 5892
    Posts
  • Country: nz
  • Reputation: 523
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
It's better to leave this as a public report for information and let the maintainers push the fixes upstream. If you still have your Kodi crash log, please attach it. Cheers.
Download your free copy of Linux Lite today.

Jerry Bezencon
Linux Lite Creator

Learn to use your emotions to think, not think with your emotions.



 

Re: python cryptography bug affecting Kodi
« Reply #2 on: September 25, 2017, 04:55:58 AM »
 

ak-77

  • New to Forums
  • *
  • 3
    Posts
  • Country: nl
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 3.6 64bit

  • CPU: Intel Core I3

  • MEMORY: 6Gb
Hi Jerry,

Thanks for the quick reply. I will post the crashlogs later today since I am on a different computer right now.
Allard
edit: hereś one of the crashlogs:
00:05:35.730 T:140503543675264  NOTICE: special://profile/ is mapped to: special://masterprofile/
00:05:35.730 T:140503543675264  NOTICE: -----------------------------------------------------------------------
00:05:35.730 T:140503543675264  NOTICE: Starting Kodi (17.4 Git:20170822-nogitfound). Platform: Linux x86 64-bit
00:05:35.730 T:140503543675264  NOTICE: Using Release Kodi x64 build
00:05:35.730 T:140503543675264  NOTICE: Kodi compiled Nov  4 2012 by GCC 5.4.0 for Linux x86 64-bit version 4.4.76 (263244)
00:05:35.730 T:140503543675264  NOTICE: Running on Ubuntu 16.04.3 LTS, kernel: Linux x86 64-bit version 4.4.0-96-generic
00:05:35.730 T:140503543675264  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
00:05:35.730 T:140503543675264  NOTICE: Host CPU: Intel(R) Core(TM) i3 CPU M 380 @ 2.53GHz, 4 cores available
00:05:35.730 T:140503543675264  NOTICE: special://xbmc/ is mapped to: /usr/share/kodi
00:05:35.730 T:140503543675264  NOTICE: special://xbmcbin/ is mapped to: /usr/lib/x86_64-linux-gnu/kodi
00:05:35.730 T:140503543675264  NOTICE: special://xbmcbinaddons/ is mapped to: /usr/lib/x86_64-linux-gnu/kodi/addons
00:05:35.730 T:140503543675264  NOTICE: special://masterprofile/ is mapped to: /home/allard/.kodi/userdata
00:05:35.730 T:140503543675264  NOTICE: special://envhome/ is mapped to: /home/allard
00:05:35.730 T:140503543675264  NOTICE: special://home/ is mapped to: /home/allard/.kodi
00:05:35.730 T:140503543675264  NOTICE: special://temp/ is mapped to: /home/allard/.kodi/temp
00:05:35.730 T:140503543675264  NOTICE: special://logpath/ is mapped to: /home/allard/.kodi/temp
00:05:35.730 T:140503543675264  NOTICE: The executable running is: /usr/lib/x86_64-linux-gnu/kodi/kodi.bin
00:05:35.730 T:140503543675264  NOTICE: Local hostname: allard-Aspire-7739
00:05:35.730 T:140503543675264  NOTICE: Log File is located: /home/allard/.kodi/temp//kodi.log
00:05:35.730 T:140503543675264  NOTICE: -----------------------------------------------------------------------
00:05:35.745 T:140503543675264   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - Geen eigenschap ‘CanSuspend’
00:05:35.745 T:140503543675264   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - Geen eigenschap ‘CanHibernate’
00:05:35.808 T:140503543675264   ERROR: DBus: Error org.freedesktop.DBus.Error.InvalidArgs - Geen eigenschap ‘OnLowBattery’
00:05:35.810 T:140503543675264  NOTICE: load settings...
00:05:35.838 T:140503543675264  NOTICE: Found 1 Lists of Devices
00:05:35.838 T:140503543675264  NOTICE: Enumerated PULSE devices:
00:05:35.838 T:140503543675264  NOTICE:     Device 1
00:05:35.838 T:140503543675264  NOTICE:         m_deviceName      : Default
00:05:35.838 T:140503543675264  NOTICE:         m_displayName     : Default
00:05:35.838 T:140503543675264  NOTICE:         m_displayNameExtra: Default Output Device (PULSEAUDIO)
00:05:35.838 T:140503543675264  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
00:05:35.838 T:140503543675264  NOTICE:         m_channels        : FL,FR
00:05:35.838 T:140503543675264  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
00:05:35.838 T:140503543675264  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
00:05:35.838 T:140503543675264  NOTICE:         m_streamTypes     : No passthrough capabilities
00:05:35.838 T:140503543675264  NOTICE:     Device 2
00:05:35.838 T:140503543675264  NOTICE:         m_deviceName      : alsa_output.pci-0000_00_1b.0.analog-stereo
00:05:35.838 T:140503543675264  NOTICE:         m_displayName     : Intern geluid Analoog stereo
00:05:35.838 T:140503543675264  NOTICE:         m_displayNameExtra: Luidsprekers (PULSEAUDIO)
00:05:35.838 T:140503543675264  NOTICE:         m_deviceType      : AE_DEVTYPE_PCM
00:05:35.838 T:140503543675264  NOTICE:         m_channels        : FL,FR
00:05:35.838 T:140503543675264  NOTICE:         m_sampleRates     : 5512,8000,11025,16000,22050,32000,44100,48000,64000,88200,96000,176400,192000,384000
00:05:35.838 T:140503543675264  NOTICE:         m_dataFormats     : AE_FMT_U8,AE_FMT_S16NE,AE_FMT_S24NE3,AE_FMT_S24NE4,AE_FMT_S32NE,AE_FMT_FLOAT
00:05:35.838 T:140503543675264  NOTICE:         m_streamTypes     : No passthrough capabilities
00:05:35.843 T:140503543675264  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)
00:05:35.843 T:140503543675264  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)
00:05:35.843 T:140503543675264  NOTICE: Default Video Player: VideoPlayer
00:05:35.843 T:140503543675264  NOTICE: Default Audio Player: paplayer
00:05:35.843 T:140503543675264  NOTICE: Disabled debug logging due to GUI setting. Level 0.
00:05:35.843 T:140503543675264  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"
00:05:35.843 T:140503543675264  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
00:05:35.844 T:140503543675264  NOTICE: Loaded playercorefactory configuration
00:05:35.844 T:140503543675264  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
00:05:35.844 T:140503543675264  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
00:05:35.852 T:140503543675264  NOTICE: Running database version Addons27
00:05:35.983 T:140503543675264  NOTICE: ADDONS: Using repository repository.xbmc.org
00:05:35.993 T:140503019452160  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 150 ms
00:05:36.055 T:140503543675264  NOTICE: Checking resolution 16
00:05:36.222 T:140503543675264  NOTICE: Using visual 0x20
00:05:36.230 T:140503543675264  NOTICE: GL_VENDOR = Intel Open Source Technology Center
00:05:36.230 T:140503543675264  NOTICE: GL_RENDERER = Mesa DRI Intel(R) Ironlake Mobile
00:05:36.230 T:140503543675264  NOTICE: GL_VERSION = 2.1 Mesa 17.0.7
00:05:36.230 T:140503543675264  NOTICE: GL_SHADING_LANGUAGE_VERSION = 1.20
00:05:36.230 T:140503543675264  NOTICE: GL_EXTENSIONS = GL_ARB_multisample GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_copy_texture GL_EXT_polygon_offset GL_EXT_subtexture GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_compiled_vertex_array GL_EXT_texture GL_EXT_texture3D GL_IBM_rasterpos_clip GL_ARB_point_parameters GL_EXT_draw_range_elements GL_EXT_packed_pixels GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_separate_specular_color GL_EXT_texture_edge_clamp GL_SGIS_generate_mipmap GL_SGIS_texture_border_clamp GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_ARB_framebuffer_sRGB GL_ARB_multitexture GL_EXT_framebuffer_sRGB GL_IBM_multimode_draw_arrays GL_IBM_texture_mirrored_repeat GL_3DFX_texture_compression_FXT1 GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_transpose_matrix GL_EXT_blend_func_separate GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_secondary_color GL_EXT_texture_env_add GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod_bias GL_INGR_blend_func_separate GL_NV_blend_square GL_NV_light_max_exponent GL_NV_texgen_reflection GL_NV_texture_env_combine4 GL_S3_s3tc GL_SUN_multi_draw_arrays GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_EXT_framebuffer_object GL_EXT_texture_compression_s3tc GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_MESA_window_pos GL_NV_packed_depth_stencil GL_NV_texture_rectangle GL_ARB_depth_texture GL_ARB_occlusion_query GL_ARB_shadow GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_window_pos GL_EXT_stencil_two_side GL_EXT_texture_cube_map GL_NV_depth_clamp GL_APPLE_packed_pixels GL_APPLE_vertex_array_object GL_ARB_draw_buffers GL_ARB_fragment_program GL_ARB_fragment_shader GL_ARB_shader_objects GL_ARB_vertex_program GL_ARB_vertex_shader GL_ATI_draw_buffers GL_ATI_texture_env_combine3 GL_ATI_texture_float GL_EXT_shadow_funcs GL_EXT_stencil_wrap GL_MESA_pack_invert GL_NV_primitive_restart GL_ARB_depth_clamp GL_ARB_fragment_program_shadow GL_ARB_half_float_pixel GL_ARB_occlusion_query2 GL_ARB_point_sprite GL_ARB_shading_language_100 GL_ARB_sync GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ATI_blend_equation_separate GL_EXT_blend_equation_separate GL_OES_read_format GL_ARB_color_buffer_float GL_ARB_pixel_buffer_object GL_ARB_texture_compression_rgtc GL_ARB_texture_float GL_ARB_texture_rectangle GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_rectangle GL_EXT_texture_sRGB GL_EXT_texture_shared_exponent GL_ARB_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_packed_depth_stencil GL_APPLE_object_purgeable GL_ARB_vertex_array_object GL_ATI_separate_stencil GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_gpu_program_parameters GL_EXT_texture_array GL_EXT_texture_integer GL_EXT_texture_sRGB_decode GL_EXT_timer_query GL_OES_EGL_image GL_ARB_copy_buffer GL_ARB_depth_buffer_float GL_ARB_draw_instanced GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_map_buffer_range GL_ARB_texture_rg GL_ARB_texture_swizzle GL_ARB_vertex_array_bgra GL_EXT_texture_swizzle GL_EXT_vertex_array_bgra GL_NV_conditional_render GL_AMD_seamless_cubemap_per_texture GL_ARB_ES2_compatibility GL_ARB_debug_output GL_ARB_draw_elements_base_vertex GL_ARB_explicit_attrib_location GL_ARB_fragment_coord_conventions GL_ARB_provoking_vertex GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_shader_texture_lod GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_vertex_type_2_10_10_10_rev GL_EXT_provoking_vertex GL_EXT_texture_snorm GL_MESA_texture_signed_rgba GL_NV_texture_barrier GL_ARB_get_program_binary GL_ARB_robustness GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_compressed_texture_pixel_storage GL_ARB_internalformat_query GL_ARB_map_buffer_alignment GL_ARB_shading_language_packing GL_ARB_texture_storage GL_AMD_shader_trinary_minmax GL_ARB_arrays_of_arrays GL_ARB_clear_buffer_object GL_ARB_copy_image GL_ARB_explicit_uniform_location GL_ARB_invalidate_subdata GL_ARB_program_interface_query GL_ARB_vertex_attrib_binding GL_KHR_debug GL_KHR_robustness GL_ARB_buffer_storage GL_ARB_clear_texture GL_ARB_internalformat_query2 GL_ARB_multi_bind GL_ARB_seamless_cubemap_per_texture GL_ARB_shader_draw_parameters GL_ARB_texture_mirror_clamp_to_edge GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_clip_control GL_ARB_get_texture_sub_image GL_ARB_pipeline_statistics_query GL_ARB_texture_barrier GL_EXT_polygon_offset_clamp GL_KHR_blend_equation_advanced GL_KHR_context_flush_control
00:05:36.588 T:140503036237568  NOTICE: Running database version Addons27
00:05:36.590 T:140503036237568  NOTICE: Running database version ViewModes6
00:05:36.592 T:140503036237568  NOTICE: Running database version Textures13
00:05:36.597 T:140503036237568  NOTICE: Running database version MyMusic60
00:05:36.605 T:140503036237568  NOTICE: Running database version MyVideos107
00:05:36.608 T:140503036237568  NOTICE: Running database version TV29
00:05:36.610 T:140503036237568  NOTICE: Running database version Epg11
00:05:36.615 T:140503543675264  NOTICE: start dvd mediatype detection
00:05:36.837 T:140503543675264 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"
00:05:36.978 T:140503543675264  NOTICE: initialize done
00:05:36.978 T:140503543675264  NOTICE: Running the application...
00:05:36.983 T:140503543675264  NOTICE: starting zeroconf publishing
00:05:36.984 T:140503543675264  NOTICE: starting upnp client
00:05:36.987 T:140501441300224  NOTICE: ES: Starting UDP Event server on port 9777
00:05:36.987 T:140501441300224  NOTICE: UDP: Listening on port 9777 (ipv6 : false)
00:05:39.922 T:140502049728256  NOTICE: [plugin.video.youtube] Startup: detected Krypton (Kodi-17.4), setting DASH_SUPPORT_BUILTIN = False, DASH_SUPPORT_ADDON = True
00:05:43.340 T:140502058821376   ERROR: GetDirectory - Error getting
00:05:46.266 T:140503543675264   ERROR: Previous line repeats 6 times.
00:05:46.266 T:140503543675264   ERROR: GetDirectory - Error getting addons://sources/
00:05:46.266 T:140503543675264   ERROR: CGUIMediaWindow::GetDirectory(addons://sources/) failed
00:06:07.056 T:140502024550144   ERROR: GetDirectory - Error getting
00:06:36.266 T:140502024550144   ERROR: Previous line repeats 2 times.
00:06:36.266 T:140502024550144   ERROR: ExtractFrame: Could not decode a frame
00:06:41.974 T:140503543675264   ERROR: Control 55 in window 10025 has been asked to focus, but it can't
00:06:44.908 T:140502069163776 WARNING: [plugin.video.youtube] Switching API key set from  to 1
00:06:45.310 T:140502069163776  NOTICE: [plugin.video.youtube] Running: YouTube (5.4.5) on Krypton (Kodi-17.4) with Python 2.7.12
00:06:52.454 T:140502069163776  NOTICE: Previous line repeats 2 times.
00:06:52.454 T:140502069163776   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <class 'requests.exceptions.SSLError'>
                                            Error Contents: ('bad handshake: SysCallError(0, None)',)
                                            Traceback (most recent call last):
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/runner.py", line 40, in run
                                                __RUNNER__.run(provider, context)
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/impl/xbmc/xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 83, in navigate
                                                self._process_wizard(context)
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/abstract_provider.py", line 73, in _process_wizard
                                                wizard_step[0](*wizard_step[1])
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_setup_wizard.py", line 58, in process
                                                _process_language(provider, context)
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/helper/yt_setup_wizard.py", line 16, in _process_language
                                                json_data = client.get_supported_languages(kodi_language)
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 104, in get_supported_languages
                                                return self._perform_v3_request(method='GET', path='i18nLanguages', params=params)
                                              File "/home/allard/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/youtube/client/youtube.py", line 636, in _perform_v3_request
                                                result = requests.get(_url, params=_params, headers=_headers, verify=self._verify, allow_redirects=allow_redirects)
                                              File "/home/allard/.kodi/addons/script.module.requests/lib/requests/api.py", line 70, in get
                                                return request('get', url, params=params, **kwargs)
                                              File "/home/allard/.kodi/addons/script.module.requests/lib/requests/api.py", line 56, in request
                                                return session.request(method=method, url=url, **kwargs)
                                              File "/home/allard/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 488, in request
                                                resp = self.send(prep, **send_kwargs)
                                              File "/home/allard/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 609, in send
                                                r = adapter.send(request, **kwargs)
                                              File "/home/allard/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 497, in send
                                                raise SSLError(e, request=request)
                                            SSLError: ('bad handshake: SysCallError(0, None)',)
                                            -->End of Python script error report<--
00:06:52.580 T:140503543675264   ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/
00:06:52.581 T:140503543675264   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/) failed
00:07:06.711 T:140503543675264   ERROR: GetDirectory - Error getting addons://sources/
00:07:06.711 T:140503543675264   ERROR: CGUIMediaWindow::GetDirectory(addons://sources/) failed
00:07:17.015 T:140502024550144   ERROR: ExtractFrame: Could not decode a frame

Last Edit: September 25, 2017, 06:33:11 PM by ak-77
 


Tags:
 


Linux Lite 3.8 Final has been released. See the Release Announcements Section.