Code Monkey home page Code Monkey logo

Comments (9)

forcecore avatar forcecore commented on June 3, 2024

주로 파일이 완성되어 갈 때 발생하는 버그이다. 즉... 100MB파일이라면 마지막 99%에서 에러가 나고, 작은 파일이면 거의 바로 에러가 뜰 것이다.

(14:59:32) Gtk: IA__gtk_progress_set_percentage: assertion percentage >= 0 && percentage <= 1.0' failed (14:59:32) GLib-GObject: value "105" of typegint' is invalid or out of range for property value' of typegint'
이런 에러가 남. 파일 전송이 105% 완료되었다니 -_-;;;

수신된 파일의 크기가 몇 바이트 더 큰 것으로 볼 때 보내는 쪽에서 필요 이상으로 파일을 보내주는 듯 하다 or 받는 쪽에서 이상하게 받든지. 좀 더 알아봐야겠다.

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024

일반 text file을 전송시키면 정상적으로 내용이 다 완성된 후, garbage가 붙는다.

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024
  1. 윈도우 네이트온에서 파일을 보내면 쓰레기가 붙지 않음 : 보내는 쪽에서 잘 하면 받는 쪽은 괜찮다는 말 같음.
  2. 피진에서 윈도우쪽으로 파일을 보내도 쓰레기가 붙지 않음 : 아마 윈도우 네이트온에서, 보낸다고 한 것 보다 많은 데이터가 오면 어떻게 할지 예외처리를 잘 해놓은 것 같음.

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024

nateon_xfer_send_next 이게 아무래도 보낼 데이터를 만드는 부분인데 이거는 똑바로 된 것 처럼 보인다. 실제로도 그런진 아직은 모르겠지만. 그럼 수신단을 보겠다.

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024

수신단은 nateon_xfer_sock_read 함수 중
if (purple_xfer_get_type(nate_xfer->prpl_xfer) == PURPLE_XFER_RECEIVE)
에 걸린 거대한 코드이다.
거대하고 뭔가 코멘트도 안 되어서 디버깅 하기 어려울듯.

파일 전송이 다 왔는데, 더 올 부분이 있는 것 마냥 기다리는 모드에 빠지기도 하고 뭔가 받은 chunk에 대한 계산이 살짝 불안정한듯. 보내는 쪽에서 이상하게 보내서 불안정 한건가? 아직도 어디가 문제인지 콕 집어내지 못했다.

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024

피진 -> 리눅스용 네이트온: 정상.
리눅스용 네이트온 -> 피진: 정상.
물론 이랬으니까 내가 파일전송 되는거라고 출시한거지...;;

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024

피진이 파일을 받는 쪽이면 knateon에서 이상한 말이 나온다:
QFile::readBlock: File not open
QFile::atEnd: File is not open
... 중략 ...
QFile::readBlock: File not open
QFile::atEnd: File is not open
QFile::readBlock: File not open
QFile::atEnd: File is not open
QFile::readBlock: File not open
QFile::atEnd: File is not open
QFile::readBlock: File not open
[ P2P_B ]-{aCmd}-
QFile::atEnd: File is not open
QFile::readBlock: File not open
QSocketNotifier: invalid socket 19 and type 'Write', disabling...
이 메시지로 판정했을 때, 아무래도 받는 쪽에서 뭔가 잘못하고 있는 것 같다.

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024

이상하게 갑자기 잘 되네 -_-;; 왜지!

from pidgin-nateon.

forcecore avatar forcecore commented on June 3, 2024

나 -> 딴컴 으로 보내는건 안되는데
딴컴 -> 나 한테 보내는건 된다. 뭐지? 파일에 따른 우연인가

from pidgin-nateon.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.