Mantis Bugtracker

Простой вид комментарии ] расширенный вид ] история ] печать ]
Номер Категория Серьезность Воспроизводимость Создан Изменен
0000140 [obex-data-server] OPP малая не проверялась 2008-10-08 17:11 2008-10-25 22:09
Инициатор hadess Видимость общая  
Ответственный skirsdeda
Приоритет обычный Решение решен  
Состояние закрыт   Версия продукта
Суть 0000140: ods trunk hangs when ask accept
Подробности Launch the test server, and ask whether to accept. Send a file using some particular phones:
$ ./ --ask-to-accept opp /tmp/
Server object: /org/openobex/server0
Session created: /org/openobex/serversession0
Session Bluetooth address: 00:1C:D6:86:B1:4C
<hangs here>

This is the same issue I reported a couple of weeks ago with dwmw2's phone. Michael, on the GNOME bugzilla can reproduce the problem as well.

See [^]
Дополнительные сведения
Tэги Нет прикрепленных тэгов.
Вложенные файлы ? file icon log [^] (6,098 bytes) 2008-10-18 16:38

- Связи
дублирует 0000129закрытskirsdeda Application sometimes misses consecutive ODS signals. 

-  Комментарии
monreal (инициатор)
2008-10-08 17:26

Some more information,

$ ./ --ask-to-accept opp /tmp/

hangs as described above.

$ ./ opp /tmp/

works fine.

Tested with two phones:

Nokia 6300 (s40): just hangs at "0%", I can press cancel
SE k750i: hangs without any way to cancel, I have to remove the battery :(
skirsdeda (администратор)
2008-10-09 20:16
изменен: 2008-10-09 20:18

Sorry, but I can't make any sense from this bug. I need more information. The only code that acts differently according to auto_accept setting is just a few lines. Before that, there should be "suspending request" message in ods output. Without ods output I can't really do anything since this stuff works for me.

So what I need you to do is:
1) run ./obex-data-server --no-daemon
2) run ./ --ask-to-accept opp /tmp
3) start sending file from phone
4) post me output of obex-data-server and when it hangs. Ideally, you could also run obex-data-server with gdb and see at which place in code it actually hangs.

monreal (инициатор)
2008-10-18 16:39

Log of the commands above (+gdb) attached.

Note: tested with the 6300 only (don't have the SE with me atm) and ods trunk. The transfer now stops at 11%, not at 0% as before.
skirsdeda (администратор)
2008-10-18 17:39

Thanks for output, it is now clear what happens. The problem is that application (in this case ods-server-test) misses TransferStarted signal and this has already been reported. I'll make this one top priority for 0.4.1 release. I hope this can be solved without changing API by ensuring some time between ServerSession creation and TransferStarted emission.
skirsdeda (администратор)
2008-10-23 23:23

A fix for missing TransferStarted is in svn rev 2102.

I added a timeout between emitting Server.SessionCreated and ServerSession.TransferStarted. The current timeout is set to 250 milliseconds. Please check if this is sufficient.
skirsdeda (администратор)
2008-10-25 17:17

TransferStarted wasn't being emitted at all as it turns out. This was because obex_context->report_progress was being set incorrectly in ServerSession. This should be fixed in svn revision 2114.

- история
Дата изменения Пользователь Поле Изменение
2008-10-08 17:11 hadess Новый вопрос
2008-10-08 17:11 hadess Отслеживать: hadess
2008-10-08 17:23 skirsdeda Состояние новый => назначен
2008-10-08 17:23 skirsdeda Ответственный => skirsdeda
2008-10-08 17:26 monreal Комментарий добавлен: 0000444
2008-10-08 17:33 crevette Отслеживать: crevette
2008-10-09 20:16 skirsdeda Комментарий добавлен: 0000450
2008-10-09 20:18 skirsdeda Комментарий изменен: 0000450
2008-10-09 20:50 skirsdeda Состояние назначен => нужен отклик
2008-10-18 16:38 monreal Файл добавлен: log
2008-10-18 16:39 monreal Комментарий добавлен: 0000485
2008-10-18 17:39 skirsdeda Комментарий добавлен: 0000486
2008-10-18 17:39 skirsdeda Связь добавлена дублирует 0000129
2008-10-18 17:39 skirsdeda Состояние нужен отклик => назначен
2008-10-23 23:23 skirsdeda Комментарий добавлен: 0000489
2008-10-23 23:47 skirsdeda Целевая версия => 0.4.1
2008-10-25 17:17 skirsdeda Комментарий добавлен: 0000494
2008-10-25 17:32 skirsdeda Состояние назначен => отработан
2008-10-25 17:32 skirsdeda Решение открыт => решен
2008-10-25 22:09 skirsdeda Решен в версии => 0.4.1
2008-10-25 22:09 skirsdeda Состояние отработан => закрыт

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker