Denna icon indicating copy to clipboard operation
Denna copied to clipboard

Background tasks suck in Realm Database CRUD

Open Mohsens22 opened this issue 6 years ago • 5 comments

Mohsens22 avatar Aug 20 '18 01:08 Mohsens22

Native debugging needed

Mohsens22 avatar Aug 21 '18 23:08 Mohsens22

image

'backgroundTaskHost.exe' (CoreCLR: CoreCLR_UWP_Domain): Loaded 'C:\Users\mohse\source\repos\Denna2\Denna\Denna\bin\x86\Debug\AppX\System.Linq.Queryable.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled. Exception thrown: 'System.Exception' in Realm.dll An exception of type 'System.Exception' occurred in Realm.dll but was not handled in user code Realm accessed from incorrect thread.

The thread 0x74e8 has exited with code 0 (0x0). The thread 0x5cc0 has exited with code 0 (0x0). The thread 0x7664 has exited with code 0 (0x0). The thread 0x453c has exited with code 0 (0x0). The thread 0x14b8 has exited with code 0 (0x0). The thread 0x788c has exited with code 0 (0x0). The thread 0x7a2c has exited with code 0 (0x0). The thread 0x75ec has exited with code 0 (0x0). The thread 0x3344 has exited with code 0 (0x0). The thread 0x79f8 has exited with code 0 (0x0). The thread 0x1ff0 has exited with code 0 (0x0). The thread 0x4a98 has exited with code 0 (0x0). The program '[11700] backgroundTaskHost.exe' has exited with code 1 (0x1).

Mohsens22 avatar Aug 25 '18 00:08 Mohsens22

@Mohsens22 Can you code that it checks if the app is open, it passes the todo to the app and let the app add it?

rmclassic avatar Aug 25 '18 06:08 rmclassic

@rmclassic Yes but I need to investigate issue and fix threading. Then we can. Go for further things

Mohsens22 avatar Aug 25 '18 06:08 Mohsens22

https://github.com/realm/realm-dotnet/issues/1762

Mohsens22 avatar Aug 25 '18 10:08 Mohsens22