Crashes on Mac

Using the latest CI, I see crashes on Mac. I am not certain if it is a new bug. If I just start Quelea, then change to another application fort and back a few times Quelea crashes. OSX suggest to report this to Apple: https://pastebin.com/3VfCsCYv
Can I do anything to help investigate this?

Hey,

Thanks for the report. Could you confirm whether this happens in 2019.0, or 2019.1 beta as well? Or is it new behaviour since then?

Thanks,

It does not happen with 2019.0 - there the console logs this (when started via terminal)

May 27, 2019 5:20:01 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
May 27, 2019 5:20:01 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000401: using driver [org.hsqldb.jdbcDriver] at URL [jdbc:hsqldb:/Users/od/.quelea/database_new/database_new]
May 27, 2019 5:20:01 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000046: Connection properties: {dialect=org.hibernate.dialect.HSQLDialect, characterEncoding=utf8}
May 27, 2019 5:20:01 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000006: Autocommit mode: false
May 27, 2019 5:20:01 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
May 27, 2019 5:20:01 PM org.quelea.data.bible.Bible parseXML
INFO: Parsed bible: King James Version. Contains 66 books.
2019-05-27 17:20:08.123 Quelea[568:6167315] unrecognized type is 4294967295
2019-05-27 17:20:08.123 Quelea[568:6167315] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.40.119/AppKit.subproj/NSEvent.m:1977
2019-05-27 17:20:08.304 Quelea[568:6167315] unrecognized type is 4294967295
2019-05-27 17:20:08.304 Quelea[568:6167315] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.40.119/AppKit.subproj/NSEvent.m:1977
2019-05-27 17:20:08.878 Quelea[568:6167315] unrecognized type is 4294967295
2019-05-27 17:20:08.878 Quelea[568:6167315] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.40.119/AppKit.subproj/NSEvent.m:1977
2019-05-27 17:20:09.234 Quelea[568:6167315] unrecognized type is 4294967295
2019-05-27 17:20:09.234 Quelea[568:6167315] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.40.119/AppKit.subproj/NSEvent.m:1977
2019-05-27 17:20:09.586 Quelea[568:6167315] unrecognized type is 4294967295
2019-05-27 17:20:09.586 Quelea[568:6167315] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.40.119/AppKit.subproj/NSEvent.m:1977
2019-05-27 17:20:09.768 Quelea[568:6167315] unrecognized type is 4294967295

Latest CI says:

May 27, 2019 5:21:33 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
WARN: HHH000402: Using Hibernate built-in connection pool (not for production use!)
May 27, 2019 5:21:33 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000401: using driver [org.hsqldb.jdbcDriver] at URL [jdbc:hsqldb:/Users/od/.quelea/database_new/database_new]
May 27, 2019 5:21:33 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000046: Connection properties: {dialect=org.hibernate.dialect.HSQLDialect, characterEncoding=utf8}
May 27, 2019 5:21:33 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreator
INFO: HHH000006: Autocommit mode: false
May 27, 2019 5:21:33 PM org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO: HHH000115: Hibernate connection pool size: 20 (min=1)
2019-05-27 17:21:39.840 Quelea[587:6169410] unrecognized type is 4294967295
2019-05-27 17:21:39.840 Quelea[587:6169410] *** Assertion failure in -[NSEvent _initWithCGEvent:eventRef:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.40.119/AppKit.subproj/NSEvent.m:1977
2019-05-27 17:21:39.841 Quelea[587:6169410] Apple AWT Internal Exception: Invalid parameter not satisfying: _type > 0 && _type <= kCGSLastEventType
2019-05-27 17:21:39.842 Quelea[587:6169410] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Invalid parameter not satisfying: _type > 0 && _type <= kCGSLastEventType’
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2c0d4cf9 __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff56c68a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2c0efa16 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00007fff2e381e11 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 AppKit 0x00007fff296ae257 -[NSEvent _initWithCGEvent:eventRef:] + 3296
5 AppKit 0x00007fff299fa557 +[NSEvent eventWithCGEvent:] + 117
6 libglass.dylib 0x000000011c8e217b listenTouchEvents + 59
7 SkyLight 0x00007fff515b2454 _ZL19processEventTapDataPvjjjPhj + 157
8 SkyLight 0x00007fff514b2d64 _XPostEventTapData + 277
9 SkyLight 0x00007fff515b2359 ZL22eventTapMessageHandlerP12__CFMachPortPvlS1 + 132
10 CoreFoundation 0x00007fff2c036bf9 __CFMachPortPerform + 246
11 CoreFoundation 0x00007fff2c036af7 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 41
12 CoreFoundation 0x00007fff2c036a55 __CFRunLoopDoSource1 + 527
13 CoreFoundation 0x00007fff2c01ea3c __CFRunLoopRun + 2524
14 CoreFoundation 0x00007fff2c01de0e CFRunLoopRunSpecific + 455
15 Foundation 0x00007fff2e274a9f -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280
16 libglass.dylib 0x000000011c8cfad5 +[GlassApplication enterNestedEventLoopWithEnv:] + 165
17 libglass.dylib 0x000000011c8d051a Java_com_sun_glass_ui_mac_MacApplication__1enterNestedEventLoopImpl + 74
18 ??? 0x0000000107418667 0x0 + 4416702055
19 ??? 0x0000000107408040 0x0 + 4416634944
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6

I am currently not able to reproduce this consistently. I will get back if I find a pattern in it.

That’s a native crash, which is always a royal pain to narrow down. I’m not aware of anything we’ve changed in 2019.1 that would cause it, but unfortunately all that means is that there’s no obvious fix…!