Bug 14618 - openteacher crashing (flash-player-plugin vs Qt issue)
Summary: openteacher crashing (flash-player-plugin vs Qt issue)
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Anssi Hannula
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2014-11-20 18:18 CET by Alex Loginov
Modified: 2022-03-12 14:42 CET (History)
3 users (show)

See Also:
Source RPM: flash-player-plugin
CVE:
Status comment:


Attachments

Description Alex Loginov 2014-11-20 18:18:36 CET
Description of problem:
[user@localhost ~]$ openteacher
openjdk version "1.8.0_40"
OpenJDK Runtime Environment (build 1.8.0_40-b12)
OpenJDK Server VM (build 25.40-b16, mixed mode)

(python:24203): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(python:24203): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(python:24203): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(python:24203): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(python:24203): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(python:24203): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(python:24203): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(python:24203): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplay'

(python:24203): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(python:24203): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed

(python:24203): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(python:24203): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
ÐÑибка ÑегменÑиÑованиÑ/Error segmentation

Version-Release number of selected component (if applicable): openteacher-3.2-5.mga5.i586.rpm


How reproducible: always


Steps to Reproduce:
1. run openteacher and wait 3 sec.


Reproducible: 

Steps to Reproduce:
Alex Loginov 2014-11-20 21:48:08 CET

Assignee: bugsquad => shlomif
Keywords: (none) => Triaged

Comment 1 Shlomi Fish 2014-11-21 08:59:08 CET
Hi Alex,

openteacher runs fine here without a single warning on the console, on Mageia Linux 5 x86-64 Cauldron (Are you running it on i586?), on top of KDE 4. Can you check whether:

1. It happens in a new UNIX user account.

2. It happens with an English locale.

Regards,

-- Shlomi Fish
Comment 2 Alex Loginov 2014-11-21 14:51:04 CET
> 1. It happens in a new UNIX user account.

Yes

> 2. It happens with an English locale.

Yes
Comment 3 Shlomi Fish 2014-11-21 16:21:28 CET
(In reply to Alex Loginov from comment #2)
> > 1. It happens in a new UNIX user account.
> 
> Yes
> 
> > 2. It happens with an English locale.
> 
> Yes

I now tried running openteacher inside a fresh i586 Mageia 5/Cauldron VM , and it ran fine:

http://www.shlomifish.org/Files/files/images/openteacher-in-cauldron-i586.png

So I have no idea how to reproduce your problem. Maybe you have corrupt files.

Regards,

-- Shlomi Fish
Shlomi Fish 2014-11-23 13:39:50 CET

Status: NEW => ASSIGNED

Comment 4 Alex Loginov 2014-11-29 18:26:19 CET
Better output if to install faulthandler:

urpmi python-pip
pip install faulthandler
[user@localhost ~]$ openteacher
openjdk version "1.8.0_40"
OpenJDK Runtime Environment (build 1.8.0_40-b12)
OpenJDK Server VM (build 25.40-b16, mixed mode)

(python:18352): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplayManager'

(python:18352): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(python:18352): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed

(python:18352): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(python:18352): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(python:18352): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(python:18352): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(python:18352): GLib-GObject-WARNING **: cannot register existing type 'GdkDisplay'

(python:18352): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(python:18352): GLib-GObject-CRITICAL **: g_type_register_static: assertion 'parent_type > 0' failed

(python:18352): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0' failed

(python:18352): GLib-GObject-CRITICAL **: g_object_new: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
Fatal Python error: Segmentation fault

Current thread 0xb7335940 (most recent call first):
  File "/usr/lib/python2.7/site-packages/openteacher/modules/org/openteacher/gui/gui.py", line 433 in run
  File "/usr/lib/python2.7/site-packages/openteacher/modules/org/openteacher/uiController/uiController.py", line 145 in run
  File "/usr/lib/python2.7/site-packages/openteacher/modules/org/openteacher/event/event.py", line 35 in send
  File "/usr/lib/python2.7/site-packages/openteacher/modules/org/openteacher/execute/execute.py", line 143 in execute
  File "/usr/lib/python2.7/site-packages/openteacher/openteacher.py", line 48 in run
  File "/bin/openteacher", line 27 in <module>
Segmentation fault
Comment 5 Alex Loginov 2014-11-30 14:37:02 CET
Shlomi, hi,

You're lazy :) I contacted with author yesterday and he reproduced bug and I have solution today.

Answer from author:

I managed to track down the segfault. The following is a workaround:
- su
- mv
/usr/lib/python2.7/site-packages/openteacher/modules/org/openteacher/hiddenBrowser
/usr/lib/python2.7/site-packages/openteacher/modules/org/openteacher/_hiddenBrowser

This disables a feature that was never meant as much more than a simple
easter egg, users are not likely to miss it. There's already a bug
report open that would mitigate the problem a bit on OT's side. [1] The
problem ultimately is in QtWebKit/PyQt4, though, not in OpenTeacher.
This small but valid python script proves that: [2]. I recommend using
that code to open a bug report against QtWebKit.

[1]: https://bugs.launchpad.net/openteacher/+bug/1206600
[2]: http://paste.ubuntu.com/9313523/

Thanks again for reporting and I hope this helps,

-- 
Marten de Vries
Comment 6 Shlomi Fish 2014-11-30 15:40:31 CET
Hello Alex,

I am still unable to reproduce your bug and the script in the paste runs fine from what I see: http://paste.ubuntu.com/9313523/ . Do you know why I cannot reproduce it? I did everything I can think of. Is some web site blocked or filtered where you are?

Regards,

-- Shlomi Fish
Comment 7 Alex Loginov 2014-11-30 16:09:07 CET
Yesterday I corresponded with author: many reasons why this bug is not always reproducible: KDE, phonon, tesseract, cuneiform, etc. So, your preinstalled pkgs in distro are not the same with mine when I have a lot of preinstalled pkgs 3500+.

> Is some web site blocked or filtered where you are?
Yes. But I don't think it's a reason for segfault. Author reproduced bug in the Netherlands, where everything is OK with the Internet.

Will you apply workaround in openteacher pkg?
Comment 8 Shlomi Fish 2014-11-30 17:13:36 CET
(In reply to Alex Loginov from comment #7)
> Yesterday I corresponded with author: many reasons why this bug is not
> always reproducible: KDE, phonon, tesseract, cuneiform, etc. So, your
> preinstalled pkgs in distro are not the same with mine when I have a lot of
> preinstalled pkgs 3500+.
> 
> > Is some web site blocked or filtered where you are?
> Yes. But I don't think it's a reason for segfault. Author reproduced bug in
> the Netherlands, where everything is OK with the Internet.
> 
> Will you apply workaround in openteacher pkg?

Done:

http://pkgsubmit.mageia.org/

Fixed in openteach-3.2-6.mga5 . RESOLVing as FIXED.

Thanks for the report.

Regards,

-- Shlomi Fish

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED

Comment 9 Alex Loginov 2014-11-30 18:30:34 CET
Shlomi, It seems I found reason - flash-player-plugin.
A version of Qt doesn't mix with a version of Flash.
https://bugs.webkit.org/show_bug.cgi?id=90065
So, I reopened bug. Will you reproduce now after urpmi flash-player-plugin?

Anyway we needs workaround as enabled for openteacher while we will not find other better fix.

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)
CC: (none) => anssi.hannula

Comment 10 Shlomi Fish 2014-11-30 19:25:40 CET
(In reply to Alex Loginov from comment #9)
> Shlomi, It seems I found reason - flash-player-plugin.
> A version of Qt doesn't mix with a version of Flash.
> https://bugs.webkit.org/show_bug.cgi?id=90065
> So, I reopened bug. Will you reproduce now after urpmi flash-player-plugin?
> 

I can reproduce the problem after "urpmi flash-player-plugin". Good job on the investigation. 

> Anyway we needs workaround as enabled for openteacher while we will not find
> other better fix.

The workaround is already in the package.
Comment 11 Shlomi Fish 2014-12-01 18:05:38 CET
(In reply to Alex Loginov from comment #9)
> Shlomi, It seems I found reason - flash-player-plugin.
> A version of Qt doesn't mix with a version of Flash.
> https://bugs.webkit.org/show_bug.cgi?id=90065
> So, I reopened bug. Will you reproduce now after urpmi flash-player-plugin?
> 
> Anyway we needs workaround as enabled for openteacher while we will not find
> other better fix.

should we assign this bug to a different package?
Comment 12 Alex Loginov 2014-12-01 18:32:17 CET
I added to CC flash-player-plugin maintainer. Feel free to add somebody yet, you know Mageia people better, than I. It's total problem for distro and will be reproduced in other pkgs, so additional attention is good.
Comment 13 Shlomi Fish 2014-12-03 10:01:34 CET
Assigning to the flash-player-plugin package then.

Source RPM: openteacher => flash-player-plugin

Comment 14 Shlomi Fish 2014-12-21 08:42:43 CET
Reassigning to the flash-player-plugin maintainer.

Assignee: shlomif => anssi.hannula

Comment 15 Samuel Verschelde 2015-05-31 19:21:19 CEST
Adding KDE team in CC since it's apparently a problem between flash and Qt.

CC: (none) => lmenut, mageia
Whiteboard: (none) => MGA5TOO
Summary: openteacher crashing => openteacher crashing (flash-player-plugin vs Qt issue)

Samuel Verschelde 2015-05-31 19:21:25 CEST

Severity: normal => major

Luc Menut 2016-08-25 16:42:57 CEST

CC: lmenut => (none)

Comment 16 Morgan Leijström 2020-11-12 18:36:01 CET
I guess this bug is so old we can close it?
No further action for four years.
And soon flash is no more.

CC: (none) => fri

Comment 17 sturmvogel 2022-03-12 14:42:37 CET
Flashplayer is EOL since 31.12.2020 and got permanently blocked from execution 12.01.2021.

flash-player-plugin is not available anymore in MGA8 onwards.

Status: REOPENED => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.