Bug 130378 - Switch from 6.2 to 6.3,Extension Java Development, Fatal Exception: Signal 6 / Core Dumps / Unstable API ?
Summary: Switch from 6.2 to 6.3,Extension Java Development, Fatal Exception: Signal 6 ...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Extensions (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-03 09:47 UTC by Michael Massee
Modified: 2020-12-07 04:13 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Massee 2020-02-03 09:47:11 UTC
Description:
I switched my Extension Development from Lo 6.2 to 6.3

6.2 was nice Stable, never had Coredumps etc.

Now getting Application errors wich i don't understand.
obviously i do something Bad/Wrong, so i tried several Refectories without any progress, now i am at the end of my Ideas.

Linux Ubuntu 18.04.3 LTS 

openjdk version "1.8.0_232"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)

So i can deal witch any Java-Exceptions, but these Dumps are not helping me, to get me Code clean.

Maybe your experts can give me a clue.

thanks, regards

--------------------------------------------------

Warning Message i get:

(soffice:17123): Gdk-WARNING **: 10:09:48.013: XSetErrorHandler() called with a GDK error trap pushed. Don't do that.

Errors and Dumps i get:

Application Error


Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x1368e)[0x7f96c5cd368e]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3bac6)[0x7f96c5cfbac6]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f96c590df20]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f96c590de97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f96c590f801]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2d6cbf2)[0x7f96c8c86bf2]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application5AbortERKN3rtl8OUStringE+0xa2)[0x7f96c8bfc402]
/usr/lib/libreoffice/program/libmergedlo.so(+0x1c76f40)[0x7f96c7b90f40]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2ce93b4)[0x7f96c8c033b4]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x16832)[0x7f96c5cd6832]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3b98f)[0x7f96c5cfb98f]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(+0x86431d)[0x7f9683d2531d]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(JVM_handle_linux_signal+0x189)[0x7f9683d29f19]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(+0x85c7e8)[0x7f9683d1d7e8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f96c590df20]
/usr/lib/libreoffice/program/libsclo.so(+0x3465e4)[0x7f9686b145e4]
/usr/lib/libreoffice/program/libsclo.so(+0x35d2cd)[0x7f9686b2b2cd]
/usr/lib/libreoffice/program/libsclo.so(+0x4feb8a)[0x7f9686cccb8a]
/usr/lib/libreoffice/program/libsclo.so(+0x4fec57)[0x7f9686cccc57]
/usr/lib/libreoffice/program/libsclo.so(+0x4ff869)[0x7f9686ccd869]
/usr/lib/libreoffice/program/libsclo.so(+0x3c2522)[0x7f9686b90522]
/usr/lib/libreoffice/program/libsclo.so(_ZN16ScCellRangesBase9Find_ImplERKN3com3sun4star3uno9ReferenceINS2_4util17XSearchDescriptorEEEPK9ScAddress+0x15f)[0x7f968720bf2f]
/usr/lib/libreoffice/program/libsclo.so(_ZN16ScCellRangesBase9findFirstERKN3com3sun4star3uno9ReferenceINS2_4util17XSearchDescriptorEEE+0x49)[0x7f968720c119]
/usr/lib/libreoffice/program/libgcc3_uno.so(+0x9092)[0x7f96ad830092]
/usr/lib/libreoffice/program/libgcc3_uno.so(+0x8155)[0x7f96ad82f155]
/usr/lib/libreoffice/program/libgcc3_uno.so(+0x8a5a)[0x7f96ad82fa5a]
/usr/lib/libreoffice/program/libjava_uno.so(+0x12bee)[0x7f962edf4bee]
/usr/lib/libreoffice/program/libjava_uno.so(Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call+0x2df)[0x7f962edf51df]
[0x7f9673f24456]
Aborted (core dumped)




Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x1368e)[0x7ff65d89e68e]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3bac6)[0x7ff65d8c6ac6]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7ff65d4d8f20]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7ff65d4d8e97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7ff65d4da801]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2d6cbf2)[0x7ff660851bf2]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application5AbortERKN3rtl8OUStringE+0xa2)[0x7ff6607c7402]
/usr/lib/libreoffice/program/libmergedlo.so(+0x1c76f40)[0x7ff65f75bf40]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2ce93b4)[0x7ff6607ce3b4]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x16832)[0x7ff65d8a1832]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3b98f)[0x7ff65d8c698f]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(+0x86431d)[0x7ff61b8d831d]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(JVM_handle_linux_signal+0x189)[0x7ff61b8dcf19]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(+0x85c7e8)[0x7ff61b8d07e8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7ff65d4d8f20]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2b1355d)[0x7ff6605f855d]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN12OutputDevice12DrawGradientERKN5tools11PolyPolygonERK8Gradient+0x36d)[0x7ff6605fb78d]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN12OutputDevice12DrawGradientERKN5tools9RectangleERK8Gradient+0x4b)[0x7ff6605fb81b]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN12OutputDevice21DrawGradientWallpaperEllllRK9Wallpaper+0xd8)[0x7ff6605fc848]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN3vcl6Window5EraseER12OutputDevice+0xbd)[0x7ff660454c7d]
/usr/lib/libreoffice/program/libmergedlo.so(+0x296ffdb)[0x7ff660454fdb]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970a05)[0x7ff660455a05]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970deb)[0x7ff660455deb]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970f02)[0x7ff660455f02]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2970dbc)[0x7ff660455dbc]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2971680)[0x7ff660456680]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN9Scheduler21ProcessTaskSchedulingEv+0x1fb)[0x7ff6607b7f6b]
/usr/lib/libreoffice/program/libvclplug_gtk3lo.so(+0xc6c0a)[0x7ff648e87c0a]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x155)[0x7ff65b4ee285]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4c650)[0x7ff65b4ee650]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c)[0x7ff65b4ee6dc]
/usr/lib/libreoffice/program/libvclplug_gtk3lo.so(+0xc8274)[0x7ff648e89274]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2ce1f02)[0x7ff6607c6f02]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application7ExecuteEv+0x45)[0x7ff6607c8dd5]
/usr/lib/libreoffice/program/libmergedlo.so(+0x1c7d29b)[0x7ff65f76229b]
/usr/lib/libreoffice/program/libmergedlo.so(_Z10ImplSVMainv+0x46)[0x7ff6607d00d6]
/usr/lib/libreoffice/program/libmergedlo.so(soffice_main+0x115)[0x7ff65f783105]
soffice.bin(+0x78b)[0x5559943e378b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7)[0x7ff65d4bbb97]
soffice.bin(+0x7ca)[0x5559943e37ca]
Aborted (core dumped)








Actual Results:
Clear error Message

Expected Results:
Clear error Message/Exception what is going wrong


Reproducible: Sometimes


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Comment 1 Michael Massee 2020-02-03 11:56:08 UTC
okay after do more debuging, one of many examples for a core dump

just a code snippet


		try {
			XSearchable xSearchableFromRange = getXSearchableFromRange(rangePos);
			XSearchDescriptor searchDescriptor = xSearchableFromRange.createSearchDescriptor();
			searchDescriptor.setSearchString(".*");
			searchDescriptor.setPropertyValue("SearchBackwards", true); // letzte eintrag suchen
			searchDescriptor.setPropertyValue("SearchRegularExpression", true);
			result = getRangePositionFromResult(xSearchableFromRange, searchDescriptor);

		} catch (IllegalArgumentException | UnknownPropertyException | PropertyVetoException | WrappedTargetException e) {
			logger.fatal(e);
		}
		return result;
	}

	private Position getRangePositionFromResult(XSearchable xSearchableFromRange, XSearchDescriptor searchDescriptor) {
		Position result = null;

// CORE DUMP by findfirst
		Object findFirstResult = xSearchableFromRange.findFirst(searchDescriptor);

		XCellRange xCellRangeResult = UnoRuntime.queryInterface(XCellRange.class, findFirstResult);
		if (xCellRangeResult != null) {
			XCellRangeAddressable xCellRangeAddressable = UnoRuntime.queryInterface(XCellRangeAddressable.class, xCellRangeResult);
			CellRangeAddress cellRangeAddress = xCellRangeAddressable.getRangeAddress();
			result = Position.from(cellRangeAddress.StartColumn, cellRangeAddress.StartRow);
		}
		return result;
	}



Application Error


Fatal exception: Signal 6
Stack:
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x1368e)[0x7f16ca04368e]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3bac6)[0x7f16ca06bac6]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f16c9c7df20]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7f16c9c7de97]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7f16c9c7f801]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2d6cbf2)[0x7f16ccff6bf2]
/usr/lib/libreoffice/program/libmergedlo.so(_ZN11Application5AbortERKN3rtl8OUStringE+0xa2)[0x7f16ccf6c402]
/usr/lib/libreoffice/program/libmergedlo.so(+0x1c76f40)[0x7f16cbf00f40]
/usr/lib/libreoffice/program/libmergedlo.so(+0x2ce93b4)[0x7f16ccf733b4]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x16832)[0x7f16ca046832]
/usr/lib/libreoffice/program/libuno_sal.so.3(+0x3b98f)[0x7f16ca06b98f]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(+0x86431d)[0x7f168372631d]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(JVM_handle_linux_signal+0x189)[0x7f168372af19]
/usr/lib/jvm/adoptopenjdk-8-jdk-hotspot/jre/lib/amd64/server/libjvm.so(+0x85c7e8)[0x7f168371e7e8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3ef20)[0x7f16c9c7df20]
/usr/lib/libreoffice/program/libsclo.so(+0x3465e4)[0x7f168a6a15e4]
/usr/lib/libreoffice/program/libsclo.so(+0x35d2cd)[0x7f168a6b82cd]
/usr/lib/libreoffice/program/libsclo.so(+0x4feb8a)[0x7f168a859b8a]
/usr/lib/libreoffice/program/libsclo.so(+0x4fec57)[0x7f168a859c57]
/usr/lib/libreoffice/program/libsclo.so(+0x4ff869)[0x7f168a85a869]
/usr/lib/libreoffice/program/libsclo.so(+0x3c2522)[0x7f168a71d522]
/usr/lib/libreoffice/program/libsclo.so(_ZN16ScCellRangesBase9Find_ImplERKN3com3sun4star3uno9ReferenceINS2_4util17XSearchDescriptorEEEPK9ScAddress+0x15f)[0x7f168ad98f2f]
/usr/lib/libreoffice/program/libsclo.so(_ZN16ScCellRangesBase9findFirstERKN3com3sun4star3uno9ReferenceINS2_4util17XSearchDescriptorEEE+0x49)[0x7f168ad99119]
/usr/lib/libreoffice/program/libgcc3_uno.so(+0x9092)[0x7f16b1ba0092]
/usr/lib/libreoffice/program/libgcc3_uno.so(+0x8155)[0x7f16b1b9f155]
/usr/lib/libreoffice/program/libgcc3_uno.so(+0x8a5a)[0x7f16b1b9fa5a]
/usr/lib/libreoffice/program/libjava_uno.so(+0x12bee)[0x7f16149cbbee]
/usr/lib/libreoffice/program/libjava_uno.so(Java_com_sun_star_bridges_jni_1uno_JNI_1proxy_dispatch_1call+0x2df)[0x7f16149cc1df]
[0x7f1673aa1a96]
Aborted (core dumped)
Comment 2 Michael Massee 2020-02-03 20:17:00 UTC
Sorry, 
i do not want!! to roll back to 6.2.8.2. but this version runs like Rock!

so i stay with 6.2.x for now, and continue here.

i will setup a virtual box, to test 6.3 / 6.4.

as i said, without an error Message, or any other analyze tools, i am lost with these core dumps ....

pure virtual method called
terminate called without an active exception
Application Error


regards
Comment 3 Xisco Faulí 2020-02-13 13:09:36 UTC
Hello Michael,
Would it be possible to attach the extension? I could help us to find where the problem was introduced
Comment 4 Michael Massee 2020-02-13 20:48:54 UTC
(In reply to Xisco Faulí from comment #3)
> Hello Michael,
> Would it be possible to attach the extension? I could help us to find where
> the problem was introduced

Hallo Xisco,

your welcome to download the extension from here:
https://github.com/michaelmassee/Petanque-Turnier-Manager/releases

also the Sourcecode is free from my Github repo.

I did a lot of refactory in the last couple of weeks, did test on several hardware, virtual box, Linux, Windows, 6.3 and 6.4 versions, clean Install, etc etc ... 

to get these damned!! core dumps under control.

and i think it is a waste of time for you. Maybe fix one of (my?/yours?) issue.
 
Much better for me is. 
Just simply thow a Java Exption, with a clear and decent error message.

so i have a chance to fix it myself.

regards
Comment 5 Michael Massee 2020-02-13 21:38:28 UTC
to reproduce

Version: 6.4.0.3 (x64)
Build-ID: b0a288ab3d2d4774cb44b62f04d5d28733ac6df8
CPU-Threads: 1; BS: Windows 10.0 Build 18363; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded

install in Windows from here the latest Version
https://github.com/michaelmassee/Petanque-Turnier-Manager/releases/tag/v2.1.0

Open a new Calc Document, and open the Sidebar with the Extensionview Activ
now click any of the sub menu items in "Beispiel Turniere".
generates a lot of stuff.

then leave this Calc Document Open, and open a second one, do the same thing.
again generate some examples.

now try to close one of the documents.

Crashes, and i have no idea.
Comment 6 QA Administrators 2020-02-15 06:51:44 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2020-05-09 13:03:54 UTC
(In reply to Michael Massee from comment #5)
> Open a new Calc Document, and open the Sidebar with the Extensionview Activ
> now click any of the sub menu items in "Beispiel Turniere".
> generates a lot of stuff.

The extension installation does not create the menu PétTurnMngr as shown in the screenshot in Github readme. Perhaps this is due to changes in the menu structure between LibreOffice versions? Can you check?

Tested on Win 10 with 6.4.3
Comment 8 QA Administrators 2020-11-06 04:20:59 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2020-12-07 04:13:14 UTC
Dear Michael Massee,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp