Fenix 5 (and 5x..) restarts after calling session.stop() or save()

Former Member
Former Member
Fenix 5 devices (not the simulator) crash after calling the stop() or save() Method in ActivityRecording. On all other devices this problem seems not to occurr. Here is the critical code using a global variable $.sessi as ActivityRecording session

if($.sessi ==null ){
$.sessi = Record.createSession({:name=>"Windsurf", :sport=>Record.SPORT_GENERIC, :subSport=> Record.SUB_SPORT_OPEN_WATER});
// add fit contributions...
}
if($.sessi!= null){$.sessi.start();}
// start some timers and use the app, i.e. write fit contributions and position data etc to session object

if($.sessi != null && $.sessi.isRecording()){$.sessi.stop(); } // this crashes on Fenix 5 devices (not the simulator)
// $.sessi.save() would also crash

Here is the ERR_LOG that is created:

2697 (fenix 5) SW ver: 800
Build Type: RELEASE
Commit:69dc7dd85170711d5aca6a61ddc37388f1bb6e0b
ESN: 3956477964
02/26/18 18:54:37
RTL
errnum: 0x034
r0: 0x2000c2b0
r1: 0x000000fd
r2: 0x00000000
r3: 0x00000000
r4: 0x000013c4
r5: 0x20055b10
r6: 0x2005f1a5
r7: 0x80000004
r8: 0x00077bc9
r9: 0x00000000
r10: 0x491b7893
r11: 0x14730bc3
r12: 0x00dcc7f2
r13: 0x00000001
r14: 0x2000beb0
r15: 0x0008b6d1
r16: 0x0007c500
r17: 0x41070000
r18: 0x40000000
r19: 0x00000400
r20: 0xe000ed38
r21: 0xe000ed34
r22: 0x00000000
Stack frame PC, SP: 0x000bf3b5, 0x2000bdf0
Call Stack - SP at 0x2000bdf0:
0x0006f75b
0x00077bc9
0x00002231
0x00077bc9
0x0008b6d1
0x0008b6d1
0x000d6e97
0x1048f135
0x00005709
0x104933bd
0x000113a3
0x0000c001
0x0008a9c7
0x104837ef
0x10483803
0x000a745d
0x000a30d5
0x000a3045
0x000b6a35
0x000a7479
0x000b98e5
0x000a7479
0x000b96bd
0x000b9bdb
0x00097a77
0x000a7479
0x000bc245
0x1058df7d
0x00002523
0x1056b7c7
0x00034453
0x00034fef
Uptime: 343090174
  • I'm just guessing, but it could be the subsport you are using, as open water swim isn't a subsport for generic. (it's only a subsport of swimming). Does it still happen if you use SUB_SPORT_GENERIC? SPORT and SUB_SPORT do impact what the FW is doing.

    In general, I know this works on the f5 devices, and I have a few recording apps for them.
  • Former Member
    Former Member
    Good guess! One user reported that it is working now with his physical Fenix5. So I revived f5-support for the app in the store... Thanks!